orbit.lattice.AccNode#
- class orbit.lattice.AccNode(name='no name', type_in='generic')[source]#
Class. Base class of the accelerator nodes hierarchy.
- __init__(name='no name', type_in='generic')[source]#
Constructor. Creates an empty accelerator node.
Methods
__init__([name, type_in])Constructor.
addChildNode(node, place[, part_index, ...])Method.
addParam(key, value)Method.
getActivePartIndex()Method.
getAllChildren()It returns the list of all children of this node.
getBodyChildren()Returns the array of direct childrens of this accelerator node that are inside the element, not before or after.
getChildNodes(place[, part_index, place_in_part])Method.
getLength([index])Method.
getName()Method.
getNumberOfBodyChildren()Returns the total number of direct childrens of this accelerator node that are inside the element, not before or after.
getNumberOfChildren()Returns the total number of direct children of this accelerator node.
getParam(key)Method.
getParamsDict()Method.
getType()Method.
getnParts()Method.
hasParam(key)Method.
initialize()Abstract method.
keys()return the list of the keys for the parameters
removeParam(key)Method.
reverseOrder()This method is used for a lattice reversal and a bunch backtracking.
reverseOrderNodeSpecific()This method is used for a lattice reversal and a bunch backtracking This is a node type specific method.
setActivePartIndex(activePartIndex)Method.
setLength([L, index])Method.
setName([name])Method.
setParam(key, value)Method.
setParamsDict(params)Method.
setType([type_in])Method.
setnParts([n])Method.
structureToText([txt, txt_shift])This method write the structure of the node to the text variable recursively.
trackActions(actionsContainer[, paramsDict])Method.
updateParamsDict(params)Method.
Attributes
AFTERBEFOREBODYENTRANCEEXIT