Esempio n. 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);
   }
 }
Esempio n. 2
0
 @Override
 public void stop() {
   super.stop();
   queue = null;
 }
Esempio n. 3
0
 @Override
 public void receive(Event event, Port p) {
   if (queue != null) {
     super.receive(event, p);
   }
 }
Esempio n. 4
0
 @Override
 public void start() {
   queue = new java.util.concurrent.ArrayBlockingQueue<Event>(1024);
   super.start();
 }