public class RotationCountPhaseTracker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
APPLY_BACKWARD
APPLY_BACKWARD - Decrement Rotation Count
|
static int |
APPLY_FORWARD
APPLY_FORWARD - Increment Rotation Count
|
static int |
APPLY_NONE
APPLY_NONE - Do not Apply Rotation Count
|
Constructor and Description |
---|
RotationCountPhaseTracker()
Empty RotationCountPhaseTracker constructor - Initialize to "NO ROTATION COUNT"
|
Modifier and Type | Method and Description |
---|---|
int |
getDirection()
Get the Direction on which the rotation count is to be applied
|
double |
getPreviousPhase()
Get the Previous Phase
|
boolean |
setDirection(int iRotationDirection)
Set the Direction on which the rotation count is to be applied
|
boolean |
setPreviousPhase(double dblPreviousPhase)
Set the Previous Phase
|
double |
updateAndApply(double dblCurrentPhase,
boolean bApply)
Apply the Rotation Count Adjustment in accordance with the direction, (optionally) record the previous
phase.
|
public static final int APPLY_NONE
public static final int APPLY_BACKWARD
public static final int APPLY_FORWARD
public RotationCountPhaseTracker()
public boolean setDirection(int iRotationDirection)
iRotationDirection
- The Rotation Directionpublic int getDirection()
public boolean setPreviousPhase(double dblPreviousPhase)
dblPreviousPhase
- The Previous Phasepublic double getPreviousPhase()
public double updateAndApply(double dblCurrentPhase, boolean bApply) throws java.lang.Exception
dblCurrentPhase
- The Phase to be UpdatedbApply
- TRUE - Record the Previous Phasejava.lang.Exception
- Thrown if the Operation cannot be performed