Example #1
0
 public LimitCollection(LimitCollection limCol)
 {
     limList = new List <Limit>();
     foreach (Limit lim in limCol.limList)
     {
         Limit newLim = new Limit(lim.LimitIsNetOfDed, lim.Value, lim.LimIsPerRisk, lim.LimType);
         limList.Add(newLim);
     }
 }
Example #2
0
 public TermNode(PrimarySubject _subject) : base(_subject)
 {
     if (_subject.IsDerived)
     {
         throw new ArgumentOutOfRangeException("Terms Nodes cannot have a derivied subject!");
     }
     CurrentAllocationState = new AllocationStateCollection(_subject.Schedule.ActNumOfBldgs);
     Deductibles            = new DeductibleCollection();
     Limits = new LimitCollection();
 }
Example #3
0
        public TermNode(PrimarySubject _subject, TermNode tNode) : base(_subject)
        {
            CurrentAllocationState = new AllocationStateCollection2(_subject.Schedule.ActNumOfBldgs);

            //Deductibles = tNode.Deductibles;
            //Limits = tNode.Limits;
            //should do shallow copy, not copy whole object
            Deductibles = new DeductibleCollection(tNode.Deductibles);
            Limits      = new LimitCollection(tNode.Limits);
        }
Example #4
0
 public bool GetLimitsForSubject(PrimarySubject sub, out LimitCollection limits)
 {
     if (LimComponent.TryGetValue(sub, out limits))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #5
0
 public void AddOtherCollection(LimitCollection otherLimCollection)
 {
     limList.AddRange(otherLimCollection.limList);
 }