Example #1
0
 /** Set the attribute bucket containing the machine magnet info */
 public void setMagBucket(MagnetBucket buc) {
   m_bucMagnet = buc;
   super.addBucket(buc);
 };
Example #2
0
  /** 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);
  };