Package org.powertac.common.repo
Class CustomerRepo
java.lang.Object
org.powertac.common.repo.CustomerRepo
- All Implemented Interfaces:
DomainRepo
@Service public class CustomerRepo extends Object implements DomainRepo
Simple repository for Customer instances.
- Author:
- John Collins
-
Constructor Summary
Constructors Constructor Description CustomerRepo() -
Method Summary
Modifier and Type Method Description voidadd(CustomerInfo customer)intcount()Deprecated.CustomerInfocreateCustomerInfo(String name, int population)CustomerInfofindById(long id)List<CustomerInfo>findByName(String name)CustomerInfofindByNameAndPowerType(String name, PowerType type)Collection<CustomerInfo>list()voidrecycle()Implementations must clear out the repository in preparation for a new simulation.intsize()
-
Constructor Details
-
CustomerRepo
public CustomerRepo()
-
-
Method Details
-
createCustomerInfo
-
add
-
list
-
count
Deprecated. -
size
public int size() -
findById
-
findByName
-
findByNameAndPowerType
-
recycle
public void recycle()Description copied from interface:DomainRepoImplementations must clear out the repository in preparation for a new simulation.- Specified by:
recyclein interfaceDomainRepo
-