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.
- Loading branch information
1 parent
641cb7f
commit 40c4d77
Showing
9 changed files
with
194 additions
and
5 deletions.
There are no files selected for viewing
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
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.
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,24 @@ | ||
@startuml | ||
'https://plantuml.com/component-diagram | ||
|
||
|
||
|
||
Actor User as user | ||
|
||
user ..> [omnitravel] | ||
|
||
[omnitravel] --> "passes data"[parser] | ||
[omnitravel] --> "Load/save"[storage] | ||
[omnitravel] --> "uses" [ui] | ||
[parser] --> "uses" [ui] | ||
[parser] --> "uses" [exchangerateapi] | ||
[parser] --> "uses" [errorhandlers] | ||
[storage] --> "uses" [travelactivitytype] | ||
[travelactivitytype] --> "uses" [ui] | ||
[travelactivitytype] --> "uses" [errorhandlers] | ||
[errorhandlers] --> "uses" [ui] | ||
[parser] --> "uses" [travelactivitytype] | ||
folder "omni.txt" as folder | ||
folder .. [storage] | ||
|
||
@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,30 @@ | ||
@startuml | ||
'https://plantuml.com/class-diagram | ||
skinparam packageStyle rectangle | ||
hide class members | ||
package errorhandlers{ | ||
class CheckParameters | ||
class OmniException | ||
class Exception | ||
} | ||
|
||
package travelactivitytypes{ | ||
} | ||
|
||
package parser{ | ||
} | ||
|
||
package ui{ | ||
} | ||
|
||
|
||
|
||
|
||
OmniException --|> Exception | ||
CheckParameters ..> OmniException | ||
CheckParameters --> ui | ||
parser --> CheckParameters | ||
travelactivitytypes --> CheckParameters | ||
|
||
|
||
@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,25 @@ | ||
@startuml | ||
'https://plantuml.com/class-diagram | ||
skinparam packageStyle rectangle | ||
hide class members | ||
package travelactivitytype{ | ||
class TravelActivity | ||
class Food | ||
class Landmark | ||
class Accommodation | ||
class TravelActivityList | ||
} | ||
Food --|> TravelActivity | ||
Landmark --|> TravelActivity | ||
Accommodation --|> TravelActivity | ||
TravelActivityList --> "*" TravelActivity | ||
TravelActivityList --> ui | ||
parser --> TravelActivityList | ||
package ui{ | ||
|
||
} | ||
|
||
package parser{ | ||
|
||
} | ||
@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,32 @@ | ||
@startuml | ||
'https://plantuml.com/class-diagram | ||
skinparam classAttributeIconSize 0 | ||
class OmniTravel{ | ||
-invokeCommand(command: String[], line: String, list: TravelActivityList): void | ||
} | ||
|
||
class Parser{ | ||
+updateCommand(line: String, list: TravelActivityList): void | ||
} | ||
class CheckParameters{ | ||
+updateExceptions(command: String[], line: String): void | ||
+containsWords(input String): void | ||
} | ||
class TravelActivityList{ | ||
+updateTravelActivity(travelActivityNumber: int, date: LocalDate, duration: String, tag: String): void | ||
} | ||
class TravelActivity{ | ||
+setDate(date: LocalDate): void | ||
+setDuration(duration: String): void | ||
+setTag(tag: String): void | ||
} | ||
class Ui{ | ||
+printLine(): void | ||
} | ||
OmniTravel ..> Ui | ||
OmniTravel ..> Parser | ||
Parser --> TravelActivityList | ||
TravelActivityList --> "*"TravelActivity | ||
TravelActivityList ..> CheckParameters | ||
|
||
@enduml |