|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.ecosim.management.XMLHandler
public class XMLHandler
The Class XMLHandler is responsible for parsing and generating the XML Documents that are used as communication format between the simulator and surrounding framework.
Constructor Summary | |
---|---|
protected |
XMLHandler(Market m,
SimulationManager sm)
The Constructor. |
Method Summary | |
---|---|
protected org.w3c.dom.Document |
createErrorMessage(java.lang.String msg)
Method to create an error message with the specified content in the necessary format. |
protected org.w3c.dom.Document |
createFinalResults(java.lang.String information)
Method to generate the final results to send to the result receiver. |
protected org.w3c.dom.Document |
createTempResults(java.lang.String time)
Creates the temporary results document. |
protected org.w3c.dom.Document |
generateStatusResponse(java.lang.String status,
java.lang.String information)
Generate status response message. |
protected org.w3c.dom.Document |
receiveSetup(org.w3c.dom.Document setupdoc)
Receive the setup document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected XMLHandler(Market m, SimulationManager sm)
m
- the mMethod Detail |
---|
protected org.w3c.dom.Document createErrorMessage(java.lang.String msg)
msg
- The message to include
protected org.w3c.dom.Document createFinalResults(java.lang.String information)
information
- Information to add to the final results message
protected org.w3c.dom.Document createTempResults(java.lang.String time)
time
- the time at which the document is created
protected org.w3c.dom.Document generateStatusResponse(java.lang.String status, java.lang.String information)
information
- the extra information to add, describing the statusstatus
- the status of the simulator
protected org.w3c.dom.Document receiveSetup(org.w3c.dom.Document setupdoc)
setupdoc
- the document containing setup information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |