public class ScheduleOracle
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ScheduleOracle() |
| Modifier and Type | Method and Description |
|---|---|
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
|
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 startpublic java.util.List<ScheduleEntry> getEntries()