Class Action

java.lang.Object
  |
  +--Action

public class Action
extends java.lang.Object

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

variableName

protected java.lang.String variableName
The name of the variable that belongs to the action.


priority

protected double priority
The priority value of the action.


probability

protected java.lang.String probability
The probability value of the action.


value

protected java.lang.String value
The value of the action.

Constructor Detail

Action

public Action(java.lang.String name,
              java.lang.String val,
              java.lang.String prob,
              double priority)
The constructor initializes all attributes of the action.

Method Detail

getVariableName

public java.lang.String getVariableName()
Returns the name of the variable.

Returns:
The name of the variable.

getValue

public java.lang.String getValue()
Returns the value of the variable belonging to this action.

Returns:
The value of the variable belonging to this action.