Class 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 Detail

      • writer

        protected java.io.Writer writer
      • names

        protected java.util.Map<Element,​java.lang.String> names
      • edges

        protected java.util.Set<com.uppaal.model.io2.EdgeId> edges
    • Method Detail

      • writeCoords

        protected void writeCoords​(int x,
                                   int y)
                            throws java.lang.Exception
        Write coordinates
        Throws:
        java.lang.Exception
      • writeProperty

        protected void writeProperty​(java.lang.String ugiName,
                                     java.lang.String propertyName,
                                     int x,
                                     int y,
                                     AbstractLocation location)
                              throws java.lang.Exception
        Write property of a location.
        Throws:
        java.lang.Exception
      • writeColor

        protected void writeColor​(Location location)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • writeProperty

        protected void writeProperty​(java.lang.String ugiName,
                                     java.lang.String propertyName,
                                     int x,
                                     int y,
                                     Edge edge,
                                     com.uppaal.model.io2.EdgeId id)
                              throws java.lang.Exception
        Write property of an edge.
        Throws:
        java.lang.Exception
      • writeColor

        protected void writeColor​(Edge edge,
                                  com.uppaal.model.io2.EdgeId id)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception