forked from nus-cs2113-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #175 from FeathersRe/UG-DG-Updates-v2.1
UG-DG-Updates-v2.1
- Loading branch information
Showing
9 changed files
with
337 additions
and
47 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,27 @@ | ||
@startuml | ||
participant ":TransactionList" as Foo1 | ||
participant ":Transaction" as Foo2 | ||
participant ":DateTime" as Foo3 | ||
participant ":LongAhException" as Foo4 | ||
[-> Foo1 : ""addTransaction(taskExpression, members)"" | ||
Foo1 -> Foo1:addTransaction(expression,memberList) | ||
Foo1 -> Foo2: new Transaction(expression, memberList) | ||
Foo2 -> Foo2:parseTransaction(expression, memberList) | ||
alt expression contains dateTimeExpression | ||
Foo2 -> Foo3:new DateTime(dateTimeExpression) | ||
alt dateTimeExpression is valid | ||
Foo3 --> Foo2: DateTime object created | ||
Foo2 -> Foo2: Transaction DateTime added | ||
ref over Foo2: Adding other transaction details | ||
Foo2 --> Foo1: Transaction object created | ||
Foo1 --> Foo1: Transaction added | ||
Foo1 -->[ : | ||
else dateTimeExpression is not in format | ||
Foo3 -> Foo4:LongAhException(invalid dateTime format) | ||
ref over Foo4: Handling Invalid DateTime Format | ||
else dateTimeExpression is of future | ||
Foo3 -> Foo4: LongAhException(invalid dateTime input) | ||
ref over Foo4: Handling Invalid DateTime Input | ||
end | ||
end | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,19 @@ | ||
@startuml | ||
participant ":TransactionList" as Foo | ||
participant ":Transaction" as Foo1 | ||
participant ":DateTime" as Foo2 | ||
[-> Foo:""filterTransactionsEqualToDateTime(dateTimeExpression)"" | ||
Foo -> Foo2:new DateTime(dateTimeExpression) | ||
Foo2 --> Foo: DateTime object of user input created | ||
loop for Transaction in Transactionlist | ||
Foo -> Foo1: transaction.getTransactionTime() | ||
Foo1 --> Foo: DateTime object of transaction | ||
Foo -> Foo2: transactionDateTime.isEqual(userDateTime) | ||
Foo2 --> Foo: Boolean determining whether the two DateTimes are equal | ||
alt two DateTimes are equal | ||
ref over Foo1:Generate transaction printout | ||
Foo1 --> Foo:Added Transaction to Transactionlist printout | ||
end | ||
end | ||
Foo -->[ : ""Transactionlist printout"" | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 @@ | ||
@startuml | ||
participant ":Transaction" as Foo | ||
participant ":DateTime" as Foo1 | ||
[-> Foo:""toString()"" | ||
alt Transaction has dateTime | ||
Foo -> Foo1:toString() | ||
Foo1 --> Foo: String representing dateTime | ||
Foo -> Foo: Added String dateTime to printout | ||
end | ||
ref over Foo:Adding other transaction details to printout | ||
Foo -->[ : ""Transaction printout"" | ||
@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