|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.PluginConfig
public class PluginConfig
Instances of this class can be used to configure plugins, and to communicate configuration information to brokers at the beginning of a simulation. In order to use this correctly, there should be exactly once instance created for each configurable plugin. This should be created in plugin's initialization service.
| Constructor Summary | |
|---|---|
PluginConfig(String role,
String name)
Creates a new PluginConfig. |
|
| Method Summary | |
|---|---|
PluginConfig |
addConfiguration(String name,
String value)
Adds a config item to this PluginConfig. |
PluginConfig |
asPrivileged()
|
Map<String,String> |
getConfiguration()
|
String |
getConfigurationValue(String key)
|
Double |
getDoubleValue(String name,
Double defaultValue)
|
long |
getId()
|
Integer |
getIntegerValue(String name,
Integer defaultValue)
|
String |
getName()
|
String |
getRoleName()
|
boolean |
isPrivileged()
|
String |
toString()
|
boolean |
update(PluginConfig replacement)
Updates the configuration from a matching PluginConfig (presumably this was read from a file or received as a message). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PluginConfig(String role,
String name)
| Method Detail |
|---|
public long getId()
public String getRoleName()
public String getName()
public boolean isPrivileged()
public PluginConfig asPrivileged()
public Map<String,String> getConfiguration()
public String getConfigurationValue(String key)
public boolean update(PluginConfig replacement)
public PluginConfig addConfiguration(String name,
String value)
public String toString()
toString in class Object
public Integer getIntegerValue(String name,
Integer defaultValue)
public Double getDoubleValue(String name,
Double defaultValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||