edu.ntnu.ecosim.communication
Class ResultReceiver

java.lang.Object
  extended by edu.ntnu.ecosim.communication.ResultReceiver
All Implemented Interfaces:
java.util.Observer
Direct Known Subclasses:
Receiver

public abstract class ResultReceiver
extends java.lang.Object
implements java.util.Observer

This is an abstract class that must be implemented to receive the results from the simulator.


Constructor Summary
ResultReceiver()
           
 
Method Summary
 void update(java.util.Observable obj, java.lang.Object arg)
           
abstract  void xmlReceived(org.w3c.dom.Document doc)
          This method is called when a XML document is received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultReceiver

public ResultReceiver()
Method Detail

update

public void update(java.util.Observable obj,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

xmlReceived

public abstract void xmlReceived(org.w3c.dom.Document doc)
This method is called when a XML document is received. The implementation should parse the received document and use/display the results

Parameters:
doc - the document with information