170 likes | 180 Vues
Object-Oriented Design of Spatial Entities Todd Bacastow. Object-Oriented Design. an approach used to specify the software solution in terms of collaborating objects, their attributes, and their methods. MyClassName. + SomePublicAttribute : SomeType - SomePrivateAttribute : SomeType
E N D
Object-Oriented Design • an approach used to specify the software solution in terms of collaborating objects, their attributes, and their methods.
MyClassName +SomePublicAttribute : SomeType -SomePrivateAttribute : SomeType #SomeProtectedAttribute : SomeType +ClassMethodOne() +ClassMethodTwo() Responsibilities -- can optionally be described here. Parts of a Class • Classes can have four parts • Name • Attributes • Operations • Responsibilities • Classes can show visibility and types. • All parts but the Name are optional.
What’s Unique About Spatial? • Topology rules – e.g., political boundaries • Semantic integrity – e.g., roads do not run through structures • User defined business rules – e.g., one way streets