Ejemplo n.º 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();
 }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

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

            return(this.Equals(e));
        }
Ejemplo n.º 5
0
        public bool Equals(FunctionInvocation <V> e)
        {
            if (e == null)
            {
                return(false);
            }

            bool IsEqual = true;

            if (FunctionName != null)
            {
                IsEqual &= FunctionName.Equals(e.FunctionName);
            }
            else if (e.FunctionName != null)
            {
                return(false);
            }

            if (parameters != null)
            {
                if ((e.parameters == null) || (parameters.Length != e.parameters.Length))
                {
                    return(false);
                }
                for (int i = 0; i < parameters.Length; i++)
                {
                    IsEqual &= parameters[i].Equals(e.parameters[i]);
                }
            }
            else if (e.parameters != null)
            {
                return(false);
            }

            if (delegatedFunction != null)
            {
                IsEqual &= delegatedFunction.Equals(e.delegatedFunction);
            }
            else if (e.delegatedFunction != null)
            {
                return(false);
            }

            return(IsEqual);
        }
Ejemplo n.º 6
0
 public Cover(Participation <ShareValue> share, Limit <LimitValue> limit, FunctionInvocation <IValue <AValue> > DerivedSubject)
     : this(share, limit, null, null, DerivedSubject, null)
 {
 }
Ejemplo n.º 7
0
 public Cover(Participation <ShareValue> share, SubjectPosition subject, FunctionInvocation <IValue <AValue> > DerivedSubject, string Label)
     : this(share, null, null, subject, DerivedSubject, Label)
 {
 }
Ejemplo n.º 8
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)
 {
 }
Ejemplo n.º 9
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)
 {
 }
Ejemplo n.º 10
0
 public Cover(Participation <ShareValue> share, Attachment <AttachmentValue> attachment, FunctionInvocation <IValue <AValue> > DerivedSubject)
     : this(share, null, attachment, null, DerivedSubject, null)
 {
 }