public class CustomerInfo extends Object
| 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.
|
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 |
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()
public void setPopulation(Integer population)
public PowerType getPowerType()
public CustomerInfo withPowerType(PowerType type)
public boolean isMultiContracting()
public CustomerInfo withMultiContracting(boolean value)
public boolean isCanNegotiate()
public CustomerInfo withCanNegotiate(boolean value)
public double getControllableKW()
@Deprecated public double getControllableKWh()
public CustomerInfo withControllableKW(double value)
public double getUpRegulationKW()
public CustomerInfo withUpRegulationKW(double value)
public double getDownRegulationKW()
public CustomerInfo withDownRegulationKW(double value)
public double getStorageCapacity()
public CustomerInfo withStorageCapacity(double value)
Copyright © 2015. All Rights Reserved.