示例#1
0
 @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() + " />");
 }
示例#2
0
 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();
   }
 }
示例#3
0
 public void register(StateMachine<?, ?, ?, ?> fsm) {
   if (fsm.isRemoteMonitorEnabled()) {
     fsm.addDeclarativeListener(this);
   }
 }