gov.sns.xal.slg
Class RFGap

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

public class RFGap
extends ThinElement

The RF gap element (a slim element).


Field Summary
 
Fields inherited from class gov.sns.xal.slg.Element
fmt, handleAsThick
 
Constructor Summary
RFGap(double position)
          Creates a new instance of RFGap
RFGap(java.lang.Double position)
          Creates a new instance of RFGap
RFGap(double position, double len)
          Creates a new instance of RFGap
RFGap(java.lang.Double position, java.lang.Double len)
          Creates a new instance of RFGap
RFGap(double position, double len, java.lang.String name)
          Creates a new instance of RFGap
RFGap(java.lang.Double position, java.lang.Double len, java.lang.String name)
          Creates a new instance of RFGap
 
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.
 java.lang.String toCoutString()
          Return a printable String of the elment.
 
Methods inherited from class gov.sns.xal.slg.ThinElement
asTuple, getDownstreamDrift, getEffLength, getEndPosition, getFam, getLength, getStartPosition, getUpstreamDrift, split, version
 
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

RFGap

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


RFGap

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


RFGap

public RFGap(double position)
Creates a new instance of RFGap


RFGap

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


RFGap

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


RFGap

public RFGap(java.lang.Double position)
Creates a new instance of RFGap

Method Detail

getType

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

Specified by:
getType in class ThinElement

toCoutString

public java.lang.String toCoutString()
Description copied from class: ThinElement
Return a printable String of the elment.

Overrides:
toCoutString in class ThinElement

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 ThinElement