2 GeoMTGM
39
particular, only geographical complex nodes can have relational edges to geographical atomic nodes.
The it.univr.geomtgm.model.edge package contains a set of classes for
the definition of directed labeled edges of a GeoMTGM graph. In particular, the
MtgmEdge defines a generic edge and it inherits from the DirectedEdge class of
the JGraphT library.
From this class the RelationalEdge, MultimediaEdge, ComposedBy
Edge, and GeographicalEdge classes for the definition of relational, multimedia,
composed-by, and geographical edges, respectively, derive.
2.4.3 Translation From and Into XML and the Application Layout
The it.univr.geomtgm.parser package contains a set of classes that offer static
methods for the translation of a GeoMTGM graph into an XML document and for
the construction of a graph from an XML document, according to the translation
rules defined in the previous section.
The parsing is performed by the use of the JDOM [16] interface; in particular a
GeoMTGM graph is first converted into a JDOM Document object and then translated into an XML document. Conversely from an XML file is first constructed a
JDOM Document object and then the graph is rebuilt.
We have organized and assembled the content and the layout of JSP pages via
the use of the Tiles framework, included with the Struts distribution. This framework
provides a templating mechanism that allows us to separate the responsibilities of
Fig. 2.14. The GeoMtgmApp home page
Précédent

- 37/317

Suivant