org.openmodelica.simulation.core.models.modelica
Class ModelicaReal
java.lang.Object
org.openmodelica.simulation.core.models.modelica.ModelicaPrimitiveDataType
org.openmodelica.simulation.core.models.modelica.ModelicaReal
public class ModelicaReal
- extends ModelicaPrimitiveDataType
Represents the primitive data type "Real" from the Modelica language
A Real can has a min and max value.
- Author:
- EADS Innovation Works, Parham Vasaiely, Parham.Vasaiely@gmx.de
Constructor Summary |
ModelicaReal()
Use this Constructor as default, set the primitive data type to "Real" and its value to 0.0 as default. |
Method Summary |
java.lang.Double |
getMaxValue()
|
java.lang.Double |
getMinValue()
|
java.lang.Double |
getValue()
|
void |
setMaxValue(java.lang.Double maxValue)
|
void |
setMinValue(java.lang.Double minValue)
|
void |
setValue(java.lang.Double value)
After Reading the XML file with the standard initial values the user has the possibility to change the default value |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ModelicaReal
public ModelicaReal()
- Use this Constructor as default, set the primitive data type to "Real" and its value to 0.0 as default.
As default the values of minValue and maxValue are "null". If both of the values are not "null" a slider can be used to change the value while simulation is running
getValue
public java.lang.Double getValue()
setValue
public void setValue(java.lang.Double value)
- After Reading the XML file with the standard initial values the user has the possibility to change the default value
- Parameters:
value
-
getMinValue
public java.lang.Double getMinValue()
setMinValue
public void setMinValue(java.lang.Double minValue)
getMaxValue
public java.lang.Double getMaxValue()
setMaxValue
public void setMaxValue(java.lang.Double maxValue)
toString
public java.lang.String toString()
- Overrides:
toString
in class ModelicaPrimitiveDataType