Package org.uscxml

Examples of org.uscxml.Interpreter


    System.load("/Users/sradomski/Documents/TK/Code/uscxml/build/cli/lib/libuscxmlNativeJava64.jnilib");

    TestCustomExecContent execContent = new TestCustomExecContent();
    Factory.getInstance().registerExecutableContent(execContent);

    Interpreter interpreter = Interpreter.fromXML(
            "<scxml>\n" +
            "  <state id=\"s0\">\n" +
            "    <onentry>\n" +
            "      <custom foo=\"bar\">\n" +
            "        <something></something>\n" +
            "      </custom>\n" +
            "      <custom foo=\"bar\">\n" +
            "        <something></something>\n" +
            "      </custom>\n" +
            "    </onentry>\n" +
            "    <transition target=\"exit\" />" +
            "  </state>\n" +
            "  <final id=\"exit\" />" +
            "</scxml>\n"
        );
    interpreter.interpret();
    Thread.sleep(1000);
  }
View Full Code Here


    "  </state>" +
    "  <final id=\"done\" />" +
    "</scxml>";

    // parse and interpret
    Interpreter interpreter = Interpreter.fromXML(xml);
    interpreter.interpret();
  }
View Full Code Here

    TestAdhocInvoker javainvoker1 = new TestAdhocInvoker();
    TestAdhocInvoker javainvoker2 = new TestAdhocInvoker();

    // parse and interpret
    Interpreter interpreter = Interpreter.fromXML(xml);
    interpreter.setInvoker("javainvoker1", javainvoker1);
    interpreter.setInvoker("javainvoker2", javainvoker2);
    interpreter.interpret();
   
  }
View Full Code Here

TOP

Related Classes of org.uscxml.Interpreter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.