org.powertac.common.repo
Class CustomerRepo
java.lang.Object
org.powertac.common.repo.CustomerRepo
- All Implemented Interfaces:
- DomainRepo
@Repository
public class CustomerRepo
- extends Object
- implements DomainRepo
Simple repository for Customer instances.
- Author:
- John Collins
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerRepo
public CustomerRepo()
createCustomerInfo
public CustomerInfo createCustomerInfo(String name,
int population)
add
public void add(CustomerInfo customer)
list
public Collection<CustomerInfo> list()
count
@Deprecated
public int count()
- Deprecated.
size
public int size()
findById
public CustomerInfo findById(long id)
findByName
public List<CustomerInfo> findByName(String name)
findByNameAndPowerType
public CustomerInfo findByNameAndPowerType(String name,
PowerType type)
recycle
public void recycle()
- Description copied from interface:
DomainRepo
- Implementations must clear out the repository in preparation for
a new simulation.
- Specified by:
recycle in interface DomainRepo
Copyright © 2013. All Rights Reserved.