gov.sns.xal.tools.orbit
Class OrbitCumulator

java.lang.Object
  |
  +--gov.sns.xal.tools.orbit.OrbitCumulator
All Implemented Interfaces:
CorrelationNotice

public class OrbitCumulator
extends java.lang.Object
implements CorrelationNotice


Field Summary
protected  MessageCenter messageCenter
           
protected  MutableOrbitRecord orbit
           
protected  OrbitCumulatorListener orbitProxy
           
protected  OrbitCumulatorTrigger trigger
           
 
Constructor Summary
OrbitCumulator(OrbitCorrelator correlator, OrbitCumulatorTrigger aTrigger)
          Creates a new instance of OrbitBuffer
 
Method Summary
 void addOrbitListener(OrbitListener listener)
          add a listener to notify when the orbit statistics change
 void newCorrelation(java.lang.Object sender, Correlation newCorrelation)
          implement CorrelationNotice interface
 void noCorrelationCaught(java.lang.Object sender)
          implement CorrelationNotice interface
 void removeOrbitListener(OrbitListener listener)
          remove a listener of orbit statistics changes
 void reset()
          clear the buffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trigger

protected OrbitCumulatorTrigger trigger

orbit

protected MutableOrbitRecord orbit

messageCenter

protected MessageCenter messageCenter

orbitProxy

protected OrbitCumulatorListener orbitProxy
Constructor Detail

OrbitCumulator

public OrbitCumulator(OrbitCorrelator correlator,
                      OrbitCumulatorTrigger aTrigger)
Creates a new instance of OrbitBuffer

Method Detail

addOrbitListener

public void addOrbitListener(OrbitListener listener)
add a listener to notify when the orbit statistics change


removeOrbitListener

public void removeOrbitListener(OrbitListener listener)
remove a listener of orbit statistics changes


reset

public void reset()
clear the buffer


newCorrelation

public void newCorrelation(java.lang.Object sender,
                           Correlation newCorrelation)
implement CorrelationNotice interface

Specified by:
newCorrelation in interface CorrelationNotice
Parameters:
sender - The poster of the correlation event.
newCorrelation - The correlation that was posted.

noCorrelationCaught

public void noCorrelationCaught(java.lang.Object sender)
implement CorrelationNotice interface

Specified by:
noCorrelationCaught in interface CorrelationNotice
Parameters:
sender - The poster of the "no correlation" event.