diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2017-07-09 23:48:06 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2017-07-09 23:48:06 +0200 |
| commit | c94d0c347fdbd8acc774df4ac17617a3f63e4507 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Simulator/include/modeling/Rack.h | |
| parent | bc4c41e21a64b444bdbab3b6d1d407fd5d919419 (diff) | |
Delete old codebase
This change removes version 1 of the OpenDC simulator codebase as it
will be replaced by a complete rewrite in the Kotlin language.
Diffstat (limited to 'Simulator/include/modeling/Rack.h')
| -rw-r--r-- | Simulator/include/modeling/Rack.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Simulator/include/modeling/Rack.h b/Simulator/include/modeling/Rack.h deleted file mode 100644 index 7e5638ef..00000000 --- a/Simulator/include/modeling/Rack.h +++ /dev/null @@ -1,33 +0,0 @@ -#pragma once -#include "modeling/Entity.h" -#include "modeling/machine/Machine.h" - -#include <unordered_map> - -namespace Modeling -{ - /* - The Rack class models a physical rack. It holds a vector of machines. - */ - class Rack : public Entity - { - public: - /* - Initializes the rack with the given machines. - */ - Rack(int id, std::unordered_map<uint32_t, Machine> machines); - - /* - Returns all machines in this rack. - */ - std::unordered_map<uint32_t, Machine>& getMachines(); - - /* - Returns the machine at the given slot. - */ - Machine& getMachineAtSlot(int slot); - - private: - std::unordered_map<uint32_t, Machine> machines; - }; -} |
