autopercibido

This commit is contained in:
fede
2024-09-17 09:39:54 -03:00
parent aeef5fd562
commit 445669cae1
3 changed files with 97 additions and 0 deletions

BIN
Diploma/maquinaestado.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

52
Diploma/tp4.org Normal file
View File

@@ -0,0 +1,52 @@
#+title: Tp4
#+begin_src plantuml :file ejercicioApadaptador.jpg
class Cliente
class Balanza implements AdaptadorBalanza{
+ pesar()
}
interface IAdaptadorBalanza{
+ pesar()
- balanza: NuevaBalanza
}
class NuevaBalanza{
+ leerPeso()
}
Cliente --> Balanza: Utiliza
IAdaptadorBalanza "*" o--> "1" NuevaBalanza
#+end_src
#+begin_src plantuml :file tp4.jpg
class Compound{
# boilingPoint: float
# boilingPoint: float
# meltingPoint: float
# molecularWeight: double
# molecularFormula: string
+ <<Virtual>> Display(): void
}
class RichCompound extends Compound{
- chemical: string
- bank: ChemicalDatabank
+ RichCompound(string chemical)
+ <<override>> Display(): void
}
RichCompound "1" -r-> "1" ChemicalDatabank
class ChemicalDatabank{
+ GetCriticalPoint(string compound, string point): float
+ GetMolecularStructure(string compound): stirng
+ GetMolecularWeight(string compound): double
}
class Program
{
- compound: Compound
}
Program "1" -l-> "1" Compound
#+end_src

45
Diploma/tp5.org Normal file
View File

@@ -0,0 +1,45 @@
#+title: Tp5
#+begin_src plantuml :file maquinaestado.jpg
skinparam classAttributeIconSize 0
abstract class State{
# account: Account
# balance: double
# interest: double
# lowerLimit: double
# upperLimit: double
+ Account: Account
+ Balance: double
+ <<abstract>> Deposit(double amount): void
+ <<abstract>> Withdraw(double amount): void
+ <<abstract>> PayInterest(): void
}
class RedState extends State{
- serviceFee: double
+ RedState(State state)
- Initialize(): void
+ <<override>> Deposit(double amount): void
+ <<override>> Withdraw(double amount): void
+ <<override>> PayInterest(): void
- StateChangeCheck(): void
}
class SilverState extends State {
+ SilverState(State state) : this(state.Balance, state.Account)
+ SilverState(double balance, Account account)
- Initialize(): void
+ <<override>> void Deposit(double amount)
+ <<override>> Withdraw(double amount): void
+ <<override>> PayInterest(): void
- StateChangeCheck(): void
}
#+end_src
#+RESULTS:
[[file:maquinaestado.jpg]]