Exemple #1
0
 @Override
 public void send(Event e, Port p) {
   if (p.getName().equals("IOStream")) {
     IOStreamPort_out.send(e);
   } else { // Internal channel managed by ThingML
     super.send(e, p);
   }
 }
Exemple #2
0
 @Override
 public void stop() {
   super.stop();
   queue = null;
 }
Exemple #3
0
 @Override
 public void receive(Event event, Port p) {
   if (queue != null) {
     super.receive(event, p);
   }
 }
Exemple #4
0
 @Override
 public void start() {
   queue = new java.util.concurrent.ArrayBlockingQueue<Event>(1024);
   super.start();
 }