Exemplo n.º 1
0
  public void deltext(double e, message x) {
    Continue(e);

    if (phaseIs("passive")) {

      for (int i = 0; i < x.getLength(); i++)
        if (messageOnPort(x, "in", i)) {
          job = x.getValOnPort("in", i);
          input = "in";
          holdIn("busy", processing_time);
        }
      for (int i = 0; i < x.getLength(); i++)
        if (messageOnPort(x, "in1", i)) {
          job = x.getValOnPort("in1", i);
          input = "in1";
          holdIn("busy", processing_time);
        }
    }
    sw = !sw;
  }