|
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
jp.ac.kobe_u.cs.cream.Serialized
public class Serialized
Serialized constraints constructed from an array of n integer variables (v[0], ..., v[n-1]) and an array of n positive integer constants (a[0], ..., a[n-1]). This constraint means v[i]+a[i] <= v[j] or v[j]+a[j] <= v[i] for each pair of i and j.
Sequential
,
LocalSearch
Nested Class Summary | |
---|---|
class |
Serialized.SerializedCondition
This class represents a condition on which the order of variables are chosen for this serialized constraint in the solution. |
class |
Serialized.Swap
This class represents an operation of swapping an order of two variables. |
Constructor Summary | |
---|---|
Serialized(Network net,
Variable[] v,
int[] a)
Adds a serialized constraint to the network. |
Method Summary | |
---|---|
Constraint |
copy(Network net)
Creates a copy of this constraint for a new network net. |
boolean |
isModified()
Returns true when some argument variable is modified. |
boolean |
satisfy(Trail trail)
Performs consistency algorithm. |
String |
toString()
Returns the string representation of the constraint. |
Methods inherited from class jp.ac.kobe_u.cs.cream.Constraint |
---|
getIndex, getNetwork, setIndex |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Serialized(Network net, Variable[] v, int[] a)
net
- the networkv
- the array of integer variablesa
- the array of positive integer constantsMethod Detail |
---|
public Constraint copy(Network net)
Constraint
copy
in class Constraint
public boolean isModified()
Constraint
isModified
in class Constraint
public boolean satisfy(Trail trail)
Constraint
satisfy
in class Constraint
trail
- the trail stack
public String toString()
Constraint
toString
in class Constraint
|
Cream version 1.06 Core API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |