Tabnine Logo
ServerConfiguration.publishConfiguration
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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