Пример #1
0
        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);
        }
Пример #2
0
 public Deductible(Deductible <V> CopyFromDeductible)
     : base(CopyFromDeductible)
 {
     this.IsItFranchise         = CopyFromDeductible.IsFranchise();
     this.IsItAbsorbable        = CopyFromDeductible.IsAbsorbable();
     this.DeductibleInteraction = CopyFromDeductible.GetInteraction();
 }
Пример #3
0
        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));
        }
Пример #4
0
 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()));
 }