|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.uppaal.model.core2.AbstractVisitor
com.uppaal.model.io2.UGIWriter
public class UGIWriter
A class that facilitates writing .ugi
files from a Document.
Implemented via the visitor pattern.
| Field Summary | |
|---|---|
protected Set<com.uppaal.model.io2.EdgeId> |
edges
|
protected Map<Element,String> |
names
|
protected Writer |
writer
|
| Method Summary | |
|---|---|
void |
visitDocument(Document document)
|
void |
visitEdge(Edge edge)
|
void |
visitLocation(Location location)
|
void |
visitTemplate(AbstractTemplate template)
|
protected void |
writeColor(Edge edge,
com.uppaal.model.io2.EdgeId id)
|
protected void |
writeColor(Location location)
|
protected void |
writeCoords(int x,
int y)
Write coordinates |
protected void |
writeProperty(String ugiName,
String propertyName,
int x,
int y,
Edge edge,
com.uppaal.model.io2.EdgeId id)
Write property of an edge. |
protected void |
writeProperty(String ugiName,
String propertyName,
int x,
int y,
Location location)
Write property of a location. |
| Methods inherited from class com.uppaal.model.core2.AbstractVisitor |
|---|
visitBranchPoint, visitCondition, visitCut, visitElement, visitInstanceLine, visitMessage, visitNail, visitNode, visitPrechart, visitProperty, visitUpdate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Writer writer
protected Map<Element,String> names
protected Set<com.uppaal.model.io2.EdgeId> edges
| Method Detail |
|---|
protected void writeCoords(int x,
int y)
throws Exception
Exception
protected void writeProperty(String ugiName,
String propertyName,
int x,
int y,
Location location)
throws Exception
Exception
protected void writeColor(Location location)
throws Exception
Exception
protected void writeProperty(String ugiName,
String propertyName,
int x,
int y,
Edge edge,
com.uppaal.model.io2.EdgeId id)
throws Exception
Exception
protected void writeColor(Edge edge,
com.uppaal.model.io2.EdgeId id)
throws Exception
Exception
public void visitDocument(Document document)
throws Exception
visitDocument in interface VisitorvisitDocument in class AbstractVisitorException
public void visitTemplate(AbstractTemplate template)
throws Exception
visitTemplate in interface VisitorvisitTemplate in class AbstractVisitorException
public void visitLocation(Location location)
throws Exception
visitLocation in interface VisitorvisitLocation in class AbstractVisitorException
public void visitEdge(Edge edge)
throws Exception
visitEdge in interface VisitorvisitEdge in class AbstractVisitorException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||