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