|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrouting.schedule.ScheduleOracle
public class ScheduleOracle
Constructor Summary | |
---|---|
ScheduleOracle()
|
Method Summary | |
---|---|
void |
addEntry(double start,
int from,
int to,
double duration)
Adds a new schedule entry to the oracle |
void |
addEntry(double start,
int from,
int via,
int to,
double duration)
Adds a new schedule entry to the oracle |
java.util.List<ScheduleEntry> |
getConnected(int from,
double time)
Returns a list of schedule entries for nodes reachable after given time from the given node |
java.util.List<ScheduleEntry> |
getEntries()
Returns all schedule entries |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScheduleOracle()
Method Detail |
---|
public void addEntry(double start, int from, int via, int to, double duration)
start
- Start timefrom
- Source of the connectionvia
- The node that goes from "from" to "via" (or -1 for n/a)to
- Destination of the connectionduration
- How long it takes to get to destinationpublic void addEntry(double start, int from, int to, double duration)
start
- Start timefrom
- Source of the connectionto
- Destination of the connectionduration
- How long it takes to get to destinationpublic java.util.List<ScheduleEntry> getConnected(int from, double time)
from
- The source nodetime
- Time to start
public java.util.List<ScheduleEntry> getEntries()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |