org.powertac.common.repo
Class PluginConfigRepo

java.lang.Object
  extended by org.powertac.common.repo.PluginConfigRepo
All Implemented Interfaces:
DomainRepo

@Repository
public class PluginConfigRepo
extends Object
implements DomainRepo

Stores PluginConfig instances, allows access to the list.

Author:
John Collins

Constructor Summary
PluginConfigRepo()
           
 
Method Summary
 List<PluginConfig> findAllByRoleName(String role)
          Returns the first config with a matching role name, if any
 List<PluginConfig> findAllPublic()
          Returns the list of PluginConfig instances that are public information with respect to brokers.
 PluginConfig findByRoleName(String role)
          Returns the first config with a matching role name, if any
 PluginConfig findMatching(PluginConfig match)
          Returns the PluginConfig instance (if any) that matches the given PluginConfig by role name and name.
 List<PluginConfig> list()
          Returns the list of instances in the repo.
 PluginConfig makePluginConfig(String role, String name)
           
 void recycle()
          Clears out the repository in preparation for a new sim run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginConfigRepo

public PluginConfigRepo()
Method Detail

makePluginConfig

public PluginConfig makePluginConfig(String role,
                                     String name)

list

public List<PluginConfig> list()
Returns the list of instances in the repo.


findByRoleName

public PluginConfig findByRoleName(String role)
Returns the first config with a matching role name, if any


findAllByRoleName

public List<PluginConfig> findAllByRoleName(String role)
Returns the first config with a matching role name, if any


findMatching

public PluginConfig findMatching(PluginConfig match)
Returns the PluginConfig instance (if any) that matches the given PluginConfig by role name and name.


findAllPublic

public List<PluginConfig> findAllPublic()
Returns the list of PluginConfig instances that are public information with respect to brokers.


recycle

public void recycle()
Clears out the repository in preparation for a new sim run.

Specified by:
recycle in interface DomainRepo


Copyright © 2011. All Rights Reserved.