public class QueryBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NORMAL |
static int |
TEST_QUERIES |
Constructor and Description |
---|
QueryBuilder(TrafficEventHandler trafficEventHandler) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
double |
getTimeWaited()
Gets the time pedestrians have waited for this query.
|
TrafficSituationCase |
getTrafficQuery() |
void |
pause() |
void |
setMode(int mode)
Changes between normal mode (where the system gets its cases from information from a simulator or similar) and test mode (where the query cases are given to the system)
|
void |
start() |
public QueryBuilder(TrafficEventHandler trafficEventHandler)
public TrafficSituationCase getTrafficQuery()
public double getTimeWaited()
public void clear()
public void setMode(int mode)
mode
- Either 0 or 1, 0 = normal mode, 1 = test modepublic void pause()
public void start()