Class Speed
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.cognitive.impact.individual.Characteristic
public final class Speed implements Characteristic
The speed of an agent considering its age, gender and a random factor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Speed.Companion
Default configurations.
-
Constructor Summary
Constructors Constructor Description Speed(Age age, Gender gender, RandomGenerator randomGenerator)
-
Method Summary
Modifier and Type Method Description final Double
getWalking()
The walking speed of the agent. final Double
getRunning()
The running speed of the agent. -
-
Constructor Detail
-
Speed
Speed(Age age, Gender gender, RandomGenerator randomGenerator)
- Parameters:
age
-the age of the agent.
gender
-the gender of the agent.
randomGenerator
-the simulation {@link RandomGenerator}.
-
-
Method Detail
-
getWalking
final Double getWalking()
The walking speed of the agent.
-
getRunning
final Double getRunning()
The running speed of the agent.
-
-
-
-