|
SL-GMS Enterprise RTView Customization | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface GmsModelVariables
GmsModelVariables is implemented by generated GMS model classes; it provides the methods that data source classes use to get and set GMS dynamic variables.
| Method Summary | |
|---|---|
java.lang.Object |
getGmsArrayVar(java.lang.String varname)
Return the current value of the variable named 'varname'. |
double |
getGmsDoubleVar(int index)
Return the double value of the variable at 'index' in the getGmsVarNames and getGmsVarTypes arrays. |
double |
getGmsDoubleVar(java.lang.String varname)
Return the double value of the variable named 'varname' in the getGmsVarNames and getGmsVarTypes arrays. |
int |
getGmsIntVar(int index)
Return the integer value of the variable at 'index' in the getGmsVarNames and getGmsVarTypes arrays. |
int |
getGmsIntVar(java.lang.String varname)
Return the integer value of the variable named 'varname' in the getGmsVarNames and getGmsVarTypes arrays. |
java.lang.String |
getGmsStringVar(int index)
Return the String value of the variable at 'index' in the getGmsVarNames and getGmsVarTypes arrays. |
java.lang.String |
getGmsStringVar(java.lang.String varname)
Return the String value of the variable named 'varname' in the getGmsVarNames and getGmsVarTypes arrays. |
java.lang.String[] |
getGmsVarNames()
Get an array of names of the GMS dynamic variables that are used in the generated model. |
int[] |
getGmsVarTypes()
Get an array of types of the GMS dynamic variables that are used in the generated model. |
int |
getVarIndex(java.lang.String varname)
Utility method to get var index from its name |
void |
setGmsArrayVar(java.lang.String varname,
java.lang.Object new_array)
Assign new_array as the value of the variable named 'varname'. |
void |
setGmsVar(int index,
double value)
Set the value of the variable at 'index' in the getGmsVarNames and getGmsVarTypes arrays. |
void |
setGmsVar(int index,
int value)
Set the value of the variable at 'index' in the getGmsVarNames and getGmsVarTypes arrays. |
void |
setGmsVar(int index,
java.lang.String value)
Set the value of the variable at 'index' in the getGmsVarNames and getGmsVarTypes arrays. |
void |
setGmsVar(java.lang.String varname,
double value)
Set the value of the variable named 'varname' in the getGmsVarNames and getGmsVarTypes arrays. |
void |
setGmsVar(java.lang.String varname,
int value)
Set the value of the variable named 'varname' in the getGmsVarNames and getGmsVarTypes arrays. |
void |
setGmsVar(java.lang.String varname,
java.lang.String value)
Set the value of the variable named 'varname' in the getGmsVarNames and getGmsVarTypes arrays. |
void |
setGmsVarFromString(java.lang.String varname,
java.lang.String valueStr)
Utility method to set string var by name |
void |
updateVariables()
Update all variables. |
| Method Detail |
|---|
java.lang.Object getGmsArrayVar(java.lang.String varname)
varname - The name of the variable.double getGmsDoubleVar(int index)
index - The index of the variable.double getGmsDoubleVar(java.lang.String varname)
varname - The name of the variable.int getGmsIntVar(int index)
index - The index of the variable.int getGmsIntVar(java.lang.String varname)
varname - The name of the variable.java.lang.String getGmsStringVar(int index)
index - The index of the variable.java.lang.String getGmsStringVar(java.lang.String varname)
varname - The name of the variable.java.lang.String[] getGmsVarNames()
int[] getGmsVarTypes()
int getVarIndex(java.lang.String varname)
varname - The name to search for.
void setGmsArrayVar(java.lang.String varname,
java.lang.Object new_array)
If the vartype for this varname is one of the G_ARRAY types, use this method when it is necessary to replace the entire array, (for example, to change the length of the array). To change individual array elements, see getGmsArrayVar(). The type of new_array must match the type of 'varname', which is either int[], double[], or String[]. Otherwise, the variable is unchanged and an error message is generated.
varname - The name of the variable.new_array - The value to be assigned to varname.
void setGmsVar(int index,
double value)
index - The index of the variable.value - The new value of the variable.
void setGmsVar(int index,
int value)
index - The index of the variable.value - The new value of the variable.
void setGmsVar(int index,
java.lang.String value)
index - The index of the variable.value - The new value of the variable.
void setGmsVar(java.lang.String varname,
double value)
varname - The name of the variable.value - The new value of the variable.
void setGmsVar(java.lang.String varname,
int value)
varname - The name of the variable.value - The new value of the variable.
void setGmsVar(java.lang.String varname,
java.lang.String value)
varname - The name of the variable.value - The new value of the variable.
void setGmsVarFromString(java.lang.String varname,
java.lang.String valueStr)
varname - The name of the variable.valueStr - The value to assign to the variable in String form.void updateVariables()
|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||