GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Oblig

Ludvik Sæther Englisch

Inhalt der Mindmap

Oblig

  1. class: node

    • An independent computer with a motherboard with one or more processors and RAM, in addition to some other things as well.  In this exercise, max 2 processors per Node.
    • instance variables
      • self._ram
      • self._processors
        • 1 or 2 (Can be more in reality, but simplified for the exercise)
    • methods
      • def get_processors():
      • def get_memory():
  2. class: rack

    • Saves Node objects that belong to the rack in a list. A Node can be added if the current amount of Nodes is less than the maximum amount. For simplicity, every Rack has the same amount of places for Nodes. 
    • instance variables
      • self._these_nodes
    • methods
      • def is_space
  3. class: cluster

    • An object of a cluster should be able to refer to one or several Rack object, that again can refer to objects of the class Node
    • def add_node
      • Takes a Node as a parameter and adds this Node to the first Rack with an available spot.     If there are no Racks with an available spot, a new Rack is created and the Node added to this Rack.

Informationen

Beschreibung
Mindmap am Oblig, erstellt von Ludvik Sæther am 05/11/2017.
Erstellt von
Ludvik Sæther
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck