@XStreamConverter(value=PowerTypeConverter.class) public class PowerType extends Object
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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) |
public static final PowerType CONSUMPTION
public static final PowerType PRODUCTION
public static final PowerType STORAGE
public static final PowerType INTERRUPTIBLE_CONSUMPTION
public static final PowerType THERMAL_STORAGE_CONSUMPTION
public static final PowerType SOLAR_PRODUCTION
public static final PowerType WIND_PRODUCTION
public static final PowerType RUN_OF_RIVER_PRODUCTION
public static final PowerType PUMPED_STORAGE_PRODUCTION
public static final PowerType CHP_PRODUCTION
public static final PowerType FOSSIL_PRODUCTION
public static final PowerType BATTERY_STORAGE
public static final PowerType ELECTRIC_VEHICLE
public boolean isConsumption()
public boolean isProduction()
public boolean canUse(PowerType tariffType)
public boolean isInterruptible()
public boolean isStorage()
public PowerType getGenericType()
Copyright © 2019 Power TAC. All rights reserved.