Class Orbit
java.lang.Object
org.scictrl.mp.orbitcorrect.utilities.Orbit
Orbit is class that incapsulates orbit at some timepoint. For execution efficiency it is by design non-modifiable class.
Orbit information is provided trough constructor and stored in final arrays and should not be changed afterwards.
- Author:
- igor@kriznar.com
-
Constructor Summary
ConstructorDescriptionOrbit
(ElementList<BPMonitor> bpms, double[] x, double[] z) Constructor for Orbit.Orbit
(ElementList<BPMonitor> bpms, Orbit ref) Creates new Orbit object from BPMs and reference.Creates new orbit from raw orbit and reference orbit. -
Method Summary
Modifier and TypeMethodDescriptiondouble
getAvg
(Orientation ori) Getter for the fieldavg
.getBPMs()
getBPMs.double
getMax
(Orientation ori) Getter for the fieldmax
.double
getPosition
(Orientation ori, int i) getPosition.double
getPosition
(Orientation ori, String bpm) getPosition.double[]
getPositions
(Orientation ori) Getter for the fieldpositions
.double
getRms
(Orientation ori) Getter for the fieldrms
.double
getStd
(Orientation ori) Getter for the fieldstd
.org.scictrl.csshell.Timestamp
getTime()
Getter for the fieldtime
.void
print
(PrintWriter pw) print.void
printCompact.void
printCompactStats.toStringFull.toStringStatistics.
-
Constructor Details
-
Orbit
Creates new Orbit object from BPMs and reference.- Parameters:
bpms
- the orbit provided as BPM objects.ref
- the reference, can benull
.
-
Orbit
Creates new orbit from raw orbit and reference orbit.- Parameters:
raw
- the raw orbit informationref
- the reference for the orbit
-
Orbit
Constructor for Orbit.
- Parameters:
bpms
- aElementList
objectx
- an array ofinvalid reference
double
z
- an array ofinvalid reference
double
-
-
Method Details
-
getPositions
Getter for the field
positions
.- Parameters:
ori
- aOrientation
object- Returns:
- an array of
invalid reference
double
-
getAvg
Getter for the field
avg
.- Parameters:
ori
- aOrientation
object- Returns:
- a double
-
getRms
Getter for the field
rms
.- Parameters:
ori
- aOrientation
object- Returns:
- a double
-
getStd
Getter for the field
std
.- Parameters:
ori
- aOrientation
object- Returns:
- a double
-
getMax
Getter for the field
max
.- Parameters:
ori
- aOrientation
object- Returns:
- a double
-
getBPMs
getBPMs.
- Returns:
- a
ElementList
object
-
toStringStatistics
toStringStatistics.
- Returns:
- a
String
object
-
toStringFull
toStringFull.
- Returns:
- a
String
object
-
printCompact
printCompact.
- Parameters:
pw
- aPrintWriter
object
-
printCompactStats
printCompactStats.
- Parameters:
pw
- aPrintWriter
object
-
print
print.
- Parameters:
pw
- aPrintWriter
object
-
getTime
public org.scictrl.csshell.Timestamp getTime()Getter for the field
time
.- Returns:
- a
Timestamp
object
-
getPosition
getPosition.
- Parameters:
ori
- aOrientation
objecti
- a int- Returns:
- a double
-
getPosition
getPosition.
- Parameters:
ori
- aOrientation
objectbpm
- aString
object- Returns:
- a double
-