This repository has been archived on 2025-02-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-1/Ingenieria de Software/comsite diagrama.puml

33 lines
740 B
Plaintext

@startuml
package RealWorldExample{
abstract DrawingElement {
# name: string
+ DrawingElement(name: string)
+ virutal Add(DrawingElement)
+ virutal Remove(DrawingElement)
+ virutal Display(indent: int)
}
class PrimitiveElement extends DrawingElement{
+ PrimitiveElement(name: string)
+ Add(DrawingElement)
+ Remove(DrawingElement)
+ Display(indent: int)
}
class CompositeElement extends DrawingElement{
+ CompositeElement(name: string)
- elements: List<DrawingElement>
+ Add(DrawingElement)
+ Remove(DrawingElement)
+ Display(indent: int)
}
class Program
Program -l-> DrawingElement: " "
CompositeElement "1" o-l--- "*" PrimitiveElement: " "
}
@enduml