Class TrapezoidProfile.Constraints

  • Enclosing class:
    TrapezoidProfile

    public static class TrapezoidProfile.Constraints
    extends java.lang.Object
    Data class to hold the maximum allowed rates for the output of a TrapezoidProfile.
    • Constructor Summary

      Constructors 
      Constructor Description
      Constraints​(double maxVelocity, double maxAcceleration)
      Constructs a TrapezoidProfileConstraints.
    • 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

      • maxVelocity

        public final double maxVelocity
      • maxAcceleration

        public final double maxAcceleration
    • Constructor Detail

      • Constraints

        public Constraints​(double maxVelocity,
                           double maxAcceleration)
        Constructs a TrapezoidProfileConstraints.
        Parameters:
        maxVelocity - maximum allowed velocity.
        maxAcceleration - maximum allowed acceleration (both directions).
    • 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