/** 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; } }