openoptics.TimeFlowTable.Step#
- class openoptics.TimeFlowTable.Step(cur_node=None, step_type='port', send_port=None, send_ts=None, send_node=None)[source]#
Bases:
objectOne step in a path containing (send time slice && send port) or the node sent to. None represents wildcard.
- cur_node#
Current node identifier
- step_type#
Type of step (‘port’ or ‘node’)
- send_port#
Port to send packets through
- send_ts#
Time slice to send packets
- send_node#
Node to send packets to
- __init__(cur_node=None, step_type='port', send_port=None, send_ts=None, send_node=None)[source]#
Initialize a Step.
- Parameters:
cur_node – Current node identifier
step_type – Type of step (‘port’ or ‘node’)
send_port – Port to send packets through
send_ts – Time slice to send packets
send_node – Node to send packets to
- Raises:
AssertionError – If step_type is not ‘port’ or ‘node’
Methods
__init__([cur_node, step_type, send_port, ...])Initialize a Step.