g.setUserDatum(JUConstants.TITLE, name,UserData.SHARED);
new TestFSMParser.fsmParser(fsm).parse(new TestFSMParser.TransitionReceiver()
{
public void put(String from, String to, String label, boolean accept) {
DeterministicVertex fromVertex = existingVertices.get(from), toVertex = existingVertices.get(to);
if (fromVertex == null)
{
fromVertex = new DeterministicDirectedSparseGraph.DeterministicVertex(from);
if (existingVertices.isEmpty())
fromVertex.addUserDatum(JUConstants.INITIAL, true, UserData.SHARED);
fromVertex.addUserDatum(JUConstants.ACCEPTED, true, UserData.SHARED);
existingVertices.put(from, fromVertex);
g.addVertex(fromVertex);
}
else
if (!Boolean.valueOf(fromVertex.getUserDatum(JUConstants.ACCEPTED).toString()))
throw new IllegalArgumentException("conflicting acceptance assignment on vertex "+from);
if (from.equals(to))
{
if (!accept) throw new IllegalArgumentException("conflicting acceptance assignment on vertex "+to);