Class StopLogicEngine.Decelerate

    • Constructor Summary

      Constructors 
      Constructor Description
      Decelerate()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void config​(float currentPos, float destination, float currentVelocity)
      Configure simple deceleration controller
      java.lang.String debug​(java.lang.String desc, float time)  
      float getInterpolation​(float time)  
      float getVelocity()  
      float getVelocity​(float time)  
      boolean isStopped()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Decelerate

        public Decelerate()
    • Method Detail

      • debug

        public java.lang.String debug​(java.lang.String desc,
                                      float time)
        Specified by:
        debug in interface StopEngine
      • getVelocity

        public float getVelocity​(float time)
        Specified by:
        getVelocity in interface StopEngine
      • config

        public void config​(float currentPos,
                           float destination,
                           float currentVelocity)
        Configure simple deceleration controller
        Parameters:
        currentPos - the current position
        destination - the destination position
        currentVelocity - the currentVelocity change in pos / second