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 Deductible(Deductible <V> CopyFromDeductible) : base(CopyFromDeductible) { this.IsItFranchise = CopyFromDeductible.IsFranchise(); this.IsItAbsorbable = CopyFromDeductible.IsAbsorbable(); this.DeductibleInteraction = CopyFromDeductible.GetInteraction(); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (this == obj) { return(true); } if (obj.GetType() != typeof(Deductible <V>)) { return(false); } Deductible <V> thatDeductible = obj as Deductible <V>; return(this.Equals(thatDeductible)); }
public bool Equals(Deductible <V> thatDeductible) { return(base.Equals(thatDeductible) && this.GetInteraction().Equals(thatDeductible.GetInteraction()) && this.IsFranchise().Equals(thatDeductible.IsFranchise()) && this.IsAbsorbable().Equals(thatDeductible.IsAbsorbable())); }