Пример #1
0
 /// <summary>
 /// Creates a new Variable EqnNode with the number of the variable stored in the value field.
 /// </summary>
 /// <param name="Owner">the Owner-Shape</param>
 /// <param name="variable">the Variablenumber</param>
 public EqnNode(CommonShapeElement Owner, int variable)
 {
     owner = Owner;
     type  = EqnNodeType.Variable;
     val   = variable;
 }
Пример #2
0
 /// <summary>
 /// Creates a Undefined EqnNode
 /// </summary>
 /// <param name="Owner">the Owner-Shape</param>
 public EqnNode(CommonShapeElement Owner)
 {
     owner = Owner;
     type  = EqnNodeType.Undefined;
 }
Пример #3
0
 /// <summary>
 /// Creates a new Constant EqnNode with the value constant.
 /// </summary>
 /// <param name="Owner">the Owner-Shape</param>
 /// <param name="constant">the value for this EqnNode</param>
 public EqnNode(CommonShapeElement Owner, double constant)
 {
     owner = Owner;
     type  = EqnNodeType.Constant;
     val   = constant;
 }
Пример #4
0
 /// <summary>
 /// Creates a new EqnNode from a string containing a equiption
 /// </summary>
 /// <param name="Owner">the Owner-Shape</param>
 /// <param name="eqn">the equation</param>
 public EqnNode(CommonShapeElement Owner, string eqn)
 {
     owner = Owner;
     Parse(eqn);
 }