org.openmodelica.simulation.core.models.modelica
Class ModelicaInteger

java.lang.Object
  extended by org.openmodelica.simulation.core.models.modelica.ModelicaPrimitiveDataType
      extended by org.openmodelica.simulation.core.models.modelica.ModelicaInteger

public class ModelicaInteger
extends ModelicaPrimitiveDataType

Represents the primitive data type "Integer" from the Modelica language An Integer can has a min and max value.

Author:
EADS Innovation Works, Parham Vasaiely, Parham.Vasaiely@gmx.de

Constructor Summary
ModelicaInteger()
          Use this Constructor as default, set the primitive data type to "Integer" and its value to 0 as default.
 
Method Summary
 java.lang.Integer getMaxValue()
           
 java.lang.Integer getMinValue()
           
 java.lang.Integer getValue()
           
 void setMaxValue(java.lang.Integer maxValue)
           
 void setMinValue(java.lang.Integer minValue)
           
 void setValue(java.lang.Integer 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 org.openmodelica.simulation.core.models.modelica.ModelicaPrimitiveDataType
getType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelicaInteger

public ModelicaInteger()
Use this Constructor as default, set the primitive data type to "Integer" and its value to 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

Method Detail

getValue

public java.lang.Integer getValue()

setValue

public void setValue(java.lang.Integer 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.Integer getMinValue()

setMinValue

public void setMinValue(java.lang.Integer minValue)

getMaxValue

public java.lang.Integer getMaxValue()

setMaxValue

public void setMaxValue(java.lang.Integer maxValue)

toString

public java.lang.String toString()
Overrides:
toString in class ModelicaPrimitiveDataType