oc-lib/doc/model.puml

137 lines
2.1 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
2024-07-19 10:54:58 +02:00
+element: DataResource/ProcessingResource/StorageResource/Workflow/DatacenterResource
2024-07-04 16:08:59 +02:00
}
2024-07-19 10:54:58 +02:00
class DataResource {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+name: string
}
2024-07-19 10:54:58 +02:00
class ProcessingResource {
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
}
2024-07-19 10:54:58 +02:00
class StorageResource {
2024-07-16 10:56:36 +02:00
+UUID: int
2024-07-04 16:08:59 +02:00
+name: string
+url: string
+capacity: int
}
2024-07-19 10:54:58 +02:00
class DatacenterResource {
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-19 10:54:58 +02:00
+datacenter: DatacenterResource
2024-07-04 16:08:59 +02:00
+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
2024-07-19 10:54:58 +02:00
Ressource <|-- DataResource
Ressource <|-- ProcessingResource
Ressource <|-- StorageResource
Ressource <|-- DatacenterResource
2024-07-04 16:08:59 +02:00
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