コード例 #1
0
 public void run() {
   // Create an event accepter and initialize waiting to false.
   super.run();
   this.eventAccepter = new AcceptEventActionEventAccepter();
   this.eventAccepter.actionActivation = this;
   this.waiting = false;
 }
コード例 #2
0
 public void terminate() {
   // Terminate this action and unregister its event accepter.
   super.terminate();
   if (this.isWaiting()) { // CHANGED "this.waiting" to "this.isWaiting()".
     this.getExecutionContext().unregister(this.eventAccepter);
     this.waiting = false;
   }
 }