Package it.unito.di.artifact

Examples of it.unito.di.artifact.CAMessage


  }
 
 
  @OPERATION
  public void refuse(RoleId participant, RoleId initiator) {
    CAMessage refusal = new CAMessage();
    refusal.setRoleSender(participant);
    refusal.setRoleReceiver(initiator);
    refusal.setPerformative(ACLMessage.REFUSE);
    send(refusal);
   
    try {
      releaseCommitment(new Commitment(initiator, participant, "propose", new CompositeExpression(
          LogicalOperatorType.OR, new Fact("accept"), new Fact("reject"))));
View Full Code Here


    }
  }
 
  @OPERATION
  public void done(Task task, RoleId participant, RoleId initiator) {
    CAMessage done = new CAMessage();
     done.setContents(task);
     done.setRoleSender(participant);
     done.setRoleReceiver(initiator);
     done.setPerformative(ACLMessage.INFORM);
    send(done);
   
    try {
      ArrayList<Commitment> arrComm = new ArrayList<Commitment>();
      for (Commitment com : interactionState.retrieveCommitmentsByDebtorRoleId(participant)) {
View Full Code Here

    }
  }
 
  @OPERATION
  public void failure(RoleId participant, RoleId initiator) {
    CAMessage failure = new CAMessage();
    failure.setRoleSender(participant);
    failure.setRoleReceiver(initiator);
    failure.setPerformative(ACLMessage.FAILURE);
    send(failure);
    try {
      ArrayList<Commitment> arrComm = new ArrayList<Commitment>();
      for (Commitment com : interactionState.retrieveCommitmentsByDebtorRoleId(participant)) {
        if (com.getConsequent().equals(new CompositeExpression(LogicalOperatorType.OR, new Fact("done"), new Fact("failure")))) {
View Full Code Here

//    defineObsProperty("cc", com.getDebtor().getCanonicalName(), com.getCreditor().getCanonicalName(),
//        com.getAntecedent().toString(), com.getConsequent().toString(), com.getLifeCycleStatus().toString());
 
  @OPERATION
  public void refuse(RoleId participant, RoleId initiator) {
    CAMessage refusal = new CAMessage();
    refusal.setRoleSender(participant);
    refusal.setRoleReceiver(initiator);
    refusal.setPerformative(ACLMessage.REFUSE);
    send(refusal);
   
    try {
      releaseCommitment(new Commitment(initiator, participant, "propose", new CompositeExpression(
          LogicalOperatorType.OR, new Fact("accept"), new Fact("reject"))));
View Full Code Here

TOP

Related Classes of it.unito.di.artifact.CAMessage

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.