eosim::core::Renewable             EoSimulator Programmer's Manual

 

NAME

      Renewable: Renewable Bin

 

SYNOPSIS

      #include <eosim/core/renewable.hpp>

 

      namespace eosim {

      namespace core {

 

class Renewable: public Bin {

public:

                  Renewable (double cuantity_, double max_);

                  ~Renewable ();

                  void returnBin (double amount_);   

                  double getMax();

};

 

      }

      }

 

DESCRIPTION

This class represent bins which are renewable, like chairs. This kind of bins are returned after they are used. So you can use them and return them after used. It inherits the acquire operation from its parent class, Bin.

 

CLASS OPERATIONS

Renewable (double quantity_, 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. If you return more units than the bin’s capacity, the simulation aborts immediately displaying an error message.

 

double getMax():

            This operation returns the maximum capacity of the bin.

     

 

SEE ALSO

eosim::core::Bin