Package jmri.jmrix.rps
Class Algorithms
- java.lang.Object
-
- jmri.jmrix.rps.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(javax.vecmath.Point3d[] points, double vs, int offset, java.lang.String name)
Create proper Calculator instance.
-
-
-
Field Detail
-
DEFAULTALGORITHMINDEX
static final int DEFAULTALGORITHMINDEX
- See Also:
- Constant Field Values
-
names
static final java.lang.String[] names
-
-
Constructor Detail
-
Algorithms
public Algorithms()
-
-
Method Detail
-
algorithmBox
public static javax.swing.JComboBox<java.lang.String> algorithmBox()
-
newCalculator
public static Calculator newCalculator(javax.vecmath.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.
-
-