par de cosas que me faltaba commitear

This commit is contained in:
2024-10-18 07:40:00 -03:00
parent 0a78486bb9
commit 9cc44961af
4 changed files with 40 additions and 0 deletions

40
Diploma/strategy.plant Normal file
View File

@@ -0,0 +1,40 @@
@startuml
class Program{
+ static void Main(string[] args)
}
abstract class SortStrategy
{
+ <<abstract>> void Sort(List<string> list);
}
class QuickSort extends SortStrategy
{
+ <<override>> void Sort(List<string> list)
}
class ShellSort extends SortStrategy
{
+ <<override>> void Sort(List<string> list)
}
class MergeSort extends SortStrategy
{
+ <<override>> void Sort(List<string> list)
}
class SortedList
{
- List<string> list = new List<string>();
- SortStrategy sortstrategy;
+ void SetSortStrategy(SortStrategy sortstrategy)
+ void Add(string name)
+ void Sort()
}
Program -l-> SortedList
SortedList "1..*" o--> "1" SortStrategy
@enduml

BIN
Diploma/strategy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB