r_advance_time_nac.od 447 B

123456789101112131415
  1. # We cannot advance time until all outports have signals
  2. # BTW, this NAC is not really necessary, because our schedule already will only try to match 'advance_time' when no other actions are enabled
  3. :GlobalCondition {
  4. condition = ```
  5. missing_signals = False
  6. for _, outport in get_all_instances("OutPort"):
  7. if len(get_outgoing(outport, 'hasSignal')) == 0:
  8. missing_signals = True
  9. break
  10. missing_signals
  11. ```;
  12. }