|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.xal.tools.orbit.OrbitRecord
An instance of OrbitRecord holds bpm record statistics that have been taken over several correlated bpm measurements. An OrbitRecord is used by an OrbitBuffer to represent the statistics of several orbit measurements. OrbitRecord is immutable and hence suitable for publishing results.
| Field Summary | |
protected java.util.Map |
bpmStats
|
| Constructor Summary | |
OrbitRecord()
Creates a new instance of OrbitRecord |
|
OrbitRecord(OrbitRecord orbit)
Copy constructor |
|
| Method Summary | |
protected java.util.Comparator |
bpmComparator(AcceleratorSeq sequence)
Return a comparator used in ordering bpms by position |
double |
getBeamPosition(PlaneFilter planeFilter,
BPM bpm)
Get the beam position corresponding to the specified bpm and adjusted for bpm alignment. |
double[] |
getBeamPositions(PlaneFilter planeFilter,
java.util.List bpms)
Get beam positions as an array for the specified bpms. |
BpmRecord |
getBpmRecord(java.lang.String bpmName)
Get a bpm record by BPM id |
java.util.Collection |
getBpmRecords()
Return the collection of bpm records |
java.util.Date |
getLastDate()
Get the date of the last correlated orbit. |
java.util.List |
getOrderedBpmRecords(AcceleratorSeq sequence)
Return the bpm records in order by position |
double |
getRms(PlaneFilter planeFilter)
calculate the orbit RMS for the specified plane |
double |
getRmsNoise(PlaneFilter planeFilter)
Estimate the noise in the RMS value |
double |
lastTimestamp()
Correlation timestamp of the last record added to the pool of orbits taken |
int |
numBpmRecords()
Get the number of bpm records |
java.lang.String |
toString()
Convenience string view of an orbit record |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Map bpmStats
| Constructor Detail |
public OrbitRecord()
public OrbitRecord(OrbitRecord orbit)
| Method Detail |
public int numBpmRecords()
public BpmRecord getBpmRecord(java.lang.String bpmName)
public double lastTimestamp()
public java.util.Date getLastDate()
public java.util.Collection getBpmRecords()
public java.util.List getOrderedBpmRecords(AcceleratorSeq sequence)
public double getBeamPosition(PlaneFilter planeFilter,
BPM bpm)
public double[] getBeamPositions(PlaneFilter planeFilter,
java.util.List bpms)
public double getRms(PlaneFilter planeFilter)
public double getRmsNoise(PlaneFilter planeFilter)
protected java.util.Comparator bpmComparator(AcceleratorSeq sequence)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||