spreadflow_core.dsl.tokens module

Tokens used in the domain-specific language for building up flowmaps.

class spreadflow_core.dsl.tokens.AliasToken(element, alias)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

alias

Alias for field number 1

element

Alias for field number 0

class spreadflow_core.dsl.tokens.ComponentToken(component)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

component

Alias for field number 0

class spreadflow_core.dsl.tokens.ConnectionToken(port_out, port_in)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

port_in

Alias for field number 1

port_out

Alias for field number 0

class spreadflow_core.dsl.tokens.DefaultInputToken(element, port)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

element

Alias for field number 0

port

Alias for field number 1

class spreadflow_core.dsl.tokens.DefaultOutputToken(element, port)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

element

Alias for field number 0

port

Alias for field number 1

class spreadflow_core.dsl.tokens.DescriptionToken(element, description)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

description

Alias for field number 1

element

Alias for field number 0

class spreadflow_core.dsl.tokens.EventHandlerToken(event_type, priority, callback)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

callback

Alias for field number 2

event_type

Alias for field number 0

priority

Alias for field number 1

class spreadflow_core.dsl.tokens.LabelToken(element, label)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

element

Alias for field number 0

label

Alias for field number 1

class spreadflow_core.dsl.tokens.ParentElementToken(element, parent)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

element

Alias for field number 0

parent

Alias for field number 1

class spreadflow_core.dsl.tokens.PartitionBoundsToken(partition, bounds)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

bounds

Alias for field number 1

partition

Alias for field number 0

class spreadflow_core.dsl.tokens.PartitionSelectToken(partition)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

partition

Alias for field number 0

class spreadflow_core.dsl.tokens.PartitionToken(element, partition)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

element

Alias for field number 0

partition

Alias for field number 1