예제 #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);
     }
 }
예제 #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();
 }
예제 #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);
        }
예제 #4
0
 public bool GetLimitsForSubject(PrimarySubject sub, out LimitCollection limits)
 {
     if (LimComponent.TryGetValue(sub, out limits))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #5
0
 public void AddOtherCollection(LimitCollection otherLimCollection)
 {
     limList.AddRange(otherLimCollection.limList);
 }