CIDER Toolkit
Version 0.1.0-beta

au.edu.monash.csse.tonyj.cider.constraints
Class ConstraintVariableEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--ConstraintVariableEvent
All Implemented Interfaces:
java.io.Serializable

public class ConstraintVariableEvent
extends java.util.EventObject

This class contains the information detailing an event that has occurred which involves a ConstraintVariable.

See Also:
Serialized Form

Field Summary
static int VARIABLE_MODIFIED
          Constant to indicate that the type of event is the modification of the solved value of a variable.
 
Constructor Summary
ConstraintVariableEvent(java.lang.Object source, ConstraintVariable cv, int type, java.lang.Double ov)
          Creates a new ConstraintVariableEvent object.
 
Method Summary
 ConstraintVariable getConstraintVariable()
          Returns the constraint variable that was modified.
 int getEventType()
          Returns the type of event.
 java.lang.Double getOldValue()
          Returns the old solved value of the constraint variable that was modified.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VARIABLE_MODIFIED

public static final int VARIABLE_MODIFIED
Constant to indicate that the type of event is the modification of the solved value of a variable.

See Also:
Constant Field Values
Constructor Detail

ConstraintVariableEvent

public ConstraintVariableEvent(java.lang.Object source,
                               ConstraintVariable cv,
                               int type,
                               java.lang.Double ov)
Creates a new ConstraintVariableEvent object.

Parameters:
source - The object that created the event.
cv - The constraint variable that the event involves.
type - The type of event.
ov - The old solved value of the constraint variable involed.
Method Detail

getConstraintVariable

public ConstraintVariable getConstraintVariable()
Returns the constraint variable that was modified.


getEventType

public int getEventType()
Returns the type of event.


getOldValue

public java.lang.Double getOldValue()
Returns the old solved value of the constraint variable that was modified.


CIDER Toolkit
Version 0.1.0-beta