forked from AY2324S1-CS2113-T18-4/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AY2324S1-CS2113-T18-4#183 from lckjosh/master
Include more class diagrams
- Loading branch information
Showing
9 changed files
with
152 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@startuml | ||
!import style.puml | ||
hide members | ||
hide circle | ||
|
||
enum ExpenseCategory <<enumeration>> | ||
enum AllowanceCategory <<enumeration>> | ||
interface TransactionCategory <<interface>> | ||
|
||
abstract class Command { | ||
+abstract void execute(TransactionList) | ||
} | ||
|
||
|
||
class Parser { | ||
} | ||
|
||
class Transaction { | ||
} | ||
|
||
Parser ..> Command : creates | ||
Parser ..> Transaction : creates | ||
|
||
Command ..> Transaction : uses | ||
|
||
Parser ..> TransactionCategory : uses | ||
Parser ..> AllowanceCategory : uses | ||
Parser ..> ExpenseCategory : uses | ||
|
||
ExpenseCategory ..|> TransactionCategory | ||
AllowanceCategory ..|> TransactionCategory | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@startuml | ||
hide members | ||
hide circle | ||
|
||
class Transaction | ||
class Expense | ||
class Allowance | ||
enum ExpenseCategory <<enumeration>> implements TransactionCategory | ||
enum AllowanceCategory <<enumeration>> implements TransactionCategory | ||
class Storage | ||
interface TransactionCategory <<interface>> | ||
class Parser | ||
class Nuscents | ||
class TransactionList | ||
abstract class Command | ||
|
||
TransactionList *-- Transaction : contains | ||
Transaction <|-- Expense | ||
Transaction <|-- Allowance | ||
Transaction "*"--> "1" TransactionCategory | ||
|
||
Nuscents "1" --> "1" Storage | ||
Nuscents "1" --> "1" TransactionList | ||
Nuscents "1" ..> "1" Parser | ||
Nuscents "1" ..> "1" Command | ||
|
||
Storage ..> TransactionList : uses | ||
|
||
Parser ..> Command : creates | ||
Parser ..> Transaction : creates | ||
Parser ..> TransactionCategory : uses | ||
|
||
Command ..> TransactionList : uses | ||
|
||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@startuml | ||
!import style.puml | ||
hide members | ||
hide circle | ||
|
||
Storage ..> "1" TransactionList : read/write | ||
Storage ..> Parser : uses > | ||
|
||
TransactionList *-- Transaction : contains > | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@startuml | ||
!import style.puml | ||
hide members | ||
hide circle | ||
skinparam classAttributeIconSize 0 | ||
package Ui as UI{ | ||
class Ui { | ||
- Scanner input | ||
+ String getUserCommand() | ||
+ {static} void showLine() | ||
+ {static} void showWelcomeMessage() | ||
+ {static} void showGoodbyeMessage() | ||
+ {static} void showException(Exception) | ||
+ {static} void showTransactionCount() | ||
+ {static} void showTransactionAddedMessage(Transaction) | ||
+ {static} void showTransactionRemovedMessage(Transaction) | ||
+ {static} void showTransactionList(TransactionList) | ||
- {static} String getNote(String) | ||
- {static} String getDescription(Transaction) | ||
+ {static} void showReadDataError() | ||
+ {static} void showTransactionViewMessage(Transaction) | ||
+ {static} void showFilterMessage(ArrayList<Transaction>,TransactionCategory) | ||
+ {static} void showFilterNotFoundMessage(TransactionCategory) | ||
+ {static} void showBudgetSet(TransactionList) | ||
+ {static} void showBudgetExpense(TransactionList) | ||
+ {static} void showHelpMenu() | ||
+ {static} void showFileAccessErrorMessage() | ||
+ {static} void showFatalErrorMessage() | ||
+ {static} void showDataCorruptedError() | ||
} | ||
class Messages | ||
} | ||
|
||
TransactionList ..> Ui | ||
Storage ..> Ui | ||
Nuscents --> Ui | ||
Command ..> Ui | ||
Ui ..> Messages | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.