|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.ie.cowbots.launcher.CowbotsConfig
public class CowbotsConfig
utility class that parses a local configuration file for setting up a mas2j. used during initialization by various classes (environment, agent, agentarch).
Field Summary | |
---|---|
(package private) java.util.HashMap<java.lang.String,java.lang.String> |
agOptions
|
(package private) java.util.List<java.lang.String[]> |
allhosts
|
(package private) java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> |
allOptions
|
(package private) java.lang.String |
clingoPath
|
(package private) org.w3c.dom.Element |
config
|
(package private) java.util.HashMap<java.lang.String,java.lang.String> |
delibOptions
|
(package private) java.util.HashMap<java.lang.String,java.lang.String> |
desgenOptions
|
(package private) java.lang.String |
dlvPath
|
(package private) java.lang.String |
host
|
(package private) static CowbotsConfig |
instance
|
(package private) java.lang.String |
massimPath
|
Constructor Summary | |
---|---|
protected |
CowbotsConfig()
initializes the local configuration from the local_config.xml file |
Method Summary | |
---|---|
java.lang.String |
getClingoPath()
this method returns the path to a clingo asp solver binary or null |
java.lang.String |
getDLVPath()
this methods returns the path to a dlv asp solver binary or null |
java.lang.String |
getHost()
this method returns the host for the massim server the agents should connect to. |
java.util.List<java.lang.String[]> |
getHosts()
this methods returns all available hosts of massim servers defined in the local_config.xml file. used by the cowbots launcher during mas startup. |
static CowbotsConfig |
getInstance()
this method returns the global instance of the cowbots configuration |
java.lang.String |
getMassimPath()
this method returns the path to a local massim svg output directory |
java.lang.String |
getOption(java.lang.String component,
java.lang.String attribute)
returns the value of an attribute for one of the freely configurable options in the localconfig class. |
protected java.lang.String |
prepString(java.lang.String s)
auxiliary method that removes double quotation marks from a string |
void |
setHost(java.lang.String host)
this method sets the massim host for all agents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
org.w3c.dom.Element config
java.lang.String dlvPath
java.lang.String clingoPath
java.lang.String massimPath
java.lang.String host
java.util.List<java.lang.String[]> allhosts
java.util.HashMap<java.lang.String,java.lang.String> delibOptions
java.util.HashMap<java.lang.String,java.lang.String> agOptions
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> allOptions
java.util.HashMap<java.lang.String,java.lang.String> desgenOptions
static CowbotsConfig instance
Constructor Detail |
---|
protected CowbotsConfig()
Method Detail |
---|
public static CowbotsConfig getInstance()
public java.lang.String getDLVPath()
public java.lang.String getClingoPath()
public java.lang.String getMassimPath()
public void setHost(java.lang.String host)
host
- hostname for massim environmentpublic java.lang.String getHost()
public java.util.List<java.lang.String[]> getHosts()
protected java.lang.String prepString(java.lang.String s)
s
- input string to process
public java.lang.String getOption(java.lang.String component, java.lang.String attribute)
component
- target component to load options forattribute
- attribute value to query
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |