edu.ntnu.ecosim.visual
Class XMLManager

java.lang.Object
  extended by edu.ntnu.ecosim.visual.XMLManager
All Implemented Interfaces:
java.io.Serializable

public class XMLManager
extends java.lang.Object
implements java.io.Serializable

The XML manager is the visual interface's xml parsing module. This class creates and reads xml documents.

Author:
martin.andreas.borke
See Also:
Serialized Form

Field Summary
(package private)  SimulationPanel simpanel
          The panel to send information to
(package private)  Visual visual
          The "Visual" object, to access content from other parts of the interface.
 
Constructor Summary
XMLManager(Visual visual, SimulationPanel simpanel)
          The Constructor.
 
Method Summary
 org.w3c.dom.Document createSetupDocument(java.util.ArrayList<java.lang.String[]> pro, java.lang.String[] envParam)
          Creates a setup document from the service provider parameters and environment parameters
 void receiveResponse(org.w3c.dom.Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visual

Visual visual
The "Visual" object, to access content from other parts of the interface.


simpanel

SimulationPanel simpanel
The panel to send information to

Constructor Detail

XMLManager

public XMLManager(Visual visual,
                  SimulationPanel simpanel)
The Constructor.

Parameters:
visual - the visual object (The JFrame)
Method Detail

createSetupDocument

public org.w3c.dom.Document createSetupDocument(java.util.ArrayList<java.lang.String[]> pro,
                                                java.lang.String[] envParam)
Creates a setup document from the service provider parameters and environment parameters

Parameters:
envParam - the environment parameters
pro - the service providers
Returns:
the setup document

receiveResponse

public void receiveResponse(org.w3c.dom.Document doc)