|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectifs.model.Constraint
ifs.example.jobshop.Job
public class Job
Job constraint.
Each job contians a given set of operations (variables).
A job constraint is satisfied, if all operations of the job do not overlap in time and are processed in the given order.
| Constructor Summary | |
|---|---|
Job(int jobNumber)
Constructor |
|
| Method Summary | |
|---|---|
void |
computeConflicts(Value value,
Set conflicts)
Adds conflicting operations into the set of conflicts. |
int |
countOperations()
Count job operations for the job (i.e., the number of variables in this constraint) |
int |
getDueTime()
Get due time |
int |
getJobNumner()
Get job number |
String |
getName()
Name of the job (e.g. |
Operation |
getOperation(int opNumber)
Get operation of the given index (0..countOperations()-1) |
boolean |
inConflict(Value value)
True if there is an operation from the same job which violates with the given assignment. |
boolean |
isConsistent(Value value1,
Value value2)
True if the two assignments (placement of opeartions of the same job in time) violates each other. |
void |
setDueTime(int dueTime)
Set due time |
String |
toString()
String representation -- for debuging and printing purposes |
| Methods inherited from class ifs.model.Constraint |
|---|
addConstraintListener, addVariable, assigned, assignedVariables, countAssignedVariables, countVariables, getDescription, getId, getInfo, getModel, hashCode, isHard, removeConstraintListener, removeVariable, setModel, unassigned, variables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Job(int jobNumber)
jobNumber - job number| Method Detail |
|---|
public void setDueTime(int dueTime)
public int getDueTime()
public int getJobNumner()
public int countOperations()
public Operation getOperation(int opNumber)
public void computeConflicts(Value value,
Set conflicts)
computeConflicts in class Constraintvalue - 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 Constraintpublic String toString()
toString in class Objectpublic String getName()
getName in class Constraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||