Class ProfilePhase


  • public class ProfilePhase
    extends java.lang.Object
    Holds constant-acceleration kinematic rates and time.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        ProfilePhase​(double acceleration, double initialVelocity, double time)
      Constructs a ProfilePhase from a given acceleration, initial velocity, and time.
      protected ProfilePhase​(double time, double position, double acceleration, double initialVelocity)
      Constructs a ProfilePhase.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • time

        public final double time
      • position

        public final double position
      • acceleration

        public final double acceleration
      • initialVelocity

        public final double initialVelocity
    • Constructor Detail

      • ProfilePhase

        public ProfilePhase​(double acceleration,
                            double initialVelocity,
                            double time)
        Constructs a ProfilePhase from a given acceleration, initial velocity, and time.
        Parameters:
        acceleration - The acceleration throughout this phase.
        initialVelocity - The velocity at the start of the phase.
        time - The duration of the phase.
      • ProfilePhase

        protected ProfilePhase​(double time,
                               double position,
                               double acceleration,
                               double initialVelocity)
        Constructs a ProfilePhase.
        Parameters:
        time - The duration of the phase.
        position - The displacement of the phase.
        acceleration - The acceleration of the phase (0 if coast phase).
        initialVelocity - The velocity at the beginning of a phase.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object