|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmodelica.simulation.core.models.modelica.ModelicaMainclass
public class ModelicaMainclass
Represents the Modelica main class which contains all properties and their values
Constructor Summary | |
---|---|
ModelicaMainclass(java.lang.String name,
java.lang.String type,
java.lang.String comment)
Defalt constructor |
Method Summary | |
---|---|
void |
addInputVariable(ModelicaProperty inputVariable)
Puts a new InputVariable into the InputVariable map If the InputVariable name exists the value will be overwritten |
void |
addOutputVariable(ModelicaProperty outputVariable)
Puts a new OutputVariable into the OutputVariable map If the OutputVariable name exists the value will be overwritten |
void |
addParameter(ModelicaProperty parameter)
Puts a new parameter into the parameters map If the parameter name exists the value will be overwritten |
void |
addVariable(ModelicaProperty variable)
Puts a new variable into the variables map If the variable name exists the value will be overwritten |
java.util.Set<java.lang.String> |
getAllFullQualifiedInputVariableNames()
Returns all in the inputVariables collection containing inputVariable names |
java.util.Set<java.lang.String> |
getAllFullQualifiedOutputVariableNames()
Returns all in the OutputVariable collection containing OutputVariable names |
java.util.Set<java.lang.String> |
getAllFullQualifiedParameterNames()
Returns all in the parameter collection containing parameter names |
java.util.Set<java.lang.String> |
getAllFullQualifiedVariableNames()
Returns all in the variable collection containing variable names |
java.lang.String |
getComment()
|
ModelicaProperty |
getInputVariableByName(java.lang.String fullQualifiedName)
Searches in the InputVariable collection to return a Modelica Property from the math type InputVariable with a given full qualified name. |
java.lang.String |
getName()
|
ModelicaProperty |
getOutputVariableByName(java.lang.String fullQualifiedName)
Searches in the OutputVariable collection to return a Modelica Property from the math type OutputVariable with a given full qualified name. |
ModelicaProperty |
getParameterByName(java.lang.String fullQualifiedName)
Searches in the parameter collection to return a Modelica Property from the math type parameter with a given full qualified name. |
java.lang.String |
getType()
|
ModelicaProperty |
getVariableByName(java.lang.String fullQualifiedName)
Searches in the variable collection to return a Modelica Property from the math type state or algebraic with a given full qualified name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModelicaMainclass(java.lang.String name, java.lang.String type, java.lang.String comment)
name
- Is the name of the Modelica main classtype
- Is the class name of the Modelica main classcomment
- All comments from the developer of this classMethod Detail |
---|
public java.lang.String getName()
public java.lang.String getComment()
public java.lang.String getType()
public java.util.Set<java.lang.String> getAllFullQualifiedVariableNames()
public java.util.Set<java.lang.String> getAllFullQualifiedParameterNames()
public java.util.Set<java.lang.String> getAllFullQualifiedInputVariableNames()
public java.util.Set<java.lang.String> getAllFullQualifiedOutputVariableNames()
public ModelicaProperty getVariableByName(java.lang.String fullQualifiedName)
fullQualifiedName
-
public ModelicaProperty getParameterByName(java.lang.String fullQualifiedName)
fullQualifiedName
-
public ModelicaProperty getInputVariableByName(java.lang.String fullQualifiedName)
fullQualifiedName
-
public ModelicaProperty getOutputVariableByName(java.lang.String fullQualifiedName)
fullQualifiedName
-
public void addVariable(ModelicaProperty variable)
variable
- from type ModelicaPropertypublic void addParameter(ModelicaProperty parameter)
parameter
- from type ModelicaPropertypublic void addInputVariable(ModelicaProperty inputVariable)
InputVariable
- from type ModelicaPropertypublic void addOutputVariable(ModelicaProperty outputVariable)
OutputVariable
- from type ModelicaPropertypublic 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 |