Skip to content

Commit 3502c63

Browse files
committed
seven commit
2 parents e44d738 + 0c75776 commit 3502c63

14 files changed

+4493
-98
lines changed

LANGCHAIN/activity/class_diagram.puml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
**PlantUML Script:**
2+
```plantuml
3+
@startuml
4+
class Airline {
5+
- id: String
6+
- aircrafts: List<Aircraft>
7+
- pilots: List<Pilot>
8+
+ operateFlight(Flight): void
9+
}
10+
11+
class Flight {
12+
- id: String
13+
- departureAirport: String
14+
- arrivalAirport: String
15+
- departureTime: Time
16+
- arrivalTime: Time
17+
- pilot: Pilot
18+
- coPilot: Pilot
19+
- aircraft: Aircraft
20+
+ scheduleFlight(): void
21+
+ updateFlightStatus(): void
22+
}
23+
24+
class Aircraft {
25+
- id: String
26+
- type: String
27+
- status: String
28+
- location: String
29+
+ updateStatus(): void
30+
+ updateLocation(): void
31+
}
32+
33+
class Pilot {
34+
- id: String
35+
- experienceLevel: Integer
36+
- role: String
37+
+ updateExperienceLevel(): void
38+
+ assignRole(): void
39+
}
40+
41+
Airline "1" -- "*" Flight
42+
Flight "1" -- "1" Pilot
43+
Flight "1" -- "1" Aircraft
44+
Airline "1" -- "*" Aircraft
45+
Airline "1" -- "*" Pilot
46+
@enduml
47+
```
48+
This script represents the classes Airline, Flight, Aircraft, and Pilot with their respective attributes and methods. The relationships between these classes are also depicted.
641 KB
Binary file not shown.
792 KB
Binary file not shown.
81.3 KB
Binary file not shown.

LANGCHAIN/activity/main.ipynb

+709
Large diffs are not rendered by default.

LANGCHAIN/activity/main2.ipynb

+2,532
Large diffs are not rendered by default.
20.7 MB
Binary file not shown.

LANGCHAIN/class2/class_diagram.puml

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
@startuml
2+
3+
class TicketDistributor {
4+
ID
5+
}
6+
7+
class Passenger {
8+
ID
9+
type
10+
isFrequentTraveler
11+
}
12+
13+
class Ticket {
14+
ID
15+
type
16+
price
17+
departureTime
18+
date
19+
time
20+
validFrom
21+
validTill
22+
validityDuration
23+
issuedFrom
24+
destinationStation
25+
}
26+
27+
class MetroPass {
28+
ID
29+
type
30+
validityDuration
31+
}
32+
33+
class TimeCard {
34+
ID
35+
type
36+
validityDuration
37+
}
38+
39+
class Transaction {
40+
ID
41+
status
42+
amount
43+
}
44+
45+
class DisplayInterface {
46+
type
47+
}
48+
49+
class PaymentMethod {
50+
type
51+
}
52+
53+
class CurrencyNote {
54+
ID
55+
isOriginal
56+
value
57+
}
58+
59+
class Error {
60+
ID
61+
type
62+
message
63+
}
64+
65+
class ErrorMessage {
66+
message
67+
}
68+
69+
class TouchScreen {
70+
size
71+
}
72+
73+
TicketDistributor *-- Ticket : TicketDistributor issues and manages Tickets; Tickets cannot exist independently without the distributor.
74+
TicketDistributor --> MetroPass : TicketDistributor reads and processes MetroPass information.
75+
TicketDistributor --> TimeCard : TicketDistributor reads and processes TimeCard information.
76+
TicketDistributor *-- Transaction : TicketDistributor initiates and manages Transactions; Transactions are meaningless without the distributor.
77+
TicketDistributor --> PaymentMethod : TicketDistributor processes payments using various PaymentMethods.
78+
TicketDistributor --> CurrencyNote : TicketDistributor handles CurrencyNotes for cash payments.
79+
TicketDistributor *-- DisplayInterface : TicketDistributor uses a DisplayInterface; the interface is part of the distributor and cannot exist independently.
80+
TicketDistributor *-- TouchScreen : TicketDistributor uses a TouchScreen; the touchscreen is part of the distributor and cannot exist independently.
81+
TicketDistributor --> Error : TicketDistributor handles and reports Errors.
82+
TicketDistributor --> ErrorMessage : TicketDistributor displays ErrorMessages.
83+
Passenger --> Ticket : Passenger purchases Tickets.
84+
Passenger --> MetroPass : Passenger may use a MetroPass.
85+
Passenger --> TimeCard : Passenger may use a TimeCard.
86+
Transaction --> PaymentMethod : Transaction uses a PaymentMethod.
87+
Error *-- ErrorMessage : An Error contains an ErrorMessage; the message is part of the error and cannot exist independently.
88+
89+
@enduml

LANGCHAIN/class2/class_diagram2.puml

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
@startuml
2+
3+
class TicketDistributor {
4+
ID
5+
}
6+
7+
class Passenger {
8+
ID
9+
type
10+
isFrequentTraveler
11+
}
12+
13+
class Ticket {
14+
ID
15+
type
16+
price
17+
departureTime
18+
date
19+
time
20+
validFrom
21+
validTill
22+
validityDuration
23+
issuedFrom
24+
destinationStation
25+
}
26+
27+
class MetroPass {
28+
ID
29+
type
30+
validityDuration
31+
}
32+
33+
class TimeCard {
34+
ID
35+
type
36+
validityDuration
37+
}
38+
39+
class Transaction {
40+
ID
41+
status
42+
amount
43+
}
44+
45+
class DisplayInterface {
46+
type
47+
}
48+
49+
class PaymentMethod {
50+
type
51+
}
52+
53+
class CurrencyNote {
54+
ID
55+
isOriginal
56+
value
57+
}
58+
59+
class Error {
60+
ID
61+
type
62+
message
63+
}
64+
65+
class ErrorMessage {
66+
message
67+
}
68+
69+
class TouchScreen {
70+
size
71+
}
72+
73+
TicketDistributor *-- Ticket : TicketDistributor
74+
TicketDistributor --> MetroPass : TicketDistributor
75+
TicketDistributor --> TimeCard : TicketDistributor
76+
TicketDistributor *-- Transaction : TicketDistributor
77+
TicketDistributor --> PaymentMethod : TicketDistributor
78+
TicketDistributor --> CurrencyNote : TicketDistributor
79+
TicketDistributor *-- DisplayInterface : TicketDistributor
80+
TicketDistributor *-- TouchScreen : TicketDistributor
81+
TicketDistributor --> Error : TicketDistributor
82+
TicketDistributor --> ErrorMessage : TicketDistributor
83+
Passenger --> Ticket : Passenger
84+
Passenger --> MetroPass : Passenger
85+
Passenger --> TimeCard : Passenger
86+
Transaction --> PaymentMethod : Transaction
87+
Error *-- ErrorMessage : An
88+
89+
@enduml

0 commit comments

Comments
 (0)