Class SerialBehaviour

    • Constructor Detail

      • SerialBehaviour

        protected SerialBehaviour()
        Create a new SerialBehaviour object, without setting the owner agent.
      • SerialBehaviour

        protected SerialBehaviour​(Agent a)
        Create a new SerialBehaviour object and set the owner agent.
        Parameters:
        a - The agent owning this behaviour.
    • Method Detail

      • handle

        protected void handle​(Behaviour.RunnableChangedEvent rce)
        Handle block/restart notifications. A SerialBehaviour is blocked only when its currently active child is blocked, and becomes ready again when its current child is ready. This method takes care of the various possibilities.
        Overrides:
        handle in class Behaviour
        Parameters:
        rce - The event to handle.