|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectex1.ActionValue
This class holds all a process variables for a particular process within an operation. There is one instance of this class created for each action tag found in the detail operation xml files. The WepsDBFile class maintains a list of these for each operation.
Constructor Summary | |
ActionValue()
Creates a new instance of Class |
|
ActionValue(ActionValue source)
Initialize this from another instance. |
Method Summary | |
int |
actionCounts(int id,
char ty)
Check if this process matches the requested action |
void |
addParm(ParamDef p,
java.lang.String val)
Add a new parameter to the list. |
void |
fillWithDefaultParms()
This is called when an new process is added by the user. |
ex1.OpAction |
getAction()
Return the meta-information about this process. |
java.util.Collection |
getAllParms()
Return all the parameters for this process as a list of ParameterVal structs. |
java.lang.String |
getCode()
The P or G or O part of the action name. |
ParamDef |
getColumn(int col)
Return the meta-information about the parameter for this column. |
java.lang.String |
getGroupCode()
|
int |
getGroupId()
Get the group (numeric part) this process requires to proceed it. |
java.lang.String |
getID()
The numeric part of the action name as a string. |
int |
getIdInt()
The numeric part of the action name as an integer. |
java.lang.String |
getName()
Return the full name of the process, like 'P21 - Break Crust' |
ParameterVal |
getVal(int col)
Return the parameter value for a particlar column. |
boolean |
isCode(char val)
Check if this process matches the requested code (P,G,O). |
boolean |
sameOpAction(ex1.OpAction a)
Check if this action is the same as the requested one. |
void |
setAction(ex1.OpAction a)
Attaches the meta-information about this process (all instances of this process type will share the same info) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionValue()
public ActionValue(ActionValue source)
source
- object to copy values fromMethod Detail |
public void fillWithDefaultParms()
public void setAction(ex1.OpAction a)
a
- Action/process meta data objectpublic void addParm(ParamDef p, java.lang.String val)
p
- parameter meta-informationval
- value of the parameterpublic java.lang.String getName()
public int actionCounts(int id, char ty)
id
- numeric id part of action/processsty
- character part of action/process G,P,Opublic boolean sameOpAction(ex1.OpAction a)
a
- action to compare to
public ParameterVal getVal(int col)
col
- column to get parameter value from
public ParamDef getColumn(int col)
col
- Column to get meta-information for
public java.util.Collection getAllParms()
public ex1.OpAction getAction()
public java.lang.String getCode()
public java.lang.String getID()
public int getIdInt()
public java.lang.String getGroupCode()
public int getGroupId()
public boolean isCode(char val)
val
- the code to check for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |