org.hackystat.sensor.xmldata.option
Enum Options

java.lang.Object
  extended by java.lang.Enum<Options>
      extended by org.hackystat.sensor.xmldata.option.Options
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Options>

public enum Options
extends java.lang.Enum<Options>

The enumeration of options that have can have associated objects. Each option can be mapped to other objects during the processing phase of options and be retrieved by using each option in this class as a key.

Author:
aito

Enum Constant Summary
MULTI_SHELL
          The option set when the user requests to send data using muliple sensorshell instances.
RESOURCE
          The option set when all entries sent by this sensor belongs to the same specified resource.
SDT
          The option set when specifying the SensorDataType.
SET_RUNTIME
          The option set when the user requests to send data as a batch, which means that all data instances have the same runtime.
UNIQUE_TSTAMP
          The option set when specifying unique timestamps found in the sensor data file.
VERBOSE
          The option set when running in verbose mode.
 
Method Summary
static Options valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Options[] 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

VERBOSE

public static final Options VERBOSE
The option set when running in verbose mode. The object associated with this option is a boolean.


SDT

public static final Options SDT
The option set when specifying the SensorDataType. The object associated with this option is a String.


UNIQUE_TSTAMP

public static final Options UNIQUE_TSTAMP
The option set when specifying unique timestamps found in the sensor data file. The object associated with this option is a boolean.


MULTI_SHELL

public static final Options MULTI_SHELL
The option set when the user requests to send data using muliple sensorshell instances. This allows speedier data sending.


SET_RUNTIME

public static final Options SET_RUNTIME
The option set when the user requests to send data as a batch, which means that all data instances have the same runtime.


RESOURCE

public static final Options RESOURCE
The option set when all entries sent by this sensor belongs to the same specified resource.

Method Detail

values

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

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

valueOf

public static Options 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