@Domain public class CustomerInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CustomerInfo.CustomerClass |
Constructor and Description |
---|
CustomerInfo(String name,
int population)
Creates a new CustomerInfo, with default power type set to
CONSUMPTION.
|
Modifier and Type | Method and Description |
---|---|
double |
getControllableKW()
Returns total controllable capacity in kW per member.
|
double |
getControllableKWh()
Deprecated.
|
CustomerInfo.CustomerClass |
getCustomerClass()
Returns the customer class of this customer.
|
double |
getDownRegulationKW()
Returns the maximum down-regulation rate in kW per member.
|
long |
getId() |
String |
getName()
Display name for this CustomerInfo instance.
|
int |
getPopulation()
Returns the population of the model represented by this CustomerInfo.
|
PowerType |
getPowerType()
Returns the type of power consumption and/or production available in
this customer model.
|
double |
getStorageCapacity()
Returns the maximum energy storage capacity in kWh per member.
|
double |
getUpRegulationKW()
Returns the maximum up-regulation rate in kW per member,
beyond the curtailment of its load.
|
boolean |
isCanNegotiate()
True just in case the underlying Customer model can negotiate individual
contracts.
|
boolean |
isMultiContracting()
True if this customer can subscribe to multiple contracts.
|
void |
setPopulation(Integer population)
Updates the population for the underlying model.
|
String |
toString() |
CustomerInfo |
withCanNegotiate(boolean value)
Fluent setter for the canNegotiate flag.
|
CustomerInfo |
withControllableKW(double value)
Fluent setter for controllable kWh.
|
CustomerInfo |
withCustomerClass(CustomerInfo.CustomerClass cClass)
Fluent setter for customerClass attribute.
|
CustomerInfo |
withDownRegulationKW(double value)
Fluent setter for down-regulation kW.
|
CustomerInfo |
withMultiContracting(boolean value)
Fluent setter for the multiContracting property.
|
CustomerInfo |
withPowerType(PowerType type)
Fluent setter to set PowerType for this CustomerInfo.
|
CustomerInfo |
withStorageCapacity(double value)
Fluent setter for storage capacity.
|
CustomerInfo |
withUpRegulationKW(double value)
Fluent setter for up-regulation kW.
|
public CustomerInfo(String name, int population)
public long getId()
public String getName()
public int getPopulation()
@StateChange public void setPopulation(Integer population)
public PowerType getPowerType()
@StateChange public CustomerInfo withPowerType(PowerType type)
public CustomerInfo.CustomerClass getCustomerClass()
public CustomerInfo withCustomerClass(CustomerInfo.CustomerClass cClass)
public boolean isMultiContracting()
@StateChange public CustomerInfo withMultiContracting(boolean value)
public boolean isCanNegotiate()
@StateChange public CustomerInfo withCanNegotiate(boolean value)
public double getControllableKW()
@Deprecated public double getControllableKWh()
@StateChange public CustomerInfo withControllableKW(double value)
public double getUpRegulationKW()
@StateChange public CustomerInfo withUpRegulationKW(double value)
public double getDownRegulationKW()
@StateChange public CustomerInfo withDownRegulationKW(double value)
public double getStorageCapacity()
@StateChange public CustomerInfo withStorageCapacity(double value)
Copyright © 2019 Power TAC. All rights reserved.