|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.ifs.model.Value<Operation,Location>
net.sf.cpsolver.ifs.example.jobshop.Location
public class Location
Location of an operation.
Each location has its start time.
| Field Summary |
|---|
| Fields inherited from class net.sf.cpsolver.ifs.model.Value |
|---|
iValue |
| Constructor Summary | |
|---|---|
Location(Operation op,
int startTime)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
after(Location anotherLocation)
Returnts true if after the given location |
boolean |
before(Location anotherLocation)
Returnts true if before the given location |
int |
getFinishingTime()
Get finishing time of the location (start time + operation processing time) |
String |
getName()
Name -- start time |
int |
getStartTime()
Get start time of the location |
boolean |
overlap(Location anotherLocation)
Returns true if overlap with the given location |
double |
toDouble()
Start time of the location |
String |
toString()
String representation (operation name = start time) |
| Methods inherited from class net.sf.cpsolver.ifs.model.Value |
|---|
assigned, compareTo, conflicts, countAssignments, equals, getDescription, getExtra, getId, hashCode, isConsistent, lastAssignmentIteration, lastUnassignmentIteration, setExtra, setVariable, unassigned, valueEquals, variable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Location(Operation op,
int startTime)
op - parent operationstartTime - start time| Method Detail |
|---|
public int getStartTime()
public int getFinishingTime()
public double toDouble()
toDouble in class Value<Operation,Location>public String toString()
toString in class Value<Operation,Location>public String getName()
getName in class Value<Operation,Location>public boolean overlap(Location anotherLocation)
public boolean before(Location anotherLocation)
public boolean after(Location anotherLocation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||