Class Algorithms

  • All Implemented Interfaces:
    Constants

    public class Algorithms
    extends java.lang.Object
    implements Constants
    Provide central access to the RPS algorithms.
    • Constructor Summary

      Constructors 
      Constructor Description
      Algorithms()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.JComboBox<java.lang.String> algorithmBox()  
      static Calculator newCalculator​(Point3d[] points, double vs, int offset, java.lang.String name)
      Create proper Calculator instance.
      • Methods inherited from class java.lang.Object

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

      • algorithmBox

        public static javax.swing.JComboBox<java.lang.String> algorithmBox()
      • newCalculator

        public static Calculator newCalculator​(Point3d[] points,
                                               double vs,
                                               int offset,
                                               java.lang.String name)
        Create proper Calculator instance.
        Parameters:
        points - the points array.
        vs - algorithm getVSound.
        offset - algorithm offset.
        name - algorithm name.
        Returns:
        the calculator.