jopt.csp.variable
Interface CspVariable

All Known Subinterfaces:
CspBooleanVariable, CspDoubleVariable, CspFloatVariable, CspIntSetVariable, CspIntVariable, CspLongVariable, CspNumVariable, CspSetVariable

public interface CspVariable

This interface should be implemented by all variables that allow their domain properties to be accessed and/or modified.

Author:
Chris Johnson

Method Summary
 java.lang.String getName()
          Returns the name of this variable
 int getSize()
          Returns the size of this variable's domain
 boolean isBound()
          Returns true if this variable's domain is bound to a single value
 

Method Detail

getName

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

Returns:
name of this variable

getSize

public int getSize()
Returns the size of this variable's domain

Returns:
size of this variable's domain

isBound

public boolean isBound()
Returns true if this variable's domain is bound to a single value

Returns:
true if variable's domain is bound to a single value