|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Action
An action has a name, a value, a probability and a priority. These are read from the XML file
by the XMLParser
and are converted to a JESS rule by the JESSCommunicator
. A
Situation
has a set of Actions stored in a Vector
.
Field Summary | |
protected double |
priority
The priority value of the action. |
protected java.lang.String |
probability
The probability value of the action. |
protected java.lang.String |
value
The value of the action. |
protected java.lang.String |
variableName
The name of the variable that belongs to the action. |
Constructor Summary | |
Action(java.lang.String name,
java.lang.String val,
java.lang.String prob,
double priority)
The constructor initializes all attributes of the action. |
Method Summary | |
java.lang.String |
getValue()
Returns the value of the variable belonging to this action. |
java.lang.String |
getVariableName()
Returns the name of the variable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String variableName
protected double priority
protected java.lang.String probability
protected java.lang.String value
Constructor Detail |
public Action(java.lang.String name, java.lang.String val, java.lang.String prob, double priority)
Method Detail |
public java.lang.String getVariableName()
public java.lang.String getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |