예제 #1
0
 /** get magnet polarity */
 public double getPolarity() {
   try {
     return m_bucMagnet.getPolarity();
   } catch (Exception e) {
     System.out.println(
         " Polarity not set on " + this.getId() + ", for stability sake, using + field");
     return 1;
   }
 }
예제 #2
0
 /** get the default magnetic field */
 public double getDfltField() {
   return m_bucMagnet.getDfltField();
 }
예제 #3
0
 /** get the effective magnetic length (m) */
 public double getEffLength() {
   return m_bucMagnet.getEffLength();
 }