public class Earscript_Reasoning extends Reasoning
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List<EARSTools.EventServer> |
eventServers
The event servers.
|
static EARSTools |
tools
The tools.
|
(package private) static java.util.ArrayList<EARSTools.WorldValue> |
worldValues
The world values.
|
parameters| Constructor and Description |
|---|
Earscript_Reasoning() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
init()
User-implemented initialization method, called by start().
|
private static void |
loadEventServers(org.w3c.dom.Element elem_EARScript)
Load event servers.
|
private static void |
loadWorldValues(org.w3c.dom.Element elem_wv)
Load world values.
|
private static org.w3c.dom.Document |
loadXMLFile(java.lang.String xmlFile)
Load xml file.
|
private static java.lang.String |
readAttribute(org.w3c.dom.Element elem,
java.lang.String attributeName,
java.lang.String defaultValue)
Read attribute.
|
private static void |
startEARScript(org.w3c.dom.Element elem_EARScript)
Start ear script.
|
eventHandlerDeregistered, eventHandlerRegistered, needAction, needAction, newSense, process, setWakeUp, start, stopaddParameter, addParameters, configure, finit, getAddress, getAgent, getComponentName, getComponentType, getParameter, getParameter, getParameters, getState, getType, parameterUpdate, processCommand, receiveCommand, sendCommand, setAgent, setComponentName, setParameters, setState, setTypejava.util.List<EARSTools.EventServer> eventServers
static java.util.ArrayList<EARSTools.WorldValue> worldValues
public static EARSTools tools
public boolean init()
LifeCycleinit in interface LifeCycleinit in class MusicalAgentComponentprivate static void startEARScript(org.w3c.dom.Element elem_EARScript)
elem_EARScript - the elem_ ear scriptprivate static void loadWorldValues(org.w3c.dom.Element elem_wv)
elem_wv - the elem_wvprivate static void loadEventServers(org.w3c.dom.Element elem_EARScript)
elem_EARScript - the elem_ ear scriptprivate static org.w3c.dom.Document loadXMLFile(java.lang.String xmlFile)
xmlFile - the xml fileprivate static java.lang.String readAttribute(org.w3c.dom.Element elem,
java.lang.String attributeName,
java.lang.String defaultValue)
elem - the elemattributeName - the attribute namedefaultValue - the default value