protected void afterWaitForEvents(String caseId, GenericEvent ge) throws Exception {
   if (ge != null) {
     if (caseId.equalsIgnoreCase("MSG")) {
       System.out.println("PARTICIPANT: " + myAgent.getName() + " - event GET MESSAGE");
       ((ParticipantAgent) myAgent).waitForState();
       eventMsg = true;
       eventProposal = false;
     } else if (caseId.equalsIgnoreCase("PROPOSAL")) {
       if (ge.extract("requestId").equals(myAgent.getName())) {
         System.out.println("PARTICIPANT: " + myAgent.getName() + " - event MAKE PROPOSAL");
         eventProposal = true;
         eventMsg = false;
       } else {
         eventProposal = false;
         eventMsg = false;
       }
     }
   }
 }
 protected void executeReadStartMessage() throws Exception {
   ((ParticipantAgent) myAgent).readStartMessage();
 }
 protected void afterWaitForStart(GenericEvent ge) throws Exception {
   if (ge != null) {
     ((ParticipantAgent) myAgent).waitForStart();
   }
 }
 protected void executeReceiveGoods() throws Exception {
   ((ParticipantAgent) myAgent).receiveGoods();
 }
 protected void executeFinishAuction() throws Exception {
   ((ParticipantAgent) myAgent).finishAuction();
 }
 protected void executeSendProposal() throws Exception {
   ((ParticipantAgent) myAgent).firstProposal();
   ((ParticipantAgent) myAgent).sentProposal();
 }
 protected void executeStartAuction() throws Exception {
   ((ParticipantAgent) myAgent).init();
   firstIteration = true;
 }