end module

Define a command to indicate end of the linac.

class End(line, dat_idx=None, **kwargs)[source]

Bases: Command

The end of the linac.

Parameters:
is_implemented: bool = True
n_attributes: int | range | Collection = 0
__init__(line, dat_idx=None, **kwargs)[source]

Call mother __init__.

Parameters:
Return type:

None

set_influenced_elements(*args, **kwargs)[source]

Determine the index of the element concerned by apply().

Parameters:

kwargs (float)

Return type:

None

apply(instructions, **kwargs)[source]

Remove everything in instructions after this object.

Parameters:
Return type:

list[Instruction]

_abc_impl = <_abc._abc_data object at 0x7318faa95e80>