/// <summary>Gets the value.</summary> /// <value>The value.</value> public double Value(int arrayIndex = -1) { if (ChildFunctions == null) { ChildFunctions = FindAllChildren <IFunction>().ToList(); } foreach (IFunction F in ChildFunctions) { PhaseLookupValue P = F as PhaseLookupValue; if (P.InPhase) { return(P.Value(arrayIndex)); } } return(0); // Default value is zero }
/// <summary>Gets the value.</summary> /// <value>The value.</value> public double Value(int arrayIndex = -1) { if (ChildFunctions == null) { ChildFunctions = Apsim.Children(this, typeof(IFunction)); } foreach (IFunction F in ChildFunctions) { PhaseLookupValue P = F as PhaseLookupValue; if (P.InPhase) { return(P.Value(arrayIndex)); } } return(0); // Default value is zero }