Package jade.core.behaviours

Examples of jade.core.behaviours.CompositeBehaviour


  public WrapperBehaviour(Behaviour wrapped) {
    super(wrapped.myAgent);
    wrappedBehaviour = wrapped;
    // Set a dummy parent to the wrapped-behaviour to allow propagation of upward events and root calculations
    // from the wrapped behaviour to this WrapperBehaviour
    wrappedBehaviour.setParent(new CompositeBehaviour() {
      // Redefine the handle() method to propagate events (note that these are always upwards events
      // from the wrapped-behaviour) to this WrapperBehaviour
      protected void handle(RunnableChangedEvent rce) {
        WrapperBehaviour.this.handle(rce);
      }
View Full Code Here

TOP

Related Classes of jade.core.behaviours.CompositeBehaviour

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.