public ISet <SymbolicValue> GetScheduleSymbols() { HashSet <SymbolicValue> AllScheduleSymbols = new HashSet <SymbolicValue>(); //if (ContractSubject is Subject) // AllScheduleSymbols.UnionWith((ContractSubject as Subject).Schedule.ScheduleSymbols); foreach (ICover <Value, Value, Value> Cover in Covers) { if (!Cover.GetSubject().isDerived) { AllScheduleSymbols.UnionWith((Cover.GetSubject() as Subject).Schedule.ScheduleSymbols); } } foreach (ITerm <Value> Sublimit in Sublimits) { AllScheduleSymbols.UnionWith((Sublimit.GetSubject() as Subject).Schedule.ScheduleSymbols); } foreach (ITerm <Value> Deductible in Deductibles) { AllScheduleSymbols.UnionWith((Deductible.GetSubject() as Subject).Schedule.ScheduleSymbols); } return(AllScheduleSymbols); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (this == obj) { return(true); } if (obj.GetType() != typeof(Sublimit <V>)) { return(false); } Sublimit <V> thatSublimit = obj as Sublimit <V>; return(this.Equals(thatSublimit)); }
public bool Equals(Sublimit <V> thatSublimit) { return(base.Equals(thatSublimit) && this.IsNetOfDeductible().Equals(thatSublimit.IsNetOfDeductible())); }
public Sublimit(Sublimit <V> CopyFromSublimit) : base(CopyFromSublimit) { this.IsItNetOfDeductible = CopyFromSublimit.IsNetOfDeductible(); }