|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmodelica.simulation.core.models.modelica.ModelicaProperty
public abstract class ModelicaProperty
Represents a Modelica property this could be variable, parameter, input or output variable A Property has a name and a comment. A Property can be plotted on a view during an simulation or non.
Constructor Summary | |
---|---|
ModelicaProperty(java.lang.String name,
java.lang.String modelicaType,
java.lang.String comment)
Use this constructor as default. |
Method Summary | |
---|---|
java.lang.String |
getComment()
Returns the comment of the Modelica property |
java.lang.Boolean |
getDisplay()
Returns the flag if a property should being displayed in a plot or not |
java.lang.Number |
getMaxValue()
Gets the max value if the Modelica Property is from the type ModelicaReal or ModelicaInteger. |
java.lang.Number |
getMinValue()
Gets the min value if the Modelica Property is from the type ModelicaReal or ModelicaInteger. |
java.lang.String |
getName()
Returns the full qualified name of the Modelica property |
java.lang.Object |
getPrimitiveValue()
returns the value of the primitive type Double = ModelicaReal Integer = ModelicaInteger String = ModelicaString Boolean = ModelicaBoolean |
java.lang.String |
getType()
Returns the type of the Modelica property Modelica Types: Real, Integer, String, Boolean |
void |
setDisplay(java.lang.Boolean display)
Set the flag if a property should being displayed or not |
void |
setMaxValue(java.lang.Number maxValue)
Sets the max value if the Modelica Property is from the type ModelicaReal or ModelicaInteger. |
void |
setMinValue(java.lang.Number minValue)
Sets the min value if the Modelica Property is from the type ModelicaReal or ModelicaInteger. |
void |
setPrimitiveValue(java.lang.Object value)
Sets the value of the primitive type Double = ModelicaReal Integer = ModelicaInteger String = ModelicaString Boolean = ModelicaBoolean |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModelicaProperty(java.lang.String name, java.lang.String modelicaType, java.lang.String comment)
name
- Name of the modelica variablemodelicaType
- Type of the Modelica primitive data type (Real, Integer, String, Boolean)comment
- Specific comment at the instance declarationMethod Detail |
---|
public java.lang.String getName()
public java.lang.String getComment()
public java.lang.String getType()
public java.lang.Boolean getDisplay()
public void setDisplay(java.lang.Boolean display)
display
- public java.lang.Object getPrimitiveValue()
public void setPrimitiveValue(java.lang.Object value) throws java.lang.Exception
value
- have to be from the types: Double, Integer, String or Boolean
java.lang.Exception
public java.lang.Number getMinValue()
public void setMinValue(java.lang.Number minValue)
minValue
- from the type Double or Integer, if the type does not match
with the type of the PrimitiveDataType the method will do
nothingpublic java.lang.Number getMaxValue()
public void setMaxValue(java.lang.Number maxValue)
maxValue
- from the type Double or Integer, if the type does not match
with the type of the PrimitiveDataType the method will do
nothingpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |