|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--XMLParser
Constructor Summary | |
XMLParser(JESSCommunicator jessCommunicator)
|
Method Summary | |
protected double |
convertPriorityToDouble(java.lang.String prior)
The priority should be a value between 0 and 1. |
protected double |
convertProbabilityToDouble(java.lang.String prob)
|
protected java.lang.String |
getAttributeValue(org.w3c.dom.Node element,
java.lang.String attributeName)
A helper method that returns the value of the attribute with the given name, or null if no such an attribute could be found. |
java.util.HashMap |
getSituations()
Gets all situations that have been found in the xml file. |
protected java.util.Vector |
parseActions(org.w3c.dom.Node actionsNode)
|
protected java.util.Vector |
parseConstraints(org.w3c.dom.Node constraintsNode,
Situation situation)
|
protected java.util.Vector |
parseNextSituations(org.w3c.dom.Node nextSituationsNode,
Situation situation)
|
protected void |
parseSituations()
Iterates over all situation elements, gets the name of the situations from the attribute list. |
boolean |
parseXMLFile(java.io.File xmlFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLParser(JESSCommunicator jessCommunicator)
Method Detail |
public java.util.HashMap getSituations()
public boolean parseXMLFile(java.io.File xmlFile)
protected void parseSituations()
protected java.lang.String getAttributeValue(org.w3c.dom.Node element, java.lang.String attributeName)
protected java.util.Vector parseNextSituations(org.w3c.dom.Node nextSituationsNode, Situation situation)
protected java.util.Vector parseConstraints(org.w3c.dom.Node constraintsNode, Situation situation)
protected java.util.Vector parseActions(org.w3c.dom.Node actionsNode)
protected double convertProbabilityToDouble(java.lang.String prob)
protected double convertPriorityToDouble(java.lang.String prior)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |