org.gcn.plinguaplugin.simulator
Class SimulatorDisplayerReporter

java.lang.Object
  extended by org.gcn.plinguaplugin.simulator.SimulatorDisplayerReporter
Direct Known Subclasses:
SimulatorDisplayerReporterListener, SimulatorPauser, SimulatorSaver

abstract class SimulatorDisplayerReporter
extends java.lang.Object

An abstract class which is intended to be subclassed by those classes which need to report errors to a SimulatorDisplayer class

Author:
Manuel Garcia-Quismondo-Fernandez

Constructor Summary
SimulatorDisplayerReporter(SimulatorDisplayer simulatorDisplayer)
          Creates a new SimulatorDisplayerReporter instance
 
Method Summary
protected  void clearCurrentProcess()
           
 void executeAction()
          Executes the specific action of the class which uses SimulatorDisplayer
protected abstract  void executeSpecificAction()
           
protected  PsystemController getPlinguaController()
           
protected abstract  java.lang.String getProcess()
           
protected  SimulatorDisplayer getSimulatorDisplayer()
          Returns the SimulatorDisplayer instance where all messages are reported to
protected  SimulatorSaver getSimulatorSaver()
           
protected  void reportError(java.lang.String error, java.lang.Exception exception)
           
protected  void reportProcess(java.lang.String process)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulatorDisplayerReporter

public SimulatorDisplayerReporter(SimulatorDisplayer simulatorDisplayer)
Creates a new SimulatorDisplayerReporter instance

Parameters:
simulatorDisplayer -
Method Detail

getSimulatorSaver

protected SimulatorSaver getSimulatorSaver()

getSimulatorDisplayer

protected SimulatorDisplayer getSimulatorDisplayer()
Returns the SimulatorDisplayer instance where all messages are reported to

Returns:
the SimulatorDisplayer instance where all messages are reported to

reportError

protected void reportError(java.lang.String error,
                           java.lang.Exception exception)

executeSpecificAction

protected abstract void executeSpecificAction()

getPlinguaController

protected PsystemController getPlinguaController()

executeAction

public void executeAction()
Executes the specific action of the class which uses SimulatorDisplayer


getProcess

protected abstract java.lang.String getProcess()

reportProcess

protected void reportProcess(java.lang.String process)

clearCurrentProcess

protected void clearCurrentProcess()