Class StandardMouseAlgorithm

    • Constructor Detail

      • StandardMouseAlgorithm

        public StandardMouseAlgorithm()
    • Method Detail

      • getCanvasReportRate

        public double getCanvasReportRate()
        Calculates canvas report rate.
        Returns:
        the current canvas report rate.
      • dynamicRandom

        public double dynamicRandom()
        Dynamic random value based on the current characters user name.
        Returns:
        the random value generated from character name represented as a double.
      • getMaxdTheta

        public int getMaxdTheta()
        Calculates max theta value (d) using a dynamic random.
        Returns:
        the calculated max theta value (d) represented as a int.
      • getDecelRadiusDeviation

        public int getDecelRadiusDeviation()
        Calculates deceleration radius deviation using a dynamic random.
        Returns:
        the calculated deceleration radius deviation represented as a int.
      • getDecayDistanceExponent

        public double getDecayDistanceExponent()
        Calculates the decay distance exponent using a dynamic random.
        Returns:
        the calculated decay distance exponent represented as a double.
      • getMinMagnitude

        public int getMinMagnitude()
        Calculates minimum magnitude using a dynamic random.
        Returns:
        the calculated minimum magnitude represented as a int.
      • getAccelerationDeviation

        public int getAccelerationDeviation()
        Calculates acceleration deviation using a dynamic random.
        Returns:
        the calculated acceleration deviation as a int.
      • getMinDecelMagnitude

        public int getMinDecelMagnitude()
        Calculates minimum deceleration magnitude using a dynamic random.
        Returns:
        the calculated minimum deceleration magnitude as a int.
      • getMaxDecelDistance

        public int getMaxDecelDistance()
        Calculates max deceleration distance using a dynamic random.
        Returns:
        the calculated max deceleration distance as a int.
      • getAccelerationRate

        public int getAccelerationRate()
        Calculates acceleration rate using a dynamic random.
        Returns:
        the calculated acceleration rate as a int.
      • getMaxMagnitude

        public int getMaxMagnitude()
        Calculates max magnitude using a dynamic random.
        Returns:
        the calculated max magnitude as a int.
      • getDecelDecayRate

        public double getDecelDecayRate()
        Calculates deceleration decay rate using a dynamic random.
        Returns:
        the calculated deceleration decay rate as a double.
      • getAngleDeviationRate

        public int getAngleDeviationRate()
        Calculates angle deviation rate using a dynamic random.
        Returns:
        the calculated angle deviation rate as a int.
      • getMeanDecelRadius

        public int getMeanDecelRadius()
        Calculates mean deceleration radius using a dynamic random.
        Returns:
        the calculated mean deceleration radius as a int.
      • setSpeed

        public void setSpeed​(int accelerationRate,
                             int maxMagnitude)
        Sets both the acceleration rate and maximum magnitude for this event allowing speed adjustments.
        Parameters:
        accelerationRate - the acceleration rate for this event.
        maxMagnitude - the maximum magnitude allowed by event.
      • resetSpeed

        public void resetSpeed()
        Resets both the acceleration rate and maximum magnitude to default values.