Codota Logo
ServerConfiguration.publishConfiguration
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: powertac/powertac-server

/**
 * Computes actual distribution and balancing costs by random selection
 */
@Override
public String initialize (Competition competition, List<String> completedInits)
{
 super.init();
 balancingCost = null;
 serverProps.configureMe(this);
 if (null == balancingCost)
   balancingCost = 0D;
 log.info("Configured BM: balancing cost = " + balancingCost
      + ", (pPlus',pMinus') = (" + pPlusPrime + "," + pMinusPrime + ")");
 serverProps.publishConfiguration(this);
 return "BalancingMarket";
}
origin: powertac/powertac-server

@Override
public String initialize (Competition competition, List<String> completedInits)
{
 incoming.clear();
 serverProps.configureMe(this);
 brokerProxyService.registerBrokerMessageListener(this, Order.class);
 super.init();
 serverProps.publishConfiguration(this);
 return "Auctioneer";
}
origin: powertac/powertac-server

@Override
public String initialize (Competition competition, List<String> completedInits)
{
 pendingTransactions.clear();
 pendingMarketTransactions.clear();
 super.init();
 bankInterest = null;
 serverProps.configureMe(this);
 RandomSeed random =
   randomSeedService.getRandomSeed("AccountingService",
                   0l, "interest");
 if (bankInterest == null) {
  // interest will be non-null in case it was overridden in the config
  bankInterest = (minInterest +
             (random.nextDouble() *
               (maxInterest - minInterest)));
  log.info("bank interest: " + bankInterest);
 }
 serverProps.publishConfiguration(this);
 return "AccountingService";
}
origin: powertac/powertac-server

 log.info("set revocation fee: " + revocationFee);
serverProps.publishConfiguration(this);
return "TariffMarket";
origin: powertac/powertac-server

log.info("Configured DU: distro fee = " + distributionFee);
serverProps.publishConfiguration(this);
return "DistributionUtility";
org.powertac.common.interfacesServerConfigurationpublishConfiguration

Javadoc

Gathers public configuration data for publication to brokers. Data is gathered from org.powertac.common.config.ConfigurableValueproperties with publish=true. Note that such properties must either be fields, or have a "standard" getter, or must specify a getter that produces the value as a String. This is typically called at the end of the initialize() method.

Popular methods of ServerConfiguration

  • configureMe
    Configures a target object by matching configuration clauses with org.powertac.common.config.Configu
  • configureInstances
    Creates and configures potentially multiple instances of a target class annotated as org.powertac.co
  • 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

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now