jopt.csp.spi.arcalgorithm.domain
Class DomainChangeEvent

java.lang.Object
  extended byjopt.csp.spi.arcalgorithm.domain.DomainChangeEvent

public class DomainChangeEvent
extends java.lang.Object

Event generated by domains when internal structure changes occur


Constructor Summary
DomainChangeEvent(Domain domain)
          Constructor
 
Method Summary
 Domain getDomain()
          Returns the domain that generated the event
 java.lang.Number getMaxChange()
          Returns the amount by which the new max differs from the previous max
 java.lang.Number getMinChange()
          Returns the amount by which the new min differs from the previous min
 int getNumberType()
          Returns number type for min and max change values
 int getType()
          Returns the type of event that was generated
 void setNumberChange(java.lang.Number min, java.lang.Number max, int numberType)
          Sets the min and max change amount for event
 void setType(int type)
          Sets the type of event that was generated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainChangeEvent

public DomainChangeEvent(Domain domain)
Constructor

Method Detail

getDomain

public Domain getDomain()
Returns the domain that generated the event


setType

public void setType(int type)
Sets the type of event that was generated


getType

public int getType()
Returns the type of event that was generated


setNumberChange

public void setNumberChange(java.lang.Number min,
                            java.lang.Number max,
                            int numberType)
Sets the min and max change amount for event


getNumberType

public int getNumberType()
Returns number type for min and max change values


getMinChange

public java.lang.Number getMinChange()
Returns the amount by which the new min differs from the previous min


getMaxChange

public java.lang.Number getMaxChange()
Returns the amount by which the new max differs from the previous max