Newer
Older
GeneratedDesignPatternsByDTRAM / UML / Adapter / classAdapter.wsd
@startuml class adapter

namespace DTRAM{
    class Adapter
    class Captain{
        +getValue():String
    }
    class FishingBoat{
        -value:String
        --
        +sail(message:String):String
        +getValue():String
    }
    class FishingBoatAdapter{
        +getValue():String
    }

    Adapter o---> Captain
    Adapter o---> FishingBoatAdapter
    Adapter o---> FishingBoat

    Captain o-right-> FishingBoatAdapter
    FishingBoatAdapter o-left-> Captain
    FishingBoatAdapter o-right-> FishingBoat
}

namespace Iluwatar{
    class App
    class Captain
    class FishingBoat

    interface RowingBoat
    class FishingBoatAdapter

    Captain o-right-> RowingBoat
    RowingBoat .up.|> FishingBoatAdapter
    FishingBoatAdapter o-right-> FishingBoat
}
@enduml