public class LinearFormation extends MovementModel
| Modifier and Type | Field and Description |
|---|---|
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")
|
comBus, DEF_SPEEDS, DEF_WAIT_TIMES, host, maxSpeed, maxWaitTime, minSpeed, minWaitTime, MOVEMENT_MODEL_NS, rng, RNG_SEED, SPEED, WAIT_TIME, WORLD_SIZE| Constructor and Description |
|---|
LinearFormation(LinearFormation lf)
Copy constructor.
|
LinearFormation(Settings s)
Creates a new movement model based on a Settings object's settings.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
generateSpeed, generateWaitTime, getComBus, getHost, getMaxX, getMaxY, isActive, reset, setComBus, setHost, toStringpublic 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
public LinearFormation(Settings s)
s - The Settings object where the settings are read frompublic LinearFormation(LinearFormation lf)
lf - The LinearFormation prototypepublic Coord getInitialLocation()
getInitialLocation in class MovementModelpublic Path getPath()
getPath in class MovementModelpublic double nextPathAvailable()
nextPathAvailable in class MovementModelpublic LinearFormation replicate()
MovementModelreplicate in class MovementModel