uk.ac.imperial.ph.hep.service
Enum DaqService.DaqStatus

java.lang.Object
  extended by java.lang.Enum<DaqService.DaqStatus>
      extended by uk.ac.imperial.ph.hep.service.DaqService.DaqStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DaqService.DaqStatus>
Enclosing class:
DaqService

public static enum DaqService.DaqStatus
extends java.lang.Enum<DaqService.DaqStatus>

An enumeration of possible DAQ states.

Author:
Jamie Ballin, HEP, Imperial College London

Enum Constant Summary
BUSY
           
COMM_ERROR
           
READY
           
 
Method Summary
 DaqApplication.AppIcon getAppIcon()
          An icon to be used for displays.
 java.lang.String getInterpretation()
          A human interpretation of what each status means (useful for display purposes).
static DaqService.DaqStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DaqService.DaqStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BUSY

public static final DaqService.DaqStatus BUSY

READY

public static final DaqService.DaqStatus READY

COMM_ERROR

public static final DaqService.DaqStatus COMM_ERROR
Method Detail

values

public static DaqService.DaqStatus[] 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 (DaqService.DaqStatus c : DaqService.DaqStatus.values())
    System.out.println(c);

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

valueOf

public static DaqService.DaqStatus 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
java.lang.NullPointerException - if the argument is null

getInterpretation

public java.lang.String getInterpretation()
A human interpretation of what each status means (useful for display purposes).

Returns:

getAppIcon

public DaqApplication.AppIcon getAppIcon()
An icon to be used for displays.