public SingleMission(unaryFunction f, string name) { // initialize the mission based on the name and delegate to run. function = (unaryFunction)f.Clone(); Name = name; Type = "Single"; }
public ComposedMission Add(unaryFunction f) { // check if the input is initialized. if (f != default(unaryFunction)) { // if it is add it to the list. functions.Add((unaryFunction)f.Clone()); return(this); } else { return(this); } }