final Map<State<?, ?>, Integer> idMap = newHashMap(); for (final State<?, ?> s : allStates) { builder.append(NODE).append(id).append(LABEL_OPEN).append(s.name()) .append(LABEL_CLOSE); idMap.put(s, id);
final Map<State<?, ?>, Integer> idMap = newHashMap(); for (final State<?, ?> s : allStates) { builder.append(NODE).append(id).append(LABEL_OPEN).append(s.name()) .append(LABEL_CLOSE); idMap.put(s, id);
@Override public void stop() { LOGGER.trace("stop"); checkState(stateMachine.isSupported(Trigger.STOP), "Can not stop time in current state: %s", stateMachine.getCurrentState().name()); final boolean rt = stateMachine.stateIs(realtimeState); stateMachine.handle(Trigger.STOP, this); if (!rt) { shutdownExecutor(); } }