digraph G {
    fontname="Bitstream Vera Sans"
    fontsize=8
    node [
        fontname="Bitstream Vera Sans"
        fontsize=8
        shape=record,
    ]
    edge [
        fontname="Bitstream Vera Sans"
        fontsize=8
    ]

    // Interfaces
    IReservation [
        label="{<<Interface>>\nIReservation|+ ReservationType(): String\l+ getReservation_number(): String\l+ getAccountNumber(): String\l+ getPhysical_address(): Address\l+ calculatePrice(): float\l+ checkValid(): boolean\l}"
    ]

    // Abstract Classes
    Reservation [
        label="{Abstract\nReservation|- type: char\l- reservation_number: String\l- physical_address: Address\l- mailing_address: Address\l- reservation_start_date: ZonedDateTime\l- reservation_end_date: ZonedDateTime\l- reservation_status: ReservationStatusEnum\l- kitchen: KitchenTypeEnum\l- numberOfBeds: Integer\l- price: Float\l# accountNumber: String\l|+ setReservation_number(String): void\l+ getReservation_number(): String\l+ setAccountNumber(String): void\l+ getAccountNumber(): String\l+ Write(Reservation): void\l+ Change(Reservation, ReservationStatusEnum): void\l+ update(Reservation): void\l+ calculatePrice(): float\l+ ReservationType(): String\l}"
    ]

    // Concrete Classes
    HotelReservation [
        label="{HotelReservation|+ ReservationType(): String\l+ checkValid(): boolean\l+ calculatePrice(): float\l}"
    ]

    HouseReservation [
        label="{HouseReservation|+ ReservationType(): String\l+ checkValid(): boolean\l+ calculatePrice(): float\l}"
    ]

    CabinReservation [
        label="{CabinReservation|+ ReservationType(): String\l+ checkValid(): boolean\l+ calculatePrice(): float\l}"
    ]

    Account [
        label="{Account|- account_number: String\l- phone_number: String\l- mailing_address: Address\l- email_address: EmailAddress\l- reservations: AccountReservationList\l|+ add(Reservation): boolean\l+ Write(Account): void\l+ findReservation(String): Reservation\l+ getAllReservations(): ListIterator<IReservation>\l}"
    ]

    AccomodationManager [
        label="{AccomodationManager|- accounts: AccountList\l|+ loadAll(): void\l+ retrieveAccount(String): Account\l+ AddAccount(Account): void\l+ UpdateAccount(Account): void\l+ addReservation(Account, Reservation): boolean\l+ findReservation(String): Reservation\l}"
    ]

    DataRepository [
        label="{<<Singleton>>\nDataRepository|- directoryPath: String\l|+ setDataStoreRoot(String): void\l+ getPath(): String\l+ Reservation(String): Reservation\l+ LoadAccount(Path): Account\l- loadReservation(...): void\l}"
    ]

    Address [
        label="{Address|- street: String\l- city: String\l- state: String\l- zip: String\l}"
    ]

    EmailAddress [
        label="{EmailAddress|- email_address: String\l}"
    ]
    
    TestReservations [
        label="{TestReservations|+ main(String[]): void\l}"
    ]

    // Enumerations
    ReservationStatusEnum [
        label="{<<Enumeration>>\nReservationStatusEnum|Draft\lCanceled\lCompleted\l}"
    ]

    KitchenTypeEnum [
        label="{<<Enumeration>>\nKitchenTypeEnum|None\lKitchenette\lFullKitchen\l}"
    ]

    AccountList [
        label="{AccountList|+ add(Account): boolean\l+ save(Account): void\l+ find(String): Account\l}"
    ]

    AccountReservationList [
        label="{AccountReservationList|+ add(IReservation): boolean\l+ find(String): Reservation\l+ update(AccountReservationList): void\l}"
    ]

    // Relationships
    edge [arrowhead=empty, arrowtail=none]
    HotelReservation -> Reservation;
    HouseReservation -> Reservation;
    CabinReservation -> Reservation;

    edge [arrowhead=empty, arrowtail=odiamond]
    AccomodationManager -> AccountList [label="1"];
    Account -> Address [label="1..2"];
    Account -> EmailAddress [label="1"];
    Account -> AccountReservationList [label="1"];
    Reservation -> Address [label="2"];
    Reservation -> ReservationStatusEnum [label="1"];
    Reservation -> KitchenTypeEnum [label="1"];

    edge [arrowhead=odiamond, arrowtail=diamond]
    AccountList -> Account [arrowtail=odiamond,label="0..*"];
    AccountReservationList -> IReservation [label="0..*"];

    edge [arrowhead=vee, style=dashed]
    Reservation -> IReservation [arrowtail=empty, style=dashed, dir=back, arrowhead=none];
    AccomodationManager -> DataRepository [label="uses"];
}
