org.powertac.common.enumerations
Enum PowerType

java.lang.Object
  extended by java.lang.Enum<PowerType>
      extended by org.powertac.common.enumerations.PowerType
All Implemented Interfaces:
Serializable, Comparable<PowerType>

public enum PowerType
extends Enum<PowerType>

Types of power a Customer can produce or consume. A single Customer may buy or sell multiple PowerTypes.

Author:
jcollins

Enum Constant Summary
BATTERY_STORAGE
           
CHP_PRODUCTION
           
CONSUMPTION
           
ELECTRIC_VEHICLE
           
FOSSIL_PRODUCTION
           
INTERRUPTIBLE_CONSUMPTION
           
PRODUCTION
           
PUMPED_STORAGE_PRODUCTION
           
RUN_OF_RIVER_PRODUCTION
           
SOLAR_PRODUCTION
           
THERMAL_STORAGE_CONSUMPTION
           
WIND_PRODUCTION
           
 
Method Summary
static PowerType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PowerType[] 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

CONSUMPTION

public static final PowerType CONSUMPTION

PRODUCTION

public static final PowerType PRODUCTION

INTERRUPTIBLE_CONSUMPTION

public static final PowerType INTERRUPTIBLE_CONSUMPTION

THERMAL_STORAGE_CONSUMPTION

public static final PowerType THERMAL_STORAGE_CONSUMPTION

SOLAR_PRODUCTION

public static final PowerType SOLAR_PRODUCTION

WIND_PRODUCTION

public static final PowerType WIND_PRODUCTION

RUN_OF_RIVER_PRODUCTION

public static final PowerType RUN_OF_RIVER_PRODUCTION

PUMPED_STORAGE_PRODUCTION

public static final PowerType PUMPED_STORAGE_PRODUCTION

CHP_PRODUCTION

public static final PowerType CHP_PRODUCTION

FOSSIL_PRODUCTION

public static final PowerType FOSSIL_PRODUCTION

BATTERY_STORAGE

public static final PowerType BATTERY_STORAGE

ELECTRIC_VEHICLE

public static final PowerType ELECTRIC_VEHICLE
Method Detail

values

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

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

valueOf

public static PowerType 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 name
NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.