38
Carlo Combi, Sara Migliorini, Barbara Oliboni, and Alberto Belussi
packages, respectively. In Fig. 2.13 a class diagram for the main package
it.univr.geomtgm.model is shown.
The it.univr.geomtgm.model.graph package contains the GeoMtgmConcrete class that defines some methods for creating and populating a
GeoMTGM graph. In particular, these methods allow one to define the root element, add nodes, establish new relations between them, delete, and modify nodes
and edges.
This class extends the DirectMultigraph class offered by the JGraphT
library. The use of a multigraph allows the definition of several directed edges between the same pair of nodes to represent into a unique graph both relational, geographical and multimedia information.
The package it.univr.geomtgm.model.node contains a set of classes for the
definition of the various node types that appear in a GeoMTGM graph. In particular,
the class Node represents the base class for all other types of nodes and is characterized by the attributes and methods shared by all nodes of the graph.
The atomic nodes are represented by the AtomicNode class from which the
StreamNode class for the representation of stream nodes derives.
The geographical atomic nodes have been implemented by a hierarchy of types.
In particular, the GeoAtomicNode class defines a generic geographical atomic node
from which the PointNode, LineNode, and PolygonNode classes for the representation of geographical point, line, and polygon object, respectively, derive.
As regards the complex nodes, they are represented by the ComplexNode class
from which the GeoComplexNode class for the representation of geographical complex nodes derives. This class shares the same attributes of the parent class, but it
has been distinguished in order to define some constraints for the edge definition. In
MtgmEdge
MultimediaEdge
RelationalEdge
GeographicalEdge
ComposedByEdge
Node
GeoAtomicNode
AtomicNode
ComplexNode
SettingNode
StreamNode
LineNode
PolygonNode
PointNode
GeoComplexNode
<>
Mtgm
<>
GeoMtgm
GeoMtgmConcrete
1
*
1
*
Fig. 2.13. The class diagram of the package it.univr.geomtgm.model
Précédent

- 36/317

Suivant