|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.bonn.cs.iv.bonnmotion.MobileNode
public class MobileNode
Mobile node.
Field Summary | |
---|---|
protected double[] |
ct
Times when mobile changes speed or direction. |
protected static int |
debug
|
protected static boolean |
printAngleStuff
|
protected java.util.Vector |
waypoints
|
Constructor Summary | |
---|---|
MobileNode()
|
Method Summary | |
---|---|
boolean |
add(double time,
Position pos)
Optimised for waypoints coming in with increasing time. |
void |
add(MobileNode _node)
Add Waypoint from an other node. |
double[] |
changeTimes()
|
void |
cut(double begin,
double end)
|
Waypoint |
getWaypoint(int idx)
|
Waypoint |
lastElement()
|
java.lang.String |
movementString()
|
java.lang.String[] |
movementStringGlomo(java.lang.String id)
|
java.lang.String[] |
movementStringNS(java.lang.String id,
double border)
|
int |
numWaypoints()
|
static double[] |
pairStatistics(MobileNode node1,
MobileNode node2,
double start,
double duration,
double range,
boolean calculateMobility)
|
static double[] |
pairStatistics(MobileNode node1,
MobileNode node2,
double start,
double duration,
double range,
boolean calculateMobility,
Building[] buildings)
|
java.lang.String |
placementStringGlomo(java.lang.String id)
|
Position |
positionAt(double time)
|
void |
removeLastElement()
Remove the latest waypoint (last in the internal list). |
static boolean |
sameBuilding(Building[] buildings,
Position pos1,
Position pos2)
|
void |
shiftPos(double _x,
double _y)
Move all waypoints by a certain offset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int debug
protected static final boolean printAngleStuff
protected double[] ct
protected java.util.Vector waypoints
Constructor Detail |
---|
public MobileNode()
Method Detail |
---|
public boolean add(double time, Position pos)
public void add(MobileNode _node)
_node
- Waypoints of node to addpublic void removeLastElement()
public Waypoint lastElement()
public int numWaypoints()
public Waypoint getWaypoint(int idx)
public void shiftPos(double _x, double _y)
public double[] changeTimes()
public void cut(double begin, double end)
public java.lang.String movementString()
public java.lang.String[] movementStringNS(java.lang.String id, double border)
border
- The border we add around the scenario to prevent ns-2 from crashing; this value is added to all x- and y-values.public java.lang.String placementStringGlomo(java.lang.String id)
public java.lang.String[] movementStringGlomo(java.lang.String id)
public Position positionAt(double time)
public static boolean sameBuilding(Building[] buildings, Position pos1, Position pos2)
public static double[] pairStatistics(MobileNode node1, MobileNode node2, double start, double duration, double range, boolean calculateMobility)
public static double[] pairStatistics(MobileNode node1, MobileNode node2, double start, double duration, double range, boolean calculateMobility, Building[] buildings)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |