oc-lib/doc/model.puml

137 lines
2.0 KiB
Plaintext
Raw Normal View History

2024-07-04 16:08:59 +02:00
@startuml oclib
abstract Ressource {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-05 17:41:40 +02:00
+name: string
+icon: string
+description: string
+graphic: GraphicElement
+element: Data/Processing/Storage/Workflow/Datacenter
2024-07-04 16:08:59 +02:00
}
class Data {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+name: string
}
class Processing {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+name: string
+container: string
+command: int
2024-07-05 17:41:40 +02:00
+environment: int
2024-07-04 16:08:59 +02:00
}
class Storage {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+name: string
+url: string
+capacity: int
}
class Datacenter {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+name: string
}
class Workflow {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+name: string
}
class ResourceSet {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+name: string
+ressources: Ressource[]
}
class WorkflowSchedule {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+start: date
+end: date
+cron : string
}
class Graph {
2024-07-16 10:56:36 +02:00
+UUID: int
+ressources: map[GraphicElement.UUID]Ressource
2024-07-05 17:41:40 +02:00
+links: Link[]
2024-07-04 16:08:59 +02:00
}
class Link {
2024-07-16 10:56:36 +02:00
+UUID: int
+source: GraphicElement.UUID
+target: GraphicElement.UUID
2024-07-11 16:52:26 +02:00
+graphic: GraphicLink
2024-07-05 17:41:40 +02:00
}
class GraphicLink {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-05 17:41:40 +02:00
+startXY: coord
+endXY: coord
+style: string
}
class GraphicElement {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-05 17:41:40 +02:00
+style: string
+xy: coord
2024-07-04 16:08:59 +02:00
}
class Calendar {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+name: string
+workflows: Workflow[]
+owner: string
}
class UserWorkflows {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+user: string
+workflows: Workflow[]
}
class DatacenterWorkflows {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+datacenter: Datacenter
+workflows: Workflow[]
}
2024-07-05 17:41:40 +02:00
class Graph {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-05 17:41:40 +02:00
+graph: Graph
+workflows: Workflow[]
}
2024-07-04 16:08:59 +02:00
UserWorkflows "1" o-- "0..*" Workflow
DatacenterWorkflows "1" o-- "0..*" Workflow
Ressource <|-- Data
Ressource <|-- Processing
Ressource <|-- Storage
Ressource <|-- Datacenter
Ressource <|-- Workflow
ResourceSet "1" o-- "0..*" Ressource
Workflow "1" o-- "0..*" ResourceSet
2024-07-16 10:56:36 +02:00
Workflow "1" o-- "0..1" WorkflowSchedule
2024-07-04 16:08:59 +02:00
Workflow "1" o-- "0..*" Graph
2024-07-11 16:52:26 +02:00
Graph "1" o-- "0..*" Resources
2024-07-04 16:08:59 +02:00
Graph "1" o-- "0..*" Link
2024-07-11 16:52:26 +02:00
Ressource --o GraphicElement
2024-07-05 17:41:40 +02:00
Link -- GraphicLink
2024-07-04 16:08:59 +02:00
Calendar "1" o-- "0..*" Workflow
2024-07-11 16:52:26 +02:00
2024-07-04 16:08:59 +02:00
@enduml