mavis
Enum MeasurementStep.State

java.lang.Object
  extended by java.lang.Enum<MeasurementStep.State>
      extended by mavis.MeasurementStep.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MeasurementStep.State>
Enclosing class:
MeasurementStep

public static enum MeasurementStep.State
extends java.lang.Enum<MeasurementStep.State>

The state of a measurement step.


Enum Constant Summary
DONE
           
DONE_RECENTLY
           
MEASURING
           
READY
           
 
Field Summary
private  boolean done
           
 
Method Summary
 boolean isDone()
          When the step's state is "done", no changes to the measurements are any more allowed.
static MeasurementStep.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MeasurementStep.State[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

READY

public static final MeasurementStep.State READY

MEASURING

public static final MeasurementStep.State MEASURING

DONE_RECENTLY

public static final MeasurementStep.State DONE_RECENTLY

DONE

public static final MeasurementStep.State DONE
Field Detail

done

private boolean done
Method Detail

values

public static final MeasurementStep.State[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MeasurementStep.State c : MeasurementStep.State.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MeasurementStep.State valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

isDone

public boolean isDone()
When the step's state is "done", no changes to the measurements are any more allowed.