org.powertac.common.enumerations
Class PowerType

java.lang.Object
  extended by org.powertac.common.enumerations.PowerType

@XStreamConverter(value=PowerTypeConverter.class)
public class PowerType
extends Object

Types of power a Customer can produce or consume. A single Customer may buy or sell multiple PowerTypes. This class is intended to behave like an enum for existing code.

Author:
John Collins

Field Summary
static PowerType BATTERY_STORAGE
           
static PowerType CHP_PRODUCTION
           
static PowerType CONSUMPTION
           
static PowerType ELECTRIC_VEHICLE
           
static PowerType FOSSIL_PRODUCTION
           
static PowerType INTERRUPTIBLE_CONSUMPTION
           
static PowerType PRODUCTION
           
static PowerType PUMPED_STORAGE_PRODUCTION
           
static PowerType RUN_OF_RIVER_PRODUCTION
           
static PowerType SOLAR_PRODUCTION
           
static PowerType STORAGE
           
static PowerType THERMAL_STORAGE_CONSUMPTION
           
static PowerType WIND_PRODUCTION
           
 
Method Summary
 boolean canUse(PowerType tariffType)
          Returns true just in case this powerType is a supertype (can use) the tariffType.
 PowerType getGenericType()
          Returns the least-specific capacity type for a given PowerType.
 boolean isConsumption()
          Returns true just in case this type would apply to a consumption tariff.
 boolean isInterruptible()
          Returns true just in case this type is interruptible.
 boolean isProduction()
          Returns true just in case this type would apply to a production tariff.
 boolean isStorage()
          Returns true just in case this type is a storage type.
 String toString()
           
static PowerType valueOf(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONSUMPTION

public static final PowerType CONSUMPTION

PRODUCTION

public static final PowerType PRODUCTION

STORAGE

public static final PowerType STORAGE

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

isConsumption

public boolean isConsumption()
Returns true just in case this type would apply to a consumption tariff.


isProduction

public boolean isProduction()
Returns true just in case this type would apply to a production tariff.


canUse

public boolean canUse(PowerType tariffType)
Returns true just in case this powerType is a supertype (can use) the tariffType.


isInterruptible

public boolean isInterruptible()
Returns true just in case this type is interruptible.


isStorage

public boolean isStorage()
Returns true just in case this type is a storage type.


getGenericType

public PowerType getGenericType()
Returns the least-specific capacity type for a given PowerType.


toString

public String toString()
Overrides:
toString in class Object

valueOf

public static PowerType valueOf(String name)


Copyright © 2012. All Rights Reserved.