|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmovement.MovementModel
movement.LinearFormation
public class LinearFormation
A stationary "movement" model where nodes do not move but are in linear formation (i.e., in a line).
| Field Summary | |
|---|---|
static java.lang.String |
END_LOCATION_S
Per node group setting for defining the end coordinates of the line ("endLocation") |
static java.lang.String |
LINEAR_FORMATION_NS
Name space of the settings (append to group name space) |
static java.lang.String |
START_LOCATION_S
Per node group setting for defining the start coordinates of the line ("startLocation") |
| Fields inherited from class movement.MovementModel |
|---|
comBus, DEF_SPEEDS, DEF_WAIT_TIMES, maxSpeed, maxWaitTime, minSpeed, minWaitTime, MOVEMENT_MODEL_NS, rng, RNG_SEED, SPEED, WAIT_TIME, WORLD_SIZE |
| Constructor Summary | |
|---|---|
LinearFormation(LinearFormation lf)
Copy constructor. |
|
LinearFormation(Settings s)
Creates a new movement model based on a Settings object's settings. |
|
| Method Summary | |
|---|---|
Coord |
getInitialLocation()
Returns the the location of the node in the formation |
Path |
getPath()
Returns a single coordinate path (using the only possible coordinate) |
double |
nextPathAvailable()
Returns Double.MAX_VALUE (no paths available) |
LinearFormation |
replicate()
Creates a replicate of the movement model. |
| Methods inherited from class movement.MovementModel |
|---|
generateSpeed, generateWaitTime, getComBus, getMaxX, getMaxY, isActive, reset, setComBus, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LINEAR_FORMATION_NS
public static final java.lang.String START_LOCATION_S
public static final java.lang.String END_LOCATION_S
| Constructor Detail |
|---|
public LinearFormation(Settings s)
s - The Settings object where the settings are read frompublic LinearFormation(LinearFormation lf)
lf - The LinearFormation prototype| Method Detail |
|---|
public Coord getInitialLocation()
getInitialLocation in class MovementModelpublic Path getPath()
getPath in class MovementModelpublic double nextPathAvailable()
nextPathAvailable in class MovementModelpublic LinearFormation replicate()
MovementModel
replicate in class MovementModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||