Class RandomKinematicAlgorithm
- java.lang.Object
-
- org.arakhne.afc.agentmotion.kinematic.RandomKinematicAlgorithm
-
- All Implemented Interfaces:
Serializable,Cloneable,RandomMotionAlgorithm
public class RandomKinematicAlgorithm extends Object implements RandomMotionAlgorithm, Serializable, Cloneable
Agent is changing randomly its position and orientation.This algorithm uses speeds.
- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:51
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- agentmotion
-
-
Constructor Summary
Constructors Constructor Description RandomKinematicAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentMotioncalculate(Point2D<?,?> position, Vector2D<?,?> orientation, double linearSpeed, double maxLinearSpeed, double angularSpeed, double maxAngularSpeed)Calculate the random motion.RandomKinematicAlgorithmclone()Clone this algorithm.
-
-
-
Method Detail
-
clone
@Pure public RandomKinematicAlgorithm clone()
Description copied from interface:RandomMotionAlgorithmClone this algorithm.- Specified by:
clonein interfaceRandomMotionAlgorithm- Overrides:
clonein classObject- Returns:
- the clone.
-
calculate
public AgentMotion calculate(Point2D<?,?> position, Vector2D<?,?> orientation, double linearSpeed, double maxLinearSpeed, double angularSpeed, double maxAngularSpeed)
Description copied from interface:RandomMotionAlgorithmCalculate the random motion.- Specified by:
calculatein interfaceRandomMotionAlgorithm- Parameters:
position- is the current position of the entity.orientation- is the current orientation of the entity.linearSpeed- is the current linear speed of the entity.maxLinearSpeed- is the maximal linear speed or acceleration of the entity.angularSpeed- is the current angular speed of the entity.maxAngularSpeed- is the maximal angular speed or acceleration of the entity.- Returns:
- the agent motion.
-
-