import logging
from spade.behaviour import State
from behaviours.IdleBehaviour import IdleBehaviour
_logger = logging.getLogger(__name__)
[docs]
class StateIdle(State):
"""
This class contains the Idle state of the AAS Manager.
"""
[docs]
async def run(self):
"""
This method implements the idle state of the common AAS Manager. Here all requests services are handled,
both from ACL of another AAS Manager or from the AAS Core.
"""
_logger.info("## STATE 4: IDLE ##")
idle_behav = IdleBehaviour(self.agent)
self.agent.add_behaviour(idle_behav)