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 classEvCustomer.ChargeExceptionstatic classEvCustomer.RiskAttitude 
- 
Constructor Summary
Constructors Constructor Description EvCustomer(String name) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharge(double kwh)voiddischarge(double kwh)voiddoActivities(int day, int hour)voidevaluateTariffs(List<Tariff> tariffs)doublegetCurrentCapacity()doublegetDischargingCapacity()doublegetDominantLoad()longgetId()double[]getLoads(int day, int hour)StringgetName()doublegetNeededCapacity(double distance)CustomerInfoinitialize(SocialGroup socialGroup, String gender, Map<Integer,Activity> activities, List<GroupActivity> groupActivities, CarType car, EvSocialClass esc, CustomerServiceAccessor service, Config config)voidsetCurrentCapacity(double currentCapacity)voidstep(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()
 
 - 
 
 -