openoptics.TimeFlowTable.TimeFlowHop#
- class openoptics.TimeFlowTable.TimeFlowHop(cur_node=None, send_port=None, send_node=None, send_ts=None)[source]#
Bases:
objectA hop in a time flow entry.
- cur_node#
Current node id, for the purpose of checking if the current node is where the packet is supposed to be sent to. If not specified, do not perform the check.
- send_port#
Port to send packets to. Default to None, meaning send to a random port.
- send_node#
Node to send packets to, only valid if send_port is None. Default to None, meaning send to a random node.
- send_port_or_node#
Port or node to send packets to.
- send_ts#
Time slice to send packets
- __init__(cur_node=None, send_port=None, send_node=None, send_ts=None)[source]#
Initialize a TimeFlowHop.
- Parameters:
cur_node – Current node id, for the purpose of checking if the current node is where the packet is supposed to be sent to. If not specified, do not perform the check.
send_port – Port to send packets to. Default to None, meaning send to a random port.
send_node – Node to send packets to, only valid if send_port is None. Default to None, meaning send to a random node.
send_ts – Time slice to send packets, defaults to None
Methods
__init__([cur_node, send_port, send_node, ...])Initialize a TimeFlowHop.