コード例 #1
0
ファイル: CorrectorSupply.java プロジェクト: openxal/openxal
 /**
  * Get the position of the first corrector relative to the start of the specified sequence.
  *
  * @param sequence The sequence relative to which the corrector's position is measured
  * @return the position of this supply's first corrector relative to the sequence in meters
  */
 public double getFirstCorrectorPositionIn(AcceleratorSeq sequence) {
   return sequence.getPosition(_correctors.get(0).getCorrector());
 }
コード例 #2
0
ファイル: BpmAgent.java プロジェクト: kritha/MyOpenXal
 /** Get the position of the BPM */
 public double getPosition() {
   return sequence.getPosition(bpmNode);
 }