org.drools.examples.jiahvac.model
Enum Vent.State

java.lang.Object
  extended by java.lang.Enum<Vent.State>
      extended by org.drools.examples.jiahvac.model.Vent.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Vent.State>
Enclosing interface:
Vent

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

 

Enum Constant Summary
CLOSED
           
OPEN
           
 
Method Summary
 double getValue()
           
 java.lang.String toString()
           
static Vent.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Vent.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, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OPEN

public static final Vent.State OPEN

CLOSED

public static final Vent.State CLOSED
Method Detail

values

public static final Vent.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(Vent.State c : Vent.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 Vent.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.)

Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name

getValue

public double getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Vent.State>