Package cartago

Examples of cartago.ArtifactId


    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()));
       
        try {
          Thread.sleep(1000);
        } catch (InterruptedException e) {
View Full Code Here


    boolean maximumReached = false;
 
   
    @Override
    public void action() {
      ArtifactId art = Role.createArtifact(ARTIFACT_NAME, CNPArtifact.class);
      initiator = (Initiator)(Role.enact(CNPArtifact.INITIATOR_ROLE, art, this, myAgent.getAID()));
     
      initiator.startObserving(this);
//      initiator.registerMethod(this, "listenerProposal");
//      logger.debug("Method registered.");
View Full Code Here

    this.artifactName = artifactName;
  }
 
  @Override
  public void action() {
    ArtifactId art = Role.createArtifact(artifactName,
        CNPArtifactTimerMaxPart.class);
    initiator = (Initiator) (Role.enact(CNPArtifactTimerMaxPart.INITIATOR_ROLE,
        art, this, myAgent.getAID()));

    initiator.startObserving(this);
View Full Code Here

    int maximumProposals = 3;
    boolean maximumReached = false;

    @Override
    public void action() {
      ArtifactId art = Role.createArtifact(ARTIFACT_NAME,
          CNPArtifact.class);
      initiator = (Initiator) (Role.enact(CNPArtifact.INITIATOR_ROLE,
          art, this, myAgent.getAID()));
     
     
View Full Code Here

  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()));
        RoleId receiver = new RoleId(CommunicationArtifact.CA_ROLE, RoleId.GENERIC_ROLE);
        try {
          Thread.sleep(1000);
        } catch (InterruptedException e) {
View Full Code Here

    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()));
       
        try {
          Thread.sleep(1000);
        } catch (InterruptedException e) {
View Full Code Here

  public Proposal getProposal() { return p; }
  public void setProposal(Proposal p) { this.p = p; }
 
  @Override
  public void action() {
    ArtifactId art = Role.createArtifact(artifactName,
        CNPArtifactTimerMaxPart.class);
    participant = (Participant) (Role.enact(
        CNPArtifactTimerMaxPart.PARTICIPANT_ROLE, art, this, myAgent.getAID()));
    participant.startObserving(this);
   
View Full Code Here

    public Task getTask() { return t; }
    public void setTask(Task t) { this.t = t; }
   
    @Override
    public void action() {
      ArtifactId art = Role.createArtifact(ARTIFACT_NAME,
          CNPArtifactTimerMaxPart.class);
      participant = (Participant) (Role.enact(
          CNPArtifactTimerMaxPart.PARTICIPANT_ROLE, art, this, myAgent.getAID()));
      participant.startObserving(this);
    }
View Full Code Here

    Initiator initiator = null;
   
    @Override
    public void action() {
      ArtifactId art = Role.createArtifact(ARTIFACT_NAME,
          CNPArtifactTimerMaxPart.class);
      initiator = (Initiator) (Role.enact(CNPArtifactTimerMaxPart.INITIATOR_ROLE,
          art, this, myAgent.getAID()));

      initiator.startObserving(this);
View Full Code Here

TOP

Related Classes of cartago.ArtifactId

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.