|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectreport.Report
report.CreateNodeTrace
public class CreateNodeTrace
Class that gets all the informations on the mobility of a user by implementing the MovementListener.
Field Summary |
---|
Fields inherited from class report.Report |
---|
DEF_PRECISION, INTERVAL_SETTING, INTERVALLED_FORMAT, NAN, OUT_SUFFIX, OUTPUT_SETTING, PRECISION_SETTING, REPORT_NS, REPORTDIR_SETTING, WARMUP_S |
Constructor Summary | |
---|---|
CreateNodeTrace()
|
Method Summary | |
---|---|
void |
initialLocation(DTNHost host,
core.Coord location)
When the node is assigned it's first location this method saves in the DTNHWMap the first location visited the day and the time. |
void |
newDestination(DTNHost host,
core.Coord destination,
double speed)
When the method is called it saves in the DTNHWMap the destination visited, the day and the time. |
Methods inherited from class report.Report |
---|
done, getAverage, getIntAverage, getIntMedian, getMedian, getVariance |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateNodeTrace()
Method Detail |
---|
public void newDestination(DTNHost host, core.Coord destination, double speed)
newDestination
in interface core.MovementListener
host
- DTNHost the moving hostdestination
- Coord the coordinates of the location where the host is goingspeed
- Double the speed of the movement, unused in this implementationpublic void initialLocation(DTNHost host, core.Coord location)
initialLocation
in interface core.MovementListener
host
- DTNHost the moving hostlocation
- Coord the coordinates of the location where the host is put
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |