jopt.csp.spi.arcalgorithm.domain
Interface Domain

All Known Subinterfaces:
BooleanDomain, DoubleDomain, FloatDomain, IntDomain, LongDomain, NumDomain, SetDomain
All Known Implementing Classes:
AbstractDomain, BaseDoubleDomain, BaseFloatDomain, BaseIntDomain, BaseLongDomain, BooleanComputedDomain, BooleanIntDomain, DoubleComputedDomain, DoubleDomainWrapper, FloatComputedDomain, FloatDomainWrapper, IntComputedDomain, IntSetDomain, LongComputedDomain, LongDomainWrapper, SummationDoubleComputedDomain, SummationFloatComputedDomain, SummationIntComputedDomain, SummationLongComputedDomain

public interface Domain

Interface implemented by all csp domains


Method Summary
 boolean changed()
          Returns true if last operation caused a change to occur in the domain
 void clearDelta()
          Clears the delta set for this domain
 java.lang.Object clone()
          Returns a copy of this domain
 java.lang.Object getDomainState()
          Stores all necessary information for this domain allowing it to be restored to a previous state at a later point in time.
 boolean isBound()
          Returns true if domain is bound to a value
 void restoreDomainState(java.lang.Object state)
          Restores a domain to a previous state using the information contained in the state parameter.
 

Method Detail

isBound

public boolean isBound()
Returns true if domain is bound to a value


getDomainState

public java.lang.Object getDomainState()
Stores all necessary information for this domain allowing it to be restored to a previous state at a later point in time. Note: if a particular implementation does not support the storage of state information, this simply returns null

Returns:
an Object representing the current state information for this domain

restoreDomainState

public void restoreDomainState(java.lang.Object state)
Restores a domain to a previous state using the information contained in the state parameter. Note: if a particular implementation does not support the restoration of state information, this method does nothing

Parameters:
state - The state information to which this domain should be set

clone

public java.lang.Object clone()
Returns a copy of this domain


changed

public boolean changed()
Returns true if last operation caused a change to occur in the domain


clearDelta

public void clearDelta()
Clears the delta set for this domain