public void receiveSignals() {
   ReflectiveSequence<? extends SignalInstance> signals = envOutPort.getSignal();
   int size = signals.size();
   for (int i = 0; i < size; i++) {
     SignalInstance signal = signals.get(0);
     signals.remove(0);
     java.lang.System.out.println(
         "Received Signal of type: " + signal.getClassifier().iterator().next().getName());
     ((cmof.reflection.Object) signal).delete();
   }
   java.lang.System.out.println("Env out port empty.");
 }
 public void sendSignal(SignalInstance signal) {
   signal.setDestinationId(-1);
   signal.setSourceId(-1);
   envInPort.getSignal().add(signal);
   envInPort.send();
 }