@Domain @ConfigurableInstance public class EvCustomer extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
EvCustomer.ChargeException |
static class |
EvCustomer.RiskAttitude |
| Constructor and Description |
|---|
EvCustomer(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
charge(double kwh) |
void |
discharge(double kwh) |
void |
doActivities(int day,
int hour) |
void |
evaluateTariffs(List<Tariff> tariffs) |
double |
getChargingCapacity() |
double |
getCurrentCapacity() |
double |
getDischargingCapacity() |
double |
getDominantLoad() |
long |
getId() |
double[] |
getLoads(int day,
int hour) |
String |
getName() |
double |
getNeededCapacity(double distance) |
CustomerInfo |
initialize(SocialGroup socialGroup,
String gender,
Map<Integer,Activity> activities,
Map<Integer,GroupActivity> groupActivities,
CarType car,
CustomerServiceAccessor service,
Config config) |
void |
setCurrentCapacity(double currentCapacity) |
void |
step(Timeslot timeslot)
Runs the model forward one step
|
public EvCustomer(String name)
public String getName()
public long getId()
public CustomerInfo initialize(SocialGroup socialGroup, String gender, Map<Integer,Activity> activities, Map<Integer,GroupActivity> groupActivities, CarType car, CustomerServiceAccessor service, Config config)
public void step(Timeslot timeslot)
public void doActivities(int day,
int hour)
public double getDominantLoad()
public double[] getLoads(int day,
int hour)
public double getCurrentCapacity()
@StateChange public void setCurrentCapacity(double currentCapacity)
public void discharge(double kwh)
throws EvCustomer.ChargeException
EvCustomer.ChargeExceptionpublic void charge(double kwh)
throws EvCustomer.ChargeException
EvCustomer.ChargeExceptionpublic double getNeededCapacity(double distance)
public double getChargingCapacity()
public double getDischargingCapacity()
Copyright © 2017 Power TAC. All rights reserved.