Exemple #1
0
 public Cover(Cover <ShareValue, LimitValue, AttachmentValue> CopyFrom, SymbolicExpression NewLabel)
 {
     this.Label          = NewLabel;
     this._Participation = CopyFrom._Participation;
     this._Limit         = CopyFrom._Limit;
     this._Attachment    = CopyFrom._Attachment;
     this._Subject       = new Subject((Subject)CopyFrom.GetSubject());
     this.DerivedSubject = CopyFrom.GetDerivedSubject();
 }
Exemple #2
0
        public bool Equals(Participation <V> e)
        {
            if (e == null)
            {
                return(false);
            }

            return(Ratio.Equals(e.Ratio));
        }
Exemple #3
0
 public Cover(Participation <ShareValue> share, Limit <LimitValue> limit, Attachment <AttachmentValue> attachment,
              SubjectPosition subject, FunctionInvocation <IValue <AValue> > DerivedSubject, string Label)
 {
     this.Label          = (Label == null) ? null : new SymbolicExpression(Label);
     this._Participation = share;
     this._Limit         = limit;
     this._Attachment    = attachment;
     this._Subject       = subject;
     this.DerivedSubject = DerivedSubject;
 }
Exemple #4
0
 public Cover(Cover <ShareValue, LimitValue, AttachmentValue> CopyFrom, SymbolicExpression NewLabel,
              FunctionInvocation <IValue <AValue> > NewDerivedSubject)
 {
     this.Label          = NewLabel;
     this._Participation = CopyFrom._Participation;
     this._Limit         = CopyFrom._Limit;
     this._Attachment    = CopyFrom._Attachment;
     this._Subject       = CopyFrom.GetSubject(); // TODO : comment this later?
     this.DerivedSubject = NewDerivedSubject;
 }
Exemple #5
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj.GetType() != typeof(Participation <V>))
            {
                return(false);
            }

            Participation <V> e = obj as Participation <V>;

            return(this.Equals(e));
        }
Exemple #6
0
 public Cover(Participation <ShareValue> share, Limit <LimitValue> limit, FunctionInvocation <IValue <AValue> > DerivedSubject)
     : this(share, limit, null, null, DerivedSubject, null)
 {
 }
Exemple #7
0
 public Cover(Participation <ShareValue> share, Limit <LimitValue> limit)
     : this(share, limit, null, null, null, null)
 {
 }
Exemple #8
0
 public Cover(Participation <ShareValue> share, SubjectPosition subject, FunctionInvocation <IValue <AValue> > DerivedSubject, string Label)
     : this(share, null, null, subject, DerivedSubject, Label)
 {
 }
Exemple #9
0
 public Cover(Participation <ShareValue> share, SubjectPosition subject, string Label)
     : this(share, null, null, subject, null, Label)
 {
 }
Exemple #10
0
 public Cover(Participation <ShareValue> share, string Label)
     : this(share, null, null, null, null, Label)
 {
 }
Exemple #11
0
 public Cover(Participation <ShareValue> share)
     : this(share, null, null, null, null, null)
 {
 }
Exemple #12
0
 public Cover(Participation <ShareValue> share, Limit <LimitValue> limit, SubjectPosition subject)
     : this(share, limit, null, subject, null, null)
 {
 }
Exemple #13
0
 public Cover(Participation <ShareValue> share, Limit <LimitValue> limit, Attachment <AttachmentValue> attachment)
     : this(share, limit, attachment, null, null, null)
 {
 }
Exemple #14
0
 public Cover(Participation <ShareValue> share, Limit <LimitValue> limit, Attachment <AttachmentValue> attachment, SubjectPosition subject, string Label)
     : this(share, limit, attachment, subject, null, Label)
 {
 }
Exemple #15
0
 public Cover(Participation <ShareValue> share, Limit <LimitValue> limit, Attachment <AttachmentValue> attachment, SubjectPosition subject, FunctionInvocation <IValue <AValue> > DerivedSubject)
     : this(share, limit, attachment, subject, DerivedSubject, null)
 {
 }
Exemple #16
0
 public Cover(Participation <ShareValue> share, Limit <LimitValue> limit, Attachment <AttachmentValue> attachment, FunctionInvocation <IValue <AValue> > DerivedSubject, string Label)
     : this(share, limit, attachment, null, DerivedSubject, Label)
 {
 }
Exemple #17
0
 public Cover(Participation <ShareValue> share, Attachment <AttachmentValue> attachment, SubjectPosition subject)
     : this(share, null, attachment, subject, null, null)
 {
 }
Exemple #18
0
 public Cover(Participation <ShareValue> share, Attachment <AttachmentValue> attachment, string Label)
     : this(share, null, attachment, null, null, Label)
 {
 }
Exemple #19
0
 public Cover(Participation <ShareValue> share, Attachment <AttachmentValue> attachment, FunctionInvocation <IValue <AValue> > DerivedSubject)
     : this(share, null, attachment, null, DerivedSubject, null)
 {
 }
Exemple #20
0
 public Cover(Participation <ShareValue> share, Limit <LimitValue> limit, string Label)
     : this(share, limit, null, null, null, Label)
 {
 }