routing.schedule
Class ScheduleEntry
java.lang.Object
routing.schedule.ScheduleEntry
- All Implemented Interfaces:
- java.io.Serializable
public class ScheduleEntry
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
ScheduleEntry(double time,
int from,
int via,
int to,
double duration)
Constructor of new schedule entry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScheduleEntry
public ScheduleEntry(double time,
int from,
int via,
int to,
double duration)
- Constructor of new schedule entry
- Parameters:
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 destination
getTime
public double getTime()
- Returns time + delta
- Returns:
- the time
getTo
public int getTo()
- Returns:
- the destination
getFrom
public int getFrom()
- Returns:
- the source
getVia
public int getVia()
- Returns:
- the via
getDuration
public double getDuration()
- Return the time it takes to get from source to destination
- Returns:
- the duration
getDestinationTime
public double getDestinationTime()
getDelta
public double getDelta()
- Returns:
- the delta
setDelta
public void setDelta(double delta)
- Parameters:
delta
- the delta to set
getUsageCount
public int getUsageCount()
- Returns:
- the usageCount
increaseUsageCount
public void increaseUsageCount()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object