gov.sns.xal.slg
Class Dipole

java.lang.Object
  |
  +--gov.sns.xal.slg.Element
        |
        +--gov.sns.xal.slg.Dipole
All Implemented Interfaces:
java.lang.Cloneable, VisitorListener

public class Dipole
extends Element

The dipole element (a thick element).


Field Summary
 
Fields inherited from class gov.sns.xal.slg.Element
fmt, handleAsThick
 
Constructor Summary
Dipole(double position, double len)
          Creates a new instance of Dipole
Dipole(java.lang.Double position, java.lang.Double len)
          Creates a new instance of Dipole
Dipole(double position, double len, java.lang.String name)
          Creates a new instance of Dipole
Dipole(java.lang.Double position, java.lang.Double len, java.lang.String name)
          Creates a new instance of Dipole
 
Method Summary
 void accept(Visitor v)
          When called with a Visitor reference the implementor can either reject to be visited (empty method body) or call the Visitor by passing its own object reference.
 java.lang.String getType()
          Return the element type.
 
Methods inherited from class gov.sns.xal.slg.Element
clone, getAcceleratorNode, getBase, getEndPosition, getFam, getLength, getName, getPosition, getStartPosition, isThick, setAcceleratorNode, setBase, setLength, setPosition, split, toAbsolutePosition, toCoutString, version
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dipole

public Dipole(double position,
              double len,
              java.lang.String name)
Creates a new instance of Dipole


Dipole

public Dipole(java.lang.Double position,
              java.lang.Double len,
              java.lang.String name)
Creates a new instance of Dipole


Dipole

public Dipole(double position,
              double len)
Creates a new instance of Dipole


Dipole

public Dipole(java.lang.Double position,
              java.lang.Double len)
Creates a new instance of Dipole

Method Detail

getType

public java.lang.String getType()
Description copied from class: Element
Return the element type.

Specified by:
getType in class Element

accept

public void accept(Visitor v)
When called with a Visitor reference the implementor can either reject to be visited (empty method body) or call the Visitor by passing its own object reference.

Specified by:
accept in interface VisitorListener
Specified by:
accept in class Element