This is the stagingdrafts environment running on https://bkleinen.github.io/stagingdrafts/
This site contains unpublished changes and draft documents.
- please visit the production website at https://home.htw-berlin.de/~kleinen/ instead!
 

B1 Informatics 1 WS 2023/24

Website of Prof. Dr. Barne Kleinen, Professor for Media Informatics (Bachelor/Master) at HTW Berlin

Kara Class Diagram

     next>

Kara Class Diagram

%%{
  init: {
    'theme': 'base',
    'themeVariables': {
      'primaryColor': '#f69e9d', 
      'primaryTextColor': '#000',
      'primaryBorderColor': '#000',
      'lineColor': '#F8B229',
      'secondaryColor': '#f4f4f4',
      'activationBorderColor': '#000',
      'tertiaryColor': '#fff'
    }
  }
}%%
classDiagram
    Kara <|-- MyKara
    Actor <|-- Kara
    
    class Actor{
      -int x
      -int y
      -int rotation
      +int getX()
      +int getY()
      +int getRotation()
    }
    class Kara{

      void move()
      void turnLeft()
      void turnRight()
      void putLeaf()
      void removeLeaf()
      boolean onLeaf()
      boolean treeFront()
      boolean treeLeft()
      boolean treeRight()
      boolean mushroomFront()
    }
    class MyKara{
      void act()
      void aroundTree()
    }

With Object (top of inheritance hierarchy)

%%{
  init: {
    'theme': 'base',
    'themeVariables': {
      'primaryColor': '#f69e9d', 
      'primaryTextColor': '#000',
      'primaryBorderColor': '#000',
      'lineColor': '#F8B229',
      'secondaryColor': '#f4f4f4',
      'activationBorderColor': '#000',
      'tertiaryColor': '#fff'
    }
  }
}%%
classDiagram

    Kara <|-- MyKara
    Actor <|-- Kara
    Object <|-- Actor
    
    class Object{
      String toString()
      ...()
    }
    class Actor{
      -int x
      -int y
      -int rotation
      +int getX()
      +int getY()
      +int getRotation()
    }
    class Kara{

      void move()
      void turnLeft()
      void turnRight()
      void putLeaf()
      void removeLeaf()
      boolean onLeaf()
      boolean treeFront()
      boolean treeLeft()
      boolean treeRight()
      boolean mushroomFront()
    }
    class MyKara{
      void act()
      void aroundTree()
    }