public class Location extends Value<Operation,Location>
Constructor and Description |
---|
Location(Operation op,
int startTime)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
after(Location anotherLocation)
Returns true if after the given location
|
boolean |
before(Location anotherLocation)
Returns 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)
|
compareTo, compareTo, conflicts, conflicts, equals, getDescription, getExtra, getId, hashCode, isConsistent, setExtra, setVariable, toDouble, valueEquals, valueEquals, variable
public int getStartTime()
public int getFinishingTime()
public double toDouble()
public boolean overlap(Location anotherLocation)
anotherLocation
- given locationpublic boolean before(Location anotherLocation)
anotherLocation
- given location