use of de.prob.animator.domainobjects.DotEdge in project prob2 by bendisposto.
the class AbstractDotDiagramCmd method extractTransitions.
protected void extractTransitions(final ListPrologTerm trans) {
for (PrologTerm pt : trans) {
if (pt instanceof CompoundPrologTerm) {
CompoundPrologTerm cpt = (CompoundPrologTerm) pt;
String id = Transition.getIdFromPrologTerm(cpt.getArgument(1));
String src = Transition.getIdFromPrologTerm(cpt.getArgument(2));
String dest = Transition.getIdFromPrologTerm(cpt.getArgument(3));
String label = cpt.getArgument(4).toString();
String style = cpt.getArgument(5).getFunctor();
String color = cpt.getArgument(6).getFunctor();
DotEdge e = new DotEdge(id, src, dest, label, style, color);
edges.put(id, e);
}
}
}
Aggregations