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