|
SimJava 2.0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectParam_type
public class Param_type
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)));
Constructor Summary | |
---|---|
Param_type(String tp,
String[] vals)
|
Method Summary | |
---|---|
int |
getIndex(String s)
Returns the state index given a state name (or -1 if the state name isn't found) |
StringBuffer |
getSpec()
Returns type spec in form |
String |
getType()
Returns the type name |
String[] |
getVals()
Returns the array of strings |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Param_type(String tp, String[] vals)
Method Detail |
---|
public String[] getVals()
public String getType()
public int getIndex(String s)
public StringBuffer getSpec()
|
SimJava 2.0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |