|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.ifs.model.Constraint net.sf.cpsolver.ifs.example.jobshop.Machine
public class Machine
Machine constraint.
Each machine contians a given set of operations (variables).
A machine constraint is satisfied, if all operations on it do not overlap in time.
Field Summary |
---|
Fields inherited from class net.sf.cpsolver.ifs.model.Constraint |
---|
iAssignedVariables, iConstraintListeners, iId |
Constructor Summary | |
---|---|
Machine(int machineNumber)
Constructor |
Method Summary | |
---|---|
void |
computeConflicts(Value value,
Set conflicts)
Adds conflicting operations into the set of conflicts. |
int |
getMachineNumber()
Get machine number |
String |
getName()
Name of the machine (e.g. |
boolean |
inConflict(Value value)
True if there is an operation from the machine which violates with the given assignment. |
boolean |
isConsistent(Value value1,
Value value2)
True if the two assignments (placement of opeartions of the machine in time) violates each other. |
String |
toString()
string representation -- for debuging and printing purposes |
Methods inherited from class net.sf.cpsolver.ifs.model.Constraint |
---|
addConstraintListener, addVariable, assigned, assignedVariables, constraintListeners, countAssignedVariables, countVariables, equals, getDescription, getId, getModel, hashCode, isHard, removeConstraintListener, removeVariable, setModel, unassigned, variables |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Machine(int machineNumber)
machineNumber
- machine numberMethod Detail |
---|
public int getMachineNumber()
public void computeConflicts(Value value, Set conflicts)
computeConflicts
in class Constraint
value
- value to be assigned to its varaibleconflicts
- resultant set of conflicting valuespublic boolean inConflict(Value value)
inConflict
in class Constraint
public boolean isConsistent(Value value1, Value value2)
isConsistent
in class Constraint
public String toString()
toString
in class Object
public String getName()
getName
in class Constraint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |