Class Constraint

java.lang.Object
  |
  +--Constraint

public class Constraint
extends java.lang.Object

A Constraint stores the attributes af a constraint from the XML file. It can have a start and/or an end constraint. A Constraint is created by the XMLParser and is given in a Vector of constraint to a Situation. Constraints are then converted to JESS rules by the JESSCommunicator.


Constructor Summary
Constraint(java.lang.String name, java.lang.String start, java.lang.String end)
          The constructor in which all attributes of the constraint are set.
 
Method Summary
 java.lang.String getEndCondition()
          Returns the end condition.
 java.lang.String getStartCondition()
          Returns the start condition.
 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
 

Constructor Detail

Constraint

public Constraint(java.lang.String name,
                  java.lang.String start,
                  java.lang.String end)
The constructor in which all attributes of the constraint are set.

Method Detail

getVariableName

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

Returns:
The name of the variable.

getStartCondition

public java.lang.String getStartCondition()
Returns the start condition.

Returns:
The start condition.

getEndCondition

public java.lang.String getEndCondition()
Returns the end condition.

Returns:
The end condition.