public class MovementReportDB extends ReportDB implements MovementListener
| Modifier and Type | Field and Description |
|---|---|
protected java.sql.PreparedStatement |
statement |
connection, OUT_SUFFIXDEF_PRECISION, INTERVAL_SETTING, INTERVALLED_FORMAT, NAN, out, OUTPUT_SETTING, PRECISION_SETTING, REPORT_NS, REPORTDIR_SETTING, WARMUP_S, warmupIDs, warmupTime| Constructor and Description |
|---|
MovementReportDB()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
done()
Close the database connection.
|
void |
initialLocation(DTNHost host,
Coord location)
Method is called when a host receives its initial location from
movement model.
|
protected void |
initTable()
Initializes the database table(s).
|
void |
newDestination(DTNHost host,
Coord destination,
double speed)
Method is called every time a host receives a new destination from its
movement model.
|
addWarmupID, checkDirExistence, format, getAverage, getIntAverage, getIntMedian, getMedian, getScenarioName, getSettings, getSimTime, getVariance, isWarmup, isWarmupID, removeWarmupID, setPrefix, writeprotected void initTable()
ReportDBpublic void newDestination(DTNHost host, Coord destination, double speed)
MovementListenernewDestination in interface MovementListenerhost - The host that got a new destinationdestination - Coordinates of the destinationspeed - Speed towards that destinationpublic void initialLocation(DTNHost host, Coord location)
MovementListenerinitialLocation in interface MovementListenerhost - The host that got the locationlocation - Coordinates of the location