Class EvCustomer
- java.lang.Object
-
- org.powertac.evcustomer.customers.EvCustomer
-
@Domain @ConfigurableInstance public class EvCustomer extends Object
- Version:
- 0.5, Date: 2013.11.25
- Author:
- Konstantina Valogianni, Govert Buijs, John Collins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
EvCustomer.ChargeException
static class
EvCustomer.RiskAttitude
-
Constructor Summary
Constructors Constructor Description EvCustomer(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
charge(double kwh)
void
discharge(double kwh)
void
doActivities(int day, int hour)
void
evaluateTariffs(List<Tariff> tariffs)
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, List<GroupActivity> groupActivities, CarType car, EvSocialClass esc, CustomerServiceAccessor service, Config config)
void
setCurrentCapacity(double currentCapacity)
void
step(Timeslot timeslot)
Runs the model forward one step
-
-
-
Constructor Detail
-
EvCustomer
public EvCustomer(String name)
-
-
Method Detail
-
getName
public String getName()
-
getId
public long getId()
-
initialize
public CustomerInfo initialize(SocialGroup socialGroup, String gender, Map<Integer,Activity> activities, List<GroupActivity> groupActivities, CarType car, EvSocialClass esc, CustomerServiceAccessor service, Config config)
-
step
public void step(Timeslot timeslot)
Runs the model forward one step
-
doActivities
public void doActivities(int day, int hour)
-
getDominantLoad
public double getDominantLoad()
-
getLoads
public double[] getLoads(int day, int hour)
-
getCurrentCapacity
public double getCurrentCapacity()
-
setCurrentCapacity
@StateChange public void setCurrentCapacity(double currentCapacity)
-
discharge
public void discharge(double kwh) throws EvCustomer.ChargeException
- Throws:
EvCustomer.ChargeException
-
charge
public void charge(double kwh) throws EvCustomer.ChargeException
- Throws:
EvCustomer.ChargeException
-
getNeededCapacity
public double getNeededCapacity(double distance)
-
getDischargingCapacity
public double getDischargingCapacity()
-
-