예제 #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 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));
        }
예제 #3
0
 public bool Equals(Sublimit <V> thatSublimit)
 {
     return(base.Equals(thatSublimit) && this.IsNetOfDeductible().Equals(thatSublimit.IsNetOfDeductible()));
 }
예제 #4
0
 public Sublimit(Sublimit <V> CopyFromSublimit)
     : base(CopyFromSublimit)
 {
     this.IsItNetOfDeductible = CopyFromSublimit.IsNetOfDeductible();
 }