|
Cream version 1.06 Core API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.ac.kobe_u.cs.cream.Constraint
public abstract class Constraint
An abstract class for constraints. A constraint is a component of a
constraint network. See Network
for example
programs to construct constraints and add them to a constraint network.
Network
Method Summary | |
---|---|
abstract Constraint |
copy(Network net)
Creates a copy of this constraint for a new network net. |
int |
getIndex()
Returns the index of the constraint in the network. |
Network |
getNetwork()
Returns the constraint network. |
abstract boolean |
isModified()
Returns true when some argument variable is modified. |
abstract boolean |
satisfy(Trail trail)
Performs consistency algorithm. |
void |
setIndex(int index)
Sets the index of the constraint in the network. |
abstract String |
toString()
Returns the string representation of the constraint. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Network getNetwork()
public void setIndex(int index)
index
- the indexpublic int getIndex()
public abstract Constraint copy(Network net)
public abstract boolean isModified()
public abstract boolean satisfy(Trail trail)
trail
- the trail stack
public abstract String toString()
toString
in class Object
|
Cream version 1.06 Core API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |