gov.sns.xal.model.mpx
Class ModelProxyListenerAdaptor

java.lang.Object
  |
  +--gov.sns.xal.model.mpx.ModelProxyListenerAdaptor
All Implemented Interfaces:
java.util.EventListener, ModelProxyListener

public abstract class ModelProxyListenerAdaptor
extends java.lang.Object
implements ModelProxyListener

A convienience adaptor that implements default methods for the ModelProxyListener interface. This class is meant to be used in nested implementations of the ModelProxyListener interface:


 ModelProxy mproxy = new ModelProxy();
 mproxy.addModelProxyListener(new ModelProxyListenerAdaptor() {

  //override the default implementation
	public void modelResultsChanged(ModelProxy mp) {
	:
	custom code
	:
	}
  });
 


Field Summary
 
Fields inherited from interface gov.sns.xal.model.mpx.ModelProxyListener
ACCEL_CHANGED, MISSING_INPUT, PROBE_CHANGED, RESULTS_CHANGED, SEQUENCE_CHANGED
 
Constructor Summary
ModelProxyListenerAdaptor()
           
 
Method Summary
 void accelMasterChanged(ModelProxy source)
          Called by the model proxy to notify the listener in cause of ACCEL_CHANGED.
 void accelSequenceChanged(ModelProxy source)
          Called by the model proxy to notify the listener in cause of SEQUENCE_CHANGED.
 void missingInputToRunModel(ModelProxy source)
          Called by the model proxy to notify the listener in cause of MISSING_INPUT.
 void modelResultsChanged(ModelProxy source)
          Called by the model proxy to notify the listener in cause of RESULTS_CHANGED.
 void probeMasterChanged(ModelProxy source)
          Called by the model proxy to notify the listener in cause of PROBE_CHANGED.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelProxyListenerAdaptor

public ModelProxyListenerAdaptor()
Method Detail

accelMasterChanged

public void accelMasterChanged(ModelProxy source)
Description copied from interface: ModelProxyListener
Called by the model proxy to notify the listener in cause of ACCEL_CHANGED.

Specified by:
accelMasterChanged in interface ModelProxyListener

accelSequenceChanged

public void accelSequenceChanged(ModelProxy source)
Description copied from interface: ModelProxyListener
Called by the model proxy to notify the listener in cause of SEQUENCE_CHANGED.

Specified by:
accelSequenceChanged in interface ModelProxyListener

probeMasterChanged

public void probeMasterChanged(ModelProxy source)
Description copied from interface: ModelProxyListener
Called by the model proxy to notify the listener in cause of PROBE_CHANGED.

Specified by:
probeMasterChanged in interface ModelProxyListener

modelResultsChanged

public void modelResultsChanged(ModelProxy source)
Description copied from interface: ModelProxyListener
Called by the model proxy to notify the listener in cause of RESULTS_CHANGED.

Specified by:
modelResultsChanged in interface ModelProxyListener

missingInputToRunModel

public void missingInputToRunModel(ModelProxy source)
Description copied from interface: ModelProxyListener
Called by the model proxy to notify the listener in cause of MISSING_INPUT.

Specified by:
missingInputToRunModel in interface ModelProxyListener