/** Set the attribute bucket containing the machine magnet info */ public void setMagBucket(MagnetBucket buc) { m_bucMagnet = buc; super.addBucket(buc); };
/** Override AcceleratorNode implementation to check for a MultipoleBucket */ public void addBucket(AttributeBucket buc) { if (buc.getClass().equals(MagnetBucket.class)) setMagBucket((MagnetBucket) buc); super.addBucket(buc); };