| 1 |
\begin{tikzpicture} |
| 2 |
\begin{class}[text width=7cm]{Flight}{0,0} |
| 3 |
\attribute{flightNumber : Integer} |
| 4 |
\attribute{departureTime : Date} |
| 5 |
\attribute{flightDuration : Minutes} |
| 6 |
\attribute{departingAirport : String} |
| 7 |
\attribute{arrivingAirport : String} |
| 8 |
|
| 9 |
\operation{delayFlight ( numberOfMinutes : Minutes )} |
| 10 |
\operation{getArrivalTime ( ) : Date} |
| 11 |
\end{class} |
| 12 |
|
| 13 |
\begin{class}{Plane}{11,0} |
| 14 |
\attribute{airPlaneType : String} |
| 15 |
\attribute{maximumSpeed : MPH} |
| 16 |
\attribute{maximumDistance : Miles} |
| 17 |
\attribute{tailID : String} |
| 18 |
\end{class} |
| 19 |
|
| 20 |
\association{Plane}{assignedPlane}{0..1}{Flight}{0..*}{assignedFlights} |
| 21 |
|
| 22 |
\end{tikzpicture} |