Exercise 02: ISO Standards and Profiles in UML Modelling

Goals of this exercise

In this Exercise, we will see in detail how ISO standards (Lecture 02: ISO 19107 Spatial Schema) are relevant in the context of creating modelling concepts for 3D City Modelling.

We have 4 scenarios in the following documentation. Each one represents one aspect of City Modelling.
  1. Street Space Modelling

  2. Water Body Modelling

  3. Building Modelling

  4. Vegetation Modelling

Each scenario is assigned to one group. You will all work in Groups and come up with UML Models for the given scenarios with a focus on Classes, stereotypes, relationships, Attributes and Datatypes.

  • Your task is to create a simple Road Network model in UML. A Road Network consists ofat least one road object can consist of moving objects. Model the scenario in UML by considering the following criteria:

    • A road object is categorised into Traffic Areas and Auxiliary Traffic Areas. A road object is spatially represented as a surface and a road object can be adjacent to other road objects.

    • The traffic areas are further categorised into vehicular lanes and pedestrian zones. Vehicular lanes are characterised by their lane type, surface material type, and data about last maintenance. The Last maintenance data consists of a date and time, name of the maintenance person.

    • A lane’s surface can be made out of ‘asphalt’, ‘gravel’,’ cobblestone’, etc. and the following lane types exist: ‘express’, ‘normal’, ‘bicycle’.

    • Pedestrian zones consist of information about whether or not they are barrier-free.

    • Auxiliary traffic areas have information on their type. This list includes the values ‘Kerbstones’, ‘Green Areas’, ‘Road Markings’, ‘Traffic Light’ etc.

    • Moving objects are characterised by their occupancy (i.e., how many passengers are transported with the moving object). Moving objects also have information about their ownership. The current position of moving objects is spatially represented by a point.

    • Each moving object is exactly inside one road lane at each point in time.

  • Your task is to create a ‘Water Body Map’ in UML. A water body map contains at least one Water Body and may also contain Built Structures that are related to these water bodies. Model the scenario according to the following criteria:

    • Water bodies are categorised into either Flowing water bodies or Still water bodies.

    • Still Water Bodies are spatially represented by areal geometry and are characterised by a name and an area. In addition, Still Water Bodies are specialized into the classes “NaturalSWB” (SWB = StillWaterBody) and “ArtificialSWB”.

    • A NaturalSWB can be of type: ‘puddle’, ‘pool’, ‘pond’ or ‘lake’.

    • An ArtificialSWB has a type and function. The function is a list of values - ‘Power Plant Reservoir’, ‘Fish Pond’, ‘Drinking Water Reservoir’, etc.

    • For Flowing Water Bodies, the spatial extent is represented by linear geometry. In addition, Flowing Water Bodies are characterized by a name, a flow velocity and length.

    • A Flowing Water Body can be differentiated into ‘brook’, ‘creek’, ‘stream’, or ‘river’.

    • A Flowing Water Body can flow into a Still Water Body, and the Still Water Body can be fed by Flowing water bodies.

    • A Flowing Water Body can also flow into another Flowing Water Body, which is referred to as a confluence.

    • Built Structures are characterized by their name and type. The type of built structures include ‘Bridge’, ‘Dam’, ‘Power Plant’ etc.

  • Your task is to model a building in UML based on the following criteria:

    • A city model consists of at least one building and a building can be composed of building parts.

    • Both buildings and building parts are modeled as volumetric objects and are characterized by their type of use and year of construction.

    • The available types of building use are: residential, commercial, and educational.

    • Each building has an address. The address is modeled as a point and is characterized by the street name, house number, postal code, and city.

    • Buildings and building parts can contain subdivisions, which are also modeled as volumetric bodies.

    • Subdivision are further specialized into rooms and floors.

    • Rooms are additionally characterized by a type of use. The available room types are: living, dining, kitchen, and working.

    • A building can contain any number of subdivisions.

    • A floor can contain any number of rooms. At the same time, rooms can extend over multiple floors.

  • Your task is to model a simple Vegetation Map in UML. Please consider the following criteria:

    • The Map should contain at least one Greenspace and may also contain Trees, and Paths.

    • Greenspaces are modeled as surfaces and are characterized by an address, their area, their name, and a number. The address is modeled as a point and is characterized by the name of the street, house number, postal code, and city.

    • Greenspaces can be further distinguished into Parks, Forests, and Grasslands

    • Trees are represented as points and are characterized by their type, height, health status, year of planting, and a number.

    • The health status of a tree provides descriptions of the nutritional state, possible trunk damage, diseases, and vermin infestations.

    • Trees can be distinguished into two categories Coniferous and Deciduous.

    • The following tree types exist: ‘beech’, ‘cherry’, ‘fir’, ‘oak’, ‘spruce’, ‘Maple’, ‘cedar’, ‘pine’

    • Multiple trees can be located in one Greenspace.

    • Paths are represented as lines and are characterized by their name.

    • Paths can lead through Greenspaces. The same path can lead through multiple Greenspaces and multiple Paths may lead through the same Greenspace.

    • Greenspaces can be adjacent to other Greenspaces.

Exercise Tasks

Task 1 - Group Work

This exercise will be a fun group activity where everyone is required to participate!

The groups will be chosen randomly when you scan the QR Code on the screen.

  • Each of the groups will analyse one of the above given scenarios (depending on the assigned group) and come up with a UML Model that best fits the description.

  • We will then have a short presentation/explanation session from each group.

What is expected in the presentation?

As a group you have to shortly (but with details) walk us through your thought process and how your UML model is the best fit for the given scenario. Please focus on these following points:

  • Classes and stereotypes

  • Relationships

  • Attributes, Datatypes (representation of ISO Geometries and Object Types)

  • Multiplicites

  • Abstract Concepts

Info

  • Each group will be given a flip chart and markers. The first task is expected to be done manually on paper after a thorough brainstorming session between group members. You can of course use digital media but the expected outcome is the concept and not the presentation.

Task 2 - ISO Compliant UML Modelling in Enterprise Architect {Additional/Optional}

PLEASE NOTE

  • Enterprise Architect has a NEW ACTIVATION CODE for registration: 38TW

  • A detailed documentation on how to use Enterprise Architect is provided in Enterprise Architect. If not already familiar, please use the documentation given to familiarise yourself with Enterprise Architect environment before you begin modelling.

Once the UML model is discussed and presented, please recreate it in Enterprise Architect using the UML Profiles (for Stereotypes) and the XMI files (for ISO standards) given here.

Info

  • The stereotypes can be found in the UML Profile provided here Data Repository and on Moodle

  • The geometry classes from ISO 19107 and the object classes from ISO 19109 are to be used in the modelling.

Submission

  • Submit the final UML {corrected after the presentation-feedback round} model as an EA project, screenshot, .pptx, or any other relevant file type.