org.powertac.common.repo
Class CustomerRepo

java.lang.Object
  extended by 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

Constructor Summary
CustomerRepo()
           
 
Method Summary
 void add(CustomerInfo customer)
           
 CustomerInfo createCustomerInfo(String name, int population)
           
 CustomerInfo findById(long id)
           
 CustomerInfo findByName(String name)
           
 Collection<CustomerInfo> list()
           
 void recycle()
          Implementations must clear out the repository in preparation for a new simulation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerRepo

public CustomerRepo()
Method Detail

createCustomerInfo

public CustomerInfo createCustomerInfo(String name,
                                       int population)

add

public void add(CustomerInfo customer)

list

public Collection<CustomerInfo> list()

findById

public CustomerInfo findById(long id)

findByName

public CustomerInfo findByName(String name)

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 © 2011. All Rights Reserved.