arc hydrology data model an overview of the modeling process kim davis and tim whiteaker center for...
TRANSCRIPT
![Page 1: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/1.jpg)
Arc Hydrology Data Model
An Overview of the Modeling Process
Kim Davis and Tim Whiteaker
Center for Research in Water ResourcesUniversity of Texas at Austin
![Page 2: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/2.jpg)
Introduction• UML—What it is, How to read it• CASE tools—What they are, How they
are used• Build the UML Model with CASE tools• Export to a Repository• Generate C++ code (make a .dll)• Create the schema in ArcInfo 8.0• Do Cool, Fun Stuff…
![Page 3: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/3.jpg)
UML• Unified Modeling Language• Graphical interface to computer
languages• A higher evolution of flow-charts• The standard vocabulary for
Object-Oriented Programming
![Page 4: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/4.jpg)
How to read the UML• Classes (Objects)• Inheritance (Is a kind of…)• Subtypes (Is a specific type of…)• Composition (Is made of…)• Aggregation (Is loosely made of…)
![Page 5: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/5.jpg)
How to read the UML• Classes (Objects)
Have Name Have Attributes Have Methods May have
Extensions May have
Interfaces May participate in
relationships
![Page 6: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/6.jpg)
How to read the UML• Inheritance
(Is a kind of…) Alternatively called
Generalization Passes Attributes down
the diagram tree Passes Methods down
the tree Classes involved are
called Parent and Child Children are also called
Sub-classes
HydroStructure is akind of HydroPoint
HydroPoint is a generalization of HydroStructure
![Page 7: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/7.jpg)
More on Inheritance
Of HydroStructure
![Page 8: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/8.jpg)
How to read the UML
• Subtypes(Is a specific type of…) Used for different
“flavors” of the same object
Have the EXACT same attributes
May have different default values for those attributes
![Page 9: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/9.jpg)
How to read the UML• Composition
(Is made of…) Parent controls
lifetime of Child Implemented in
database by use of key fields (Table Linking)
![Page 10: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/10.jpg)
How to read the UML
• Aggregation(Is loosely made of…) Classes exist
independently of each other
Implemented in database by use of key fields (Table Linking)
![Page 11: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/11.jpg)
CASE tools—Intro • CAD=Computer Aided Drafting• CASE=Computer Aided Software
Engineering• Well suited to modern programs
(object oriented vs. menu driven)• Examples: Visio
Enterprise/Professional, Rational ROSE, ObjectDomain
![Page 12: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/12.jpg)
CASE tools—What they do• Began as flow chart converters• Automate programming tasks
which are repetitive and subject to human error
• Provide graphical format that eases transfer and comprehension of software architecture
![Page 13: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/13.jpg)
CASE tools—ExampleDocument Window
Standard Shapes
“Table of Contents”
![Page 14: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/14.jpg)
Build the UML Model with CASE tools• Decide what objects to create
Brainstorm Continuous refining
• Determine what attributes they have Enough to clearly define object Minimum set to practice good modeling
• Devise methods to give custom behaviors
• Delineate relationships required
![Page 15: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/15.jpg)
Generate C++ Code• Creates the objects you have
designed so ArcInfo can use them• Implements the relationships and
behaviors• Results in a .dll (dynamic link
library) which contains the objects• Add custom code if desired
![Page 16: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/16.jpg)
Create Schema in ArcInfo 8.0• Creates empty tables in the geodatabase• Establishes relationships automatically• Looks to the .dll for information on
custom classes• Allows user to choose which classes to
instantiate• Allows last-minute editing of certain
properties
![Page 17: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/17.jpg)
Schema Creation
• Allows user to choose which classes to instantiate
• Allows last-minute editing of certain properties
![Page 18: Arc Hydrology Data Model An Overview of the Modeling Process Kim Davis and Tim Whiteaker Center for Research in Water Resources University of Texas at](https://reader035.vdocuments.net/reader035/viewer/2022070400/56649e5e5503460f94b582d1/html5/thumbnails/18.jpg)
Do Cool, Fun Stuff
• Learn more through ESRI tutorials
UML - Visio EnterpriseC++ Code
GenerationSchema Creation
• Nifty Network Demo