com.yobotics.simulationconstructionset.util.globalParameters
Class DoubleGlobalParameter

java.lang.Object
  extended by com.yobotics.simulationconstructionset.util.globalParameters.GlobalParameter
      extended by com.yobotics.simulationconstructionset.util.globalParameters.DoubleGlobalParameter
Direct Known Subclasses:
MultiplicativeDoubleGlobalParameter

public class DoubleGlobalParameter
extends GlobalParameter


Constructor Summary
DoubleGlobalParameter(java.lang.String name, java.lang.String description, double value, GlobalParameterChangedListener listener)
           
 
Method Summary
 double getValue()
           
 java.lang.String getValueInStringFormat()
           
 void set(double value)
           
 void set(double value, java.lang.String comment)
           
 void setOnlyIfChange(double value)
           
 void setOnlyIfChange(double value, java.lang.String comment)
           
 
Methods inherited from class com.yobotics.simulationconstructionset.util.globalParameters.GlobalParameter
addVarListToSimulationConstructionSet, getAllParametersYoVariableRegistry, getMaximumNumberOfCharactersInValue, getName, getShortName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleGlobalParameter

public DoubleGlobalParameter(java.lang.String name,
                             java.lang.String description,
                             double value,
                             GlobalParameterChangedListener listener)
Method Detail

getValue

public double getValue()

setOnlyIfChange

public void setOnlyIfChange(double value)

setOnlyIfChange

public void setOnlyIfChange(double value,
                            java.lang.String comment)

set

public void set(double value)

set

public void set(double value,
                java.lang.String comment)

getValueInStringFormat

public java.lang.String getValueInStringFormat()
Specified by:
getValueInStringFormat in class GlobalParameter