Package org.arakhne.afc.agentmotion
Interface RandomMotionAlgorithm
-
- All Known Implementing Classes:
RandomAlgorithm,RandomKinematicAlgorithm
public interface RandomMotionAlgorithmAgent is changing randomly its position and orientation.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:51
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- agentmotion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AgentMotioncalculate(Point2D<?,?> position, Vector2D<?,?> orientation, double linearSpeed, double maxLinear, double angularSpeed, double maxAngular)Calculate the random motion.RandomMotionAlgorithmclone()Clone this algorithm.
-
-
-
Method Detail
-
clone
@Pure RandomMotionAlgorithm clone()
Clone this algorithm.- Returns:
- the clone.
-
calculate
@Pure AgentMotion calculate(Point2D<?,?> position, Vector2D<?,?> orientation, double linearSpeed, double maxLinear, double angularSpeed, double maxAngular)
Calculate the random motion.- 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.maxLinear- is the maximal linear speed or acceleration of the entity.angularSpeed- is the current angular speed of the entity.maxAngular- is the maximal angular speed or acceleration of the entity.- Returns:
- the agent motion.
-
-