Beispiel #1
0
        public variableCounter copy()
        {
            variableCounter vc = new variableCounter(this);

            vc.count = this.count;
            return(vc);
        }
Beispiel #2
0
 public void setAllVars()
 {
     foreach (var item in vars)
     {
         foreach (variableCounter t in item.vars)
         {
             if (t.getCount() > 0)
             {
                 if (varsAllFile.Select(a => a.id).Contains(t.id))
                 {
                     variableCounter t2 = varsAllFile.Find(a => a.id == t.id);
                     t2.setCount(t2.getCount() + t.getCount());
                 }
                 else
                 {
                     varsAllFile.Add(t.copy());
                 }
             }
         }
     }
 }
Beispiel #3
0
 public ComparisonTable(variableCounter congruentVariableCounter, int firstScopeId, int secondScopeId)
 {
     CongruentVariableCounter = congruentVariableCounter;
     FirstScopeId             = firstScopeId;
     SecondScopeId            = secondScopeId;
 }