Mapa mental
Oblig
Conteúdo do mapa
Oblig
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():
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
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.
Informações
- Descrição
- Mapa Mental sobre Oblig, criado por Ludvik Sæther em 05-11-2017.
- Criado por
- Ludvik Sæther
- Visualizações
- 0
- Avaliação