Class RandomKinematicAlgorithm

    • Constructor Detail

      • RandomKinematicAlgorithm

        public RandomKinematicAlgorithm()
    • Method Detail

      • calculate

        public AgentMotion calculate​(Point2D<?,​?> position,
                                     Vector2D<?,​?> orientation,
                                     double linearSpeed,
                                     double maxLinearSpeed,
                                     double angularSpeed,
                                     double maxAngularSpeed)
        Description copied from interface: RandomMotionAlgorithm
        Calculate the random motion.
        Specified by:
        calculate in interface RandomMotionAlgorithm
        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.