SimJava 2.0.1

eduni.simanim
Class Param_type

Object
  extended by 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)));

Version:
1.0, 19 June 1997
Author:
Fred Howell

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 etc
 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

Param_type

public Param_type(String tp,
                  String[] vals)
Method Detail

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


SimJava 2.0.1

The University of Edinburgh, 2009