I tried implementing AgentX following this draft, but the lack of a timer makes it pretty much impossible. The problem is that the protocol need to handle timeouts like a missing response etc. But with the pep as it stands you can not do this in the protocol class. I ended up extending the transport/protocol interface so the protocol can tell the transport the next time it needs to be woken up. Not sure that is the best way though.
I tried implementing AgentX following this draft, but the lack of a timer makes it pretty much impossible. The problem is that the protocol need to handle timeouts like a missing response etc. But with the pep as it stands you can not do this in the protocol class. I ended up extending the transport/protocol interface so the protocol can tell the transport the next time it needs to be woken up. Not sure that is the best way though.