Exemple #1
0
 /// <summary>
 /// The SingleMission class's Constructor.
 /// It Intializes all the members and properties of the class's object.
 /// <param name="function">function of the expression
 /// the object of the class holds</para>
 /// <param name="name">string name of the mission</para>
 /// </summary>
 public SingleMission(FunctionsContainer.Func function, string name)
 {
     Func        = function;
     Name        = name;
     Type        = "Single";
     OnCalculate = null;
 }
 /// <summary>
 /// The function Add gets as a parameter a function
 /// which gets a double parameter and returns a double return value.
 /// It adds the function to the functions list of the expression
 /// it concatenates it to the other functions until now.
 /// <param name="func">function to concatenate to the expression</para>
 /// <retValue>ComposedMission of this to enable fluent programming</retValue>
 /// </summary>
 public ComposedMission Add(FunctionsContainer.Func func)
 {
     Funcs.Add(func);
     return(this);
 }
Exemple #3
0
 //Constructor
 public SingleMission(FunctionsContainer.Func func, string name)
 {
     Name   = name;
     Type   = "Single";
     m_func = func;
 }