Interface RandomMotionAlgorithm

  • All Known Implementing Classes:
    RandomAlgorithm, RandomKinematicAlgorithm

    public interface RandomMotionAlgorithm
    Agent 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 Detail

      • 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.