public class ScheduleEntry
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ScheduleEntry(double time,
int from,
int via,
int to,
double duration)
Constructor of new schedule entry
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDelta() |
double |
getDestinationTime() |
double |
getDuration()
Return the time it takes to get from source to destination
|
int |
getFrom() |
double |
getTime()
Returns time + delta
|
int |
getTo() |
int |
getUsageCount() |
int |
getVia() |
void |
increaseUsageCount() |
void |
setDelta(double delta) |
java.lang.String |
toString() |
public ScheduleEntry(double time,
int from,
int via,
int to,
double duration)
time - When the journey from "from" startsfrom - The sourcevia - The node that takes us there (or -1 if n/a)to - The destinationduration - Time it takes from the source to destinationpublic double getTime()
public int getTo()
public int getFrom()
public int getVia()
public double getDuration()
public double getDestinationTime()
public double getDelta()
public void setDelta(double delta)
delta - the delta to setpublic int getUsageCount()
public void increaseUsageCount()
public java.lang.String toString()
toString in class java.lang.Object