All Packages Class Hierarchy This Package Previous Next Index
Class eduni.simanim.Param_type
java.lang.Object
|
+----eduni.simanim.Param_type
- public class Param_type
- extends Object
An animation parameter type. Stores an array of strings
representing the different states of a parameter, e.g.
"Idle", "Busy" etc.
You need to specify a parameter type in order to get a parameter
to display on a timing diagram.
Example code to add a parameter type from a user's
entity constructor is below.
String[] wstate = {"idle","busy"};
add_param(new Anim_param( "State",
Anim_param.STATE,
new Param_type("wstate", wstate)
));
-
Param_type(String, String[])
-
-
getIndex(String)
- Returns the state index given a state name
(or -1 if the state name isn't found)
-
getSpec()
- Returns type spec in form etc
-
getType()
- Returns the type name
-
getVals()
- Returns the array of strings
Param_type
public Param_type(String tp,
String vals[])
getVals
public String[] getVals()
- Returns the array of strings
getType
public String getType()
- Returns the type name
getIndex
public int getIndex(String s)
- Returns the state index given a state name
(or -1 if the state name isn't found)
getSpec
public StringBuffer getSpec()
- Returns type spec in form etc
All Packages Class Hierarchy This Package Previous Next Index