Package jade.core.behaviours

Examples of jade.core.behaviours.OneShotBehaviour


public class SenderAgent extends Agent {

  public static final String ARTIFACT_NAME = "SendReceiveArtifact";
   
  protected void setup() {
    addBehaviour(new OneShotBehaviour() {
     
      @Override
      public void action() {
        ArtifactId art = Role.createArtifact(ARTIFACT_NAME, CommunicationArtifactImpl.class);
        CARole user = (CARole)(Role.enact(CommunicationArtifact.CA_ROLE, art, this, myAgent.getAID()));
View Full Code Here


  public static final String ARTIFACT_NAME = "SendReceiveArtifact";
  public Logger logger = LogManager.getLogger(ReceiverAgent.class);
 
  protected void setup() {
    addBehaviour(new OneShotBehaviour() {
     
      @Override
      public void action() {
       
        ArtifactId art = Role.createArtifact(ARTIFACT_NAME, CommunicationArtifactImpl.class);
View Full Code Here

public class SenderAgent extends Agent {

  public static final String ARTIFACT_NAME = "SendReceiveArtifact";
   
  protected void setup() {
    addBehaviour(new OneShotBehaviour() {
     
      @Override
      public void action() {
        ArtifactId art = Role.createArtifact(ARTIFACT_NAME, CommunicationArtifactImpl.class);
        CARole user = (CARole)(Role.enact(CommunicationArtifact.CA_ROLE, art, this, myAgent.getAID()));
View Full Code Here

  public static final String ARTIFACT_NAME = "SendReceiveArtifact";
  public Logger logger = LogManager.getLogger(ReceiverAgent.class);
 
  protected void setup() {
    addBehaviour(new OneShotBehaviour() {
     
      @Override
      public void action() {
       
        ArtifactId art = Role.createArtifact(ARTIFACT_NAME, CommunicationArtifactImpl.class);
View Full Code Here

                // register the description with the DF
                DFService.register(this, dfd);

                this.model = (Auto)this.getArguments()[0];

                addBehaviour(new OneShotBehaviour() {
                    @Override
                    public void action() {
                        VehicleDriveAgent.this.model.start(null,0);
                    }
                });
View Full Code Here

    }

    private void startPressed() {
        if (TrafficRegister.getInstance().isInit()){
            Visualizator.getInstance().getHostAgent()
                .addBehaviour( new OneShotBehaviour() {
                                  public void action() {
                                      Visualizator.getInstance().getHostAgent().initTraffic(TrafficRegister.getInstance());
                                  }
                              } );
        }
View Full Code Here

TOP

Related Classes of jade.core.behaviours.OneShotBehaviour

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.