congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ServerConfiguration.configureInstances
Code IndexAdd Tabnine to your IDE (free)

How to use
configureInstances
method
in
org.powertac.common.interfaces.ServerConfiguration

Best Java code snippets using org.powertac.common.interfaces.ServerConfiguration.configureInstances (Showing top 5 results out of 315)

origin: powertac/powertac-server

/**
 * Retrieves the list of configured beans
 */
public Map<String, Collection<?>> getBeans ()
{
 if (null != beans) {
  // already configured
  return beans;
 }
 configure();
 beans = new HashMap<>();
 for (String classname : beanTypes) {
  Class<?> clazz;
  try {
   clazz = Class.forName("org.powertac.evcustomer.beans." + classname);
   Collection<?> list = serverConfiguration.configureInstances(clazz);
   beans.put(classname, list);
   log.info("Loaded " + list.size() + " instances of " + classname);
  }
  catch (ClassNotFoundException e) {
   log.error("Cannot find class " + classname);
  } 
 }
 return beans;
}
origin: powertac/powertac-server

/**
 * Retrieves the list of configured beans, given a package prefix and a list
 * of classnames in that package. The final argument should be an instance in
 * the module where the bean classes are found. This is where the classloader
 * comes from.
 */
public Map<String, Collection<?>> getBeans ()
{
 if (null != beans)
  // already configured
  return beans;
 configure();
 beans = new HashMap<String, Collection<?>>();
 for (String classname : beanTypes) {
  Class<?> clazz;
  try {
   clazz = Class.forName("org.powertac.customer.model." + classname);
   Collection<?> list = serverConfiguration.configureInstances(clazz);
   beans.put(classname, list);
   log.info("Loaded " + list.size() + " instances of " + classname);
  }
  catch (ClassNotFoundException e) {
   log.error("Cannot find class " + classname);
  } 
 }
 return beans;
}
origin: powertac/powertac-server

try {
 clazz = Class.forName("org.powertac.factoredcustomer." + classname);
 Collection<?> list = serverConfiguration.configureInstances(clazz);
 if (list == null) {
  structures.put(classname, new HashMap<>());
origin: powertac/powertac-server

AbstractCustomer modelEx = modelIterator.next();
Collection<?> instances =
  serverConfig.configureInstances(modelEx.getClass());
for (Object modelObj: instances) {
 AbstractCustomer model = (AbstractCustomer) modelObj;
origin: powertac/powertac-server

Collection<?> gencoColl = serverConfig.configureInstances(Genco.class);
if (null != gencoColl) {
 for (Object gencoObj: gencoColl) {
org.powertac.common.interfacesServerConfigurationconfigureInstances

Javadoc

Creates and configures potentially multiple instances of a target class annotated as org.powertac.common.config.ConfigurableInstance. Returns the created instances in a list in no particular order.

Popular methods of ServerConfiguration

  • configureMe
    Configures a target object by matching configuration clauses with org.powertac.common.config.Configu
  • publishConfiguration
    Gathers public configuration data for publication to brokers. Data is gathered from org.powertac.com
  • saveBootstrapState
    Gathers state information at the end of a boot session to be restored in a subsequent sim session. D
  • configureNamedInstances
    Configures a set of named instances that have already been created. This is useful for restoring ins

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now