routing.schedule
Class ScheduleEntry

java.lang.Object
  extended by 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
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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" starts
from - The source
via - The node that takes us there (or -1 if n/a)
to - The destination
duration - Time it takes from the source to destination
Method Detail

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