#include <eosim/core/renewable.hpp>
Inheritance diagram for eosim::core::Renewable:
Public Member Functions | |
Renewable (double cuantity, double max) | |
The constructor creates a Renewable bin with quantity units and max capacity. If quantity is greater or equal than max and max is less or equal than zero, the simulation aborts immediately displaying an error message. | |
~Renewable () | |
The destructor of Renewable. | |
void | returnBin (double amount) |
This operation return amount units to the bin. | |
double | getMax () |
This operation returns the maximum capacity of the bin. |
Renewable::Renewable | ( | double | cuantity, | |
double | max | |||
) |
The constructor creates a Renewable bin with quantity units and max capacity. If quantity is greater or equal than max and max is less or equal than zero, the simulation aborts immediately displaying an error message.
void Renewable::returnBin | ( | double | amount | ) |
This operation return amount units to the bin.