Package com.uppaal.model.io2
Class UGIWriter
java.lang.Object
com.uppaal.model.core2.AbstractVisitor
com.uppaal.model.io2.UGIWriter
- All Implemented Interfaces:
Visitor
public class UGIWriter extends AbstractVisitor
A class that facilitates writing .ugi
files from a
Document
.
Implemented via the visitor pattern.
-
Field Summary
-
Method Summary
Modifier and Type Method Description void
visitBranchPoint(BranchPoint branchPoint)
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 coordinatesprotected void
writeProperty(String ugiName, String propertyName, int x, int y, AbstractLocation location)
Write property of a location.protected void
writeProperty(String ugiName, String propertyName, int x, int y, Edge edge, com.uppaal.model.io2.EdgeId id)
Write property of an edge.Methods inherited from class com.uppaal.model.core2.AbstractVisitor
visitCondition, visitCut, visitElement, visitInstanceLine, visitMessage, visitNail, visitNode, visitPrechart, visitProperty, visitQueries, visitQuery, visitUpdate
-
Field Details
-
Method Details
-
writeCoords
Write coordinates- Throws:
Exception
-
writeProperty
protected void writeProperty(String ugiName, String propertyName, int x, int y, AbstractLocation location) throws ExceptionWrite property of a location.- Throws:
Exception
-
writeColor
- Throws:
Exception
-
writeProperty
protected void writeProperty(String ugiName, String propertyName, int x, int y, Edge edge, com.uppaal.model.io2.EdgeId id) throws ExceptionWrite property of an edge.- Throws:
Exception
-
writeColor
- Throws:
Exception
-
visitDocument
- Specified by:
visitDocument
in interfaceVisitor
- Overrides:
visitDocument
in classAbstractVisitor
- Throws:
Exception
-
visitTemplate
- Specified by:
visitTemplate
in interfaceVisitor
- Overrides:
visitTemplate
in classAbstractVisitor
- Throws:
Exception
-
visitLocation
- Specified by:
visitLocation
in interfaceVisitor
- Overrides:
visitLocation
in classAbstractVisitor
- Throws:
Exception
-
visitBranchPoint
- Specified by:
visitBranchPoint
in interfaceVisitor
- Overrides:
visitBranchPoint
in classAbstractVisitor
- Throws:
Exception
-
visitEdge
- Specified by:
visitEdge
in interfaceVisitor
- Overrides:
visitEdge
in classAbstractVisitor
- Throws:
Exception
-