|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.xal.tools.orbit.OrbitBuffer
OrbitBuffer maintains statistics on the orbit based on several measurements. An instance of OrbitBuffer maintains a circular buffer of orbit measurements. The size of the buffer is fixed for an instance of OrbitBuffer.
| Field Summary | |
protected int |
bufferSize
|
protected MessageCenter |
messageCenter
|
protected MutableOrbitRecord |
orbit
|
protected java.util.LinkedList |
orbitBuffer
|
protected OrbitListener |
orbitProxy
|
| Constructor Summary | |
OrbitBuffer(OrbitCorrelator correlator,
int size)
Creates a new instance of OrbitBuffer |
|
| Method Summary | |
void |
addOrbitListener(OrbitListener listener)
add a listener to notify when the orbit statistics change |
int |
bufferSize()
size of the circular buffer of measurements |
void |
newCorrelation(java.lang.Object sender,
Correlation newCorrelation)
implement CorrelationNotice interface |
void |
noCorrelationCaught(java.lang.Object sender)
implement CorrelationNotice interface |
int |
numSamples()
number of buffer samples |
void |
removeOrbitListener(OrbitListener listener)
remove a listener of orbit statistics changes |
void |
reset()
clear the buffer |
void |
setBufferSize(int newBufferSize)
set the buffer size to a new size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int bufferSize
protected java.util.LinkedList orbitBuffer
protected MutableOrbitRecord orbit
protected MessageCenter messageCenter
protected OrbitListener orbitProxy
| Constructor Detail |
public OrbitBuffer(OrbitCorrelator correlator,
int size)
| Method Detail |
public int bufferSize()
public void setBufferSize(int newBufferSize)
public int numSamples()
public void addOrbitListener(OrbitListener listener)
public void removeOrbitListener(OrbitListener listener)
public void reset()
public void newCorrelation(java.lang.Object sender,
Correlation newCorrelation)
newCorrelation in interface CorrelationNoticesender - The poster of the correlation event.newCorrelation - The correlation that was posted.public void noCorrelationCaught(java.lang.Object sender)
noCorrelationCaught in interface CorrelationNoticesender - The poster of the "no correlation" event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||