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
ConstructorsConstructorDescriptionOrbit(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 TypeMethodDescriptiondoublegetAvg(Orientation ori) Getter for the fieldavg.getBPMs()getBPMs.doublegetMax(Orientation ori) Getter for the fieldmax.doublegetPosition(Orientation ori, int i) getPosition.doublegetPosition(Orientation ori, String bpm) getPosition.double[]getPositions(Orientation ori) Getter for the fieldpositions.doublegetRms(Orientation ori) Getter for the fieldrms.doublegetStd(Orientation ori) Getter for the fieldstd.org.scictrl.csshell.TimestampgetTime()Getter for the fieldtime.voidprint(PrintWriter pw) print.voidprintCompact.voidprintCompactStats.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- aElementListobjectx- an array ofobjectsinvalid reference
doublez- an array ofobjectsinvalid reference
double
-
-
Method Details
-
getPositions
Getter for the field
positions.- Parameters:
ori- aOrientationobject- Returns:
- an array of
objects
invalid reference
double
-
getAvg
Getter for the field
avg.- Parameters:
ori- aOrientationobject- Returns:
- a double
-
getRms
Getter for the field
rms.- Parameters:
ori- aOrientationobject- Returns:
- a double
-
getStd
Getter for the field
std.- Parameters:
ori- aOrientationobject- Returns:
- a double
-
getMax
Getter for the field
max.- Parameters:
ori- aOrientationobject- Returns:
- a double
-
getBPMs
getBPMs.
- Returns:
- a
ElementListobject
-
toStringStatistics
toStringStatistics.
- Returns:
- a
Stringobject
-
toStringFull
toStringFull.
- Returns:
- a
Stringobject
-
printCompact
printCompact.
- Parameters:
pw- aPrintWriterobject
-
printCompactStats
printCompactStats.
- Parameters:
pw- aPrintWriterobject
-
print
print.
- Parameters:
pw- aPrintWriterobject
-
getTime
public org.scictrl.csshell.Timestamp getTime()Getter for the field
time.- Returns:
- a
Timestampobject
-
getPosition
getPosition.
- Parameters:
ori- aOrientationobjecti- a int- Returns:
- a double
-
getPosition
getPosition.
- Parameters:
ori- aOrientationobjectbpm- aStringobject- Returns:
- a double
-