gov.sns.xal.slg
Class ThinElement

java.lang.Object
  |
  +--gov.sns.xal.slg.Element
        |
        +--gov.sns.xal.slg.ThinElement
All Implemented Interfaces:
java.lang.Cloneable, VisitorListener
Direct Known Subclasses:
BCMonitor, BLMonitor, BPMonitor, Foil, HSteerer, Marker, PermMarker, RFGap, VSteerer, WScanner

public abstract class ThinElement
extends Element

The superclass of all thin elements.


Field Summary
 
Fields inherited from class gov.sns.xal.slg.Element
fmt, handleAsThick
 
Constructor Summary
protected ThinElement(java.lang.String name, double position, double len)
          Creates a new instance of ThinElement
 
Method Summary
abstract  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.util.ArrayList asTuple()
          Return the slim element as a tuple (drift,element,drift).
 Element getDownstreamDrift()
          Return the downstream drift space of a slim element.
 double getEffLength()
          Return the effective length of this element.
 double getEndPosition()
          Return the (downstream) end position of this element.
 java.lang.String getFam()
           
 double getLength()
          Return the length of this element.
 double getStartPosition()
          Return the (upstream) start position of this element.
abstract  java.lang.String getType()
          Return the element type.
 Element getUpstreamDrift()
          Return the upstream drift space of a slim element.
 java.util.ArrayList split(Element insert)
          Split the thin element means insert it behind this.
 java.lang.String toCoutString()
          Return a printable String of the elment.
static java.lang.String version()
          Return a version string wo the cvs keyword (i.e.
 
Methods inherited from class gov.sns.xal.slg.Element
clone, getAcceleratorNode, getBase, getName, getPosition, isThick, setAcceleratorNode, setBase, setLength, setPosition, toAbsolutePosition
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThinElement

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

Method Detail

getType

public abstract java.lang.String getType()
Return the element type.

Specified by:
getType in class Element

getStartPosition

public double getStartPosition()
Return the (upstream) start position of this element.

Overrides:
getStartPosition in class Element

getEndPosition

public double getEndPosition()
Return the (downstream) end position of this element.

Overrides:
getEndPosition in class Element

getLength

public double getLength()
Return the length of this element.

Overrides:
getLength in class Element

getEffLength

public double getEffLength()
Return the effective length of this element.


getUpstreamDrift

public Element getUpstreamDrift()
Return the upstream drift space of a slim element.


getDownstreamDrift

public Element getDownstreamDrift()
Return the downstream drift space of a slim element.


asTuple

public java.util.ArrayList asTuple()
Return the slim element as a tuple (drift,element,drift).


split

public java.util.ArrayList split(Element insert)
Split the thin element means insert it behind this.

Overrides:
split in class Element

toCoutString

public java.lang.String toCoutString()
Return a printable String of the elment.

Overrides:
toCoutString in class Element

getFam

public java.lang.String getFam()
Overrides:
getFam in class Element

version

public static java.lang.String version()
Return a version string wo the cvs keyword (i.e. Id).


accept

public abstract 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