Skip to content

Commit

Permalink
Merge pull request #118 from farshidtz/info-model-refine
Browse files Browse the repository at this point in the history
Refine the information model
  • Loading branch information
mmccool authored Feb 15, 2021
2 parents 603557d + fcfb5bf commit a097dbf
Show file tree
Hide file tree
Showing 5 changed files with 194 additions and 137 deletions.
24 changes: 24 additions & 0 deletions images/directory-class-diagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@startuml directory-class-diagram
/' global configurations '/
hide methods

class Directory <<service>>
hide Directory members

class TD as "td:Thing"
hide TD members
note left: Thing Description (TD)

class RI as "tdd:RegistrationInfo" {
tdd:created {readOnly}
' tdd:expires
tdd:id {readOnly}
tdd:modified {readOnly}
' tdd:ttl
}

Directory "1" o-- "0..*" TD: contains
TD "1" *-- "0..1" RI


@enduml
61 changes: 61 additions & 0 deletions images/directory-class-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 22 additions & 37 deletions images/exploration-class-diagram.puml
Original file line number Diff line number Diff line change
@@ -1,46 +1,31 @@
@startuml exploration-class-diagram
/' global configurations '/
hide methods
hide members

class Thing <<service>>
together {
class SelfDesc as "Self-describing Thing" <<service>>
class Directory <<service>>
}

class TD as "td:Thing"
class DD as "discovery:DirectoryDescription"
class LD as "discovery:LinkDescription"
class RI as "tdd:RegistrationInfo"
note right: Thing Description (TD)
together {
class DD as "discovery:DirectoryDescription"
' note bottom: TD that describes\na Directory

class LD as "discovery:LinkDescription"
' note bottom: TD that describes\na reference to another TD
}

/' relations '/
Thing "1" --> "0..1 " TD: exposes
Directory "1 " --> "0..*" TD: contains
TD *-right- RI
Thing <|-- SelfDesc
Thing <|-- Directory
SelfDesc "1" o-- "0..1 " TD: provides
TD <|-- DD
TD <|-- LD
Directory "1" o-- "0..*" TD: contains

/' classes and notes '/
class Thing << service >>
class Directory << service >>
class TD {
tdd:registration
...
}
note left: Thing Description (TD)
class RI {
tdd:created {readOnly}
' tdd:expires
tdd:id {readOnly}
tdd:modified {readOnly}
' tdd:ttl
}
together {
class DD {
...
}
note bottom: TD that describes\na Directory

class LD {
...
}
note bottom: TD that describes\na reference to another TD
}

/' configurations '/
hide Directory members
hide Thing members
' hide members
hide methods
@enduml
Loading

0 comments on commit a097dbf

Please sign in to comment.