public class RandomMovementModule extends MovementModule
HumanAgent
in a random direction without
taking into account its surroundings.Modifier and Type | Field and Description |
---|---|
private RandomPlus |
random
The random generator.
|
agent, currentVelocity, desiredSpeed, observationModule
Constructor and Description |
---|
RandomMovementModule(double desiredSpeed)
Creates a random model.
|
RandomMovementModule(double desiredSpeed,
RandomPlus random)
Creates a random movement model.
|
Modifier and Type | Method and Description |
---|---|
Vector |
getMove(int timeStep)
Gets the next move.
|
boundSpeed, getChair, getCurrentVelocity, getDesiredSpeed, getPosition, getStopMovingTime, getStopOrder, init, isSitting, setSitDown, setStopOrder, update
private RandomPlus random
public RandomMovementModule(double desiredSpeed)
desiredSpeed
- The desired speed.public RandomMovementModule(double desiredSpeed, RandomPlus random)
desiredSpeed
- The desired speed.random
- The random generator.public Vector getMove(int timeStep)
MovementModule
MovementModule.currentVelocity
to the generated value.getMove
in class MovementModule
timeStep
- The time step (in milliseconds).