コード例 #1
0
        public bool getValue()
        {
            double temp = parameter.getValue();

            if (temp == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
コード例 #2
0
 /*     /// <summary>
  *   /// This returns the manual value of the parameter in "base units", taking into account the unit multiplier.
  *   /// IE, if the parameter is 1, and the units are ms, then this returns .001.
  *   /// </summary>
  *   /// <returns></returns>
  *   public double getManualBaseValue()
  *   {
  *       return units.multiplier * parameter.getManualValue();
  *   }
  */
 /// <summary>
 /// This returns the value (taking into account variables) of the parameter in base units.
 /// </summary>
 /// <param name="variableValues"></param>
 /// <returns></returns>
 public double getBaseValue()
 {
     return(units.multiplier * parameter.getValue());
 }