Node
gradysim.simulator.node
This is a simple module containing declarations necessary to keep track of the nodes during the simulation
Node
Bases: Generic[T]
Represents a node inside the python simulation. Holds the reference to the node's encapsulated protocol. This class is accessible to handlers.
Source code in gradysim\simulator\node.py
id
instance-attribute
Node's unique identifier
position
instance-attribute
Node's position inside the simulation
protocol_encapsulator
instance-attribute
Node's encapsulated protocol