Package org.powertac.common.enumerations
Class PowerType
java.lang.Object
org.powertac.common.enumerations.PowerType
@XStreamConverter(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
Fields Modifier and Type Field Description static PowerTypeBATTERY_STORAGEstatic PowerTypeCHP_PRODUCTIONstatic PowerTypeCONSUMPTIONstatic PowerTypeELECTRIC_VEHICLEstatic PowerTypeFOSSIL_PRODUCTIONstatic PowerTypeINTERRUPTIBLE_CONSUMPTIONstatic PowerTypePRODUCTIONstatic PowerTypePUMPED_STORAGE_PRODUCTIONstatic PowerTypeRUN_OF_RIVER_PRODUCTIONstatic PowerTypeSOLAR_PRODUCTIONstatic PowerTypeSTORAGEstatic PowerTypeTHERMAL_STORAGE_CONSUMPTIONstatic PowerTypeWIND_PRODUCTION -
Method Summary
Modifier and Type Method Description booleancanUse(PowerType tariffType)Returns true just in case this powerType is a supertype (can use) the tariffType.PowerTypegetGenericType()Returns the least-specific capacity type for a given PowerType.booleanisConsumption()Returns true just in case this type would apply to a consumption tariff.booleanisInterruptible()Returns true just in case this type is interruptible.booleanisProduction()Returns true just in case this type would apply to a production tariff.booleanisStorage()Returns true just in case this type is a storage type.StringtoString()static PowerTypevalueOf(String name)
-
Field Details
-
Method Details
-
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
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
Returns the least-specific capacity type for a given PowerType. -
toString
-
valueOf
-