Hello,
I am implementing a protocol following AODV example.
I want to store state data on every node, a particular state for each of them.
I have defined variables related to the protocol in the RoutingProtocol class. This protocol is installed in the nodes.
However, I do not know if the RoutingProtocol class is the right place to define state variables. If so, how can I access these variables? If not, what should I do? Should I create a different class that inherits from Node class?
In AODV protocol most variables are common for the protocol (not specific to nodes). The only one that seems to be specific is m_routingTable which does not have (as far as I have seen) methods to be accessed directly.
Thanks in advance,