@Override public void visitOnEntry(StateMachine<T, S, E, C> visitable) { writeLine( "<scxml initial=" + quoteName(visitable.getInitialState().toString()) + " version=\"1.0\" " + "xmlns=\"http://www.w3.org/2005/07/scxml\" xmlns:sqrl=\"http://squirrelframework.org/squirrel\">"); writeLine("<sqrl:fsm " + visitable.getDescription() + " />"); }
protected ObjectName createObjectName(StateMachine<?, ?, ?, ?> fsm) { Hashtable<String, String> properties = new Hashtable<String, String>(2); properties.put("type", quote(fsm.getClass().getSimpleName())); properties.put("name", quote(fsm.getIdentifier())); try { return new ObjectName(DOMAIN, properties); } catch (MalformedObjectNameException e) { throw new IllegalArgumentException(); } }
public void register(StateMachine<?, ?, ?, ?> fsm) { if (fsm.isRemoteMonitorEnabled()) { fsm.addDeclarativeListener(this); } }