4 A CASE STUDY
A conceptual data schema was designed for a Water
Distribution System of a city to demonstrate the use
of network constructors proposed. The example was
based on Barros et al. (1995) and was supported by
the staff of the Viçosa Municipal Water and Sewer
Service (SAAE, 2008). We present only the
fundamental elements of the system that was
restricted to consider only the part that conveys
water from the treatment plant to house
hydrometers.
Two networks of water distribution were
identified in a city: the main network, which
conveys water from the treatment plant to the
connection points with secondary pipelines, passing
through reservoirs; and the secondary, formed by the
distribution grid and consumer’s direct water supply.
The reservoirs provide water to supply the
demands of consumption, any emergency demands
and also, they keep the minimum or constant
pressure within the network. Regarding network
location, reservoirs can be located upstream of the
distribution network, for normal supply; or
downstream, to store unused water during hours of
lower demand and supply the network during hours
of higher consumption (Barros et al., 1995).
The water main stream is the largest-diameter
pipeline responsible for conveying water from the
treatment plant to the upstream reservoir. The main
pipelines are responsible for conveying water from
the reservoirs to the several connection points with
ramifications. This way, each stretch of the main
pipeline may have a reservoir and a connection point
or two connection points at its ends.
The main connection is the link between the two
networks, controlling the connection between a main
pipeline (larger diameter) and the network
ramifications (smaller diameter). Each stretch of the
ramification also has two more connection types,
one for connection between ramifications and
another one for connection between ramifications
and building ramifications, known as water-taking
device. The building ramification conveys water
from the public network to the consumer’s water
meter (hydrometer).
When nodes and arcs represent spatial objects, a
network is called spatially embedded. Examples of
this type of network include: road, electric power,
water and gas networks (Kösters et al., 1997). A
counter-example is the construction of a network
over adjacency relationships between
neighbourhoods of a city.
The concept of multiple inheritances in diagram
classes was chosen to elucidate the relationship
between the elements of a network and the
representation of spatial objects. To generate this
multiple inheritances cases, a class should be a
specialization of two order classes, for example,
GeographicObject and NetworkObject, and also, it
should associate the possible spatial representations
of both views. The replacement of these
specializations and associations are carried out by
using generalization and representation stereotypes.
It is still possible the use of multiple spatial
representations for objects view.
Figure 7 shows the UML-GeoFrame class
diagram designed for the water distribution system
in which most classes have four stereotypes. The
TreatmentPlant class, e.g., plays the role of node in
the main network with polygonal representation as
geographic object. The use of four spatial
stereotypes, in spite of simplifying diagram
visualization, did not avoid its overloading.
To prevent this situation, the UML-GeoFrame
has an important feature: the generalization
stereotypes can be left with no representation since
stereotypes of spatial representation for field, objects
and network views are disjoint groups. So, a class
can use only stereotypes of spatial representation.
Superclasses also assist designers and users since
they allow the identification of classes sharing
common features including generalization and
spatial representation.
The Figure 7 also shows that constructors for
aggregation and composition allow the definition of
the network(s) that the classes of type node and arc
belong to. Furthermore, the relationships between
arcs and nodes reduce the ambiguity during diagram
interpretation. The MainConnection class, for
example, aggregates to the Main and Secondary
networks, and relates to the Ramification and
MainPipelineStretch classes, connecting these two
networks.
Finally, Figure 7 also shows the use of
stereotypes for representation of unidirectional arcs.
Using this stereotype, it is possible to verify that
both networks in the example have a flow for water
distribution. However, it is not necessary the
presentation of some details such as initial and final
nodes. These issues are considered only in the
implementation phase, since the important thing
modeling this type of application is to determine the
type of network and its nodes and arcs.
EXTENDING THE UML-GEOFRAME DATA MODEL FOR CONCEPTUAL MODELING OF NETWORK
APPLICATIONS
169