@Service public class CustomerService extends Object implements TimeslotCompleteActivation, Recyclable
| Constructor and Description |
|---|
CustomerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(int timeslotIndex,
org.joda.time.Instant postedTime) |
void |
addCustomers(List<org.powertac.common.CustomerInfo> customerInfos)
Creates and adds a customer object into the map.
|
Customer |
findCustomerByCustomerInfo(org.powertac.common.CustomerInfo customerInfo) |
Customer |
findCustomerByNameAndType(String customerName,
org.powertac.common.enumerations.PowerType type) |
List<Customer> |
getCustomerList() |
void |
recycle() |
public void addCustomers(List<org.powertac.common.CustomerInfo> customerInfos)
public Customer findCustomerByNameAndType(String customerName, org.powertac.common.enumerations.PowerType type)
customerName - public void recycle()
recycle in interface Recyclablepublic void activate(int timeslotIndex,
org.joda.time.Instant postedTime)
activate in interface TimeslotCompleteActivationtimeslotIndex - index of completed timeslot.public Customer findCustomerByCustomerInfo(org.powertac.common.CustomerInfo customerInfo)
Copyright © 2014 Power TAC. All Rights Reserved.