Package org.bidib.wizard.mvc.loco.model
Enum SpeedometerModel.SpeedMeasurementStage
- java.lang.Object
-
- java.lang.Enum<SpeedometerModel.SpeedMeasurementStage>
-
- org.bidib.wizard.mvc.loco.model.SpeedometerModel.SpeedMeasurementStage
-
- All Implemented Interfaces:
Serializable,Comparable<SpeedometerModel.SpeedMeasurementStage>
- Enclosing class:
- SpeedometerModel
public static enum SpeedometerModel.SpeedMeasurementStage extends Enum<SpeedometerModel.SpeedMeasurementStage>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTEDFINISHEDIDLEMEASURE_OFFMEASURE_ONREAD_CURRENT_CV_VALUESSET_MOTOR_PID_SOFTSET_SPEED_MAXSTART_MEASUREMENTSTOP_FOR_USER_INTERACTIONWAIT_FOR_CAR_SPEED_AND_BATTERY_RESPONSEWRITE_CV_VALUES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpeedometerModel.SpeedMeasurementStagevalueOf(String name)Returns the enum constant of this type with the specified name.static SpeedometerModel.SpeedMeasurementStage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final SpeedometerModel.SpeedMeasurementStage IDLE
-
WAIT_FOR_CAR_SPEED_AND_BATTERY_RESPONSE
public static final SpeedometerModel.SpeedMeasurementStage WAIT_FOR_CAR_SPEED_AND_BATTERY_RESPONSE
-
READ_CURRENT_CV_VALUES
public static final SpeedometerModel.SpeedMeasurementStage READ_CURRENT_CV_VALUES
-
WRITE_CV_VALUES
public static final SpeedometerModel.SpeedMeasurementStage WRITE_CV_VALUES
-
SET_MOTOR_PID_SOFT
public static final SpeedometerModel.SpeedMeasurementStage SET_MOTOR_PID_SOFT
-
START_MEASUREMENT
public static final SpeedometerModel.SpeedMeasurementStage START_MEASUREMENT
-
SET_SPEED_MAX
public static final SpeedometerModel.SpeedMeasurementStage SET_SPEED_MAX
-
FINISHED
public static final SpeedometerModel.SpeedMeasurementStage FINISHED
-
ABORTED
public static final SpeedometerModel.SpeedMeasurementStage ABORTED
-
STOP_FOR_USER_INTERACTION
public static final SpeedometerModel.SpeedMeasurementStage STOP_FOR_USER_INTERACTION
-
MEASURE_ON
public static final SpeedometerModel.SpeedMeasurementStage MEASURE_ON
-
MEASURE_OFF
public static final SpeedometerModel.SpeedMeasurementStage MEASURE_OFF
-
-
Method Detail
-
values
public static SpeedometerModel.SpeedMeasurementStage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpeedometerModel.SpeedMeasurementStage c : SpeedometerModel.SpeedMeasurementStage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpeedometerModel.SpeedMeasurementStage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-