-
Notifications
You must be signed in to change notification settings - Fork 1
LinkedList e LinkedListOff #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Here's the translation of the review guide to Italian: Guida per Revisori di SourceryQuesta pull request introduce una nuova classe LinkedListOff che eredita da LinkedList e sostituisce il metodo insert. Inoltre, cambia il modificatore di accesso della classe Node da privato a protetto. Diagramma delle classi che mostra l'ereditarietà di LinkedList e LinkedListOffclassDiagram
class LinkedList {
-Node head
-Node tail
+LinkedList()
+LinkedList(Dispositivo& dispositivo)
+virtual insert(Dispositivo& dispositivo)
+removeDispositivoName(string nome) Dispositivo*
+removeDispositivoId(int id) Dispositivo*
+removeAllDispositiviOff(int currentTime) vector~Dispositivo*~
+removeTimer(string nome) void
+removeAllTimers() void
+isEmpty() bool
+show(string nome) double
+showAll() string
}
class Node {
+Dispositivo* dispositivo
+Node* next
+Node* prev
+Node(Dispositivo& dispositivo)
}
class LinkedListOff {
+insert(Dispositivo& dispositivo) override
}
LinkedList <|-- LinkedListOff
LinkedList *-- Node
note for LinkedList "Modificato Node da privato a protetto"
note for LinkedListOff "Nuova classe che sostituisce il metodo insert"
Modifiche a Livello di File
Suggerimenti e comandiInterazione con Sourcery
Personalizzazione della Tua EsperienzaAccedi alla tua dashboard per:
Ottenere Aiuto
Original review guide in EnglishReviewer's Guide by SourceryThis pull request introduces a new class LinkedListOff that inherits from LinkedList and overrides the insert method. It also changes the access modifier of the Node class from private to protected. Class diagram showing LinkedList and LinkedListOff inheritanceclassDiagram
class LinkedList {
-Node head
-Node tail
+LinkedList()
+LinkedList(Dispositivo& dispositivo)
+virtual insert(Dispositivo& dispositivo)
+removeDispositivoName(string nome) Dispositivo*
+removeDispositivoId(int id) Dispositivo*
+removeAllDispositiviOff(int currentTime) vector~Dispositivo*~
+removeTimer(string nome) void
+removeAllTimers() void
+isEmpty() bool
+show(string nome) double
+showAll() string
}
class Node {
+Dispositivo* dispositivo
+Node* next
+Node* prev
+Node(Dispositivo& dispositivo)
}
class LinkedListOff {
+insert(Dispositivo& dispositivo) override
}
LinkedList <|-- LinkedListOff
LinkedList *-- Node
note for LinkedList "Changed Node from private to protected"
note for LinkedListOff "New class that overrides insert method"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ciao @MochaSummer2588 - Ho esaminato le tue modifiche - ecco alcuni feedback:
Commenti generali:
- L'implementazione di LinkedListOff::insert() è identica alla classe base. Se non c'è un comportamento specializzato, considera se l'ereditarietà sia necessaria.
- Lo scopo di LinkedListOff non è chiaro - il nome suggerisce che gestisca dispositivi 'off' ma l'implementazione non lo riflette. Considera di aggiungere un comportamento specializzato o di riprogettare la struttura.
Ecco cosa ho esaminato durante la revisione
- 🟢 Problemi generali: tutto sembra a posto
- 🟢 Sicurezza: tutto sembra a posto
- 🟢 Test: tutto sembra a posto
- 🟢 Complessità: tutto sembra a posto
- 🟢 Documentazione: tutto sembra a posto
Il tuo periodo di prova scade l'11 gennaio 2025. Per favore aggiorna per continuare a utilizzare Sourcery ✨
Aiutami a essere più utile! Per favore clicca 👍 o 👎 su ogni commento e userò il feedback per migliorare le tue revisioni.Original comment in English
Hey @MochaSummer2588 - I've reviewed your changes - here's some feedback:
Overall Comments:
- The LinkedListOff::insert() implementation is identical to the base class. If there's no specialized behavior, consider whether inheritance is necessary here.
- The purpose of LinkedListOff is unclear - the name suggests it handles 'off' devices but the implementation doesn't reflect this. Consider either adding the specialized behavior or restructuring the design.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Your trial expires on January 11, 2025. Please upgrade to continue using Sourcery ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Riepilogo di Sourcery
Nuove Funzionalità:
LinkedListOffche eredita daLinkedListper gestire dispositivi offline.Original summary in English
Summary by Sourcery
New Features:
LinkedListOffclass inheriting fromLinkedListto handle offline devices.