stop method

void stop()

Implementation

void stop() {
  _logger.info('[Clock: ${virtualClock / 1000}s] NclDocument will stop');
  _delayedNclActions.clear();

  void stopNode(Node node) {
    if (node.getMainState() == NclStateType.occurring ||
        node.getMainState() == NclStateType.paused) {
      if (node is Composition) {
        for (var child in node.getNodes()) {
          stopNode(child);
        }
      }
      node.getMainNclEvent().doNclAction(NclActionType.stop);
    }
  }

  stopNode(document.body);
}