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)
                           ));
 


Constructor Index

 o Param_type(String, String[])

Method Index

 o getIndex(String)
Returns the state index given a state name (or -1 if the state name isn't found)
 o getSpec()
Returns type spec in form etc
 o getType()
Returns the type name
 o getVals()
Returns the array of strings

Constructors

 o Param_type
 public Param_type(String tp,
                   String vals[])

Methods

 o getVals
 public String[] getVals()
Returns the array of strings

 o getType
 public String getType()
Returns the type name

 o getIndex
 public int getIndex(String s)
Returns the state index given a state name (or -1 if the state name isn't found)

 o getSpec
 public StringBuffer getSpec()
Returns type spec in form etc


All Packages  Class Hierarchy  This Package  Previous  Next  Index