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

 

NAME

      NonRenewable: Nonrenewable Bin

 

SYNOPSIS

      #include <eosim/core/nonrenewable.hpp>

 

      namespace eosim {

      namespace core {

 

class NonRenewable: public Bin {

public:

NonRenewable (double quantity_);

~NonRenewable ();

void addBin (double amount_);

};

 

      }

      }

 

DESCRIPTION

This class represent bins which are consumable, like coffee. This kind of bins are consume while they are used. So you can use them and add some more before it is depleted. It inherits the acquire operation from its parent class, Bin.

 

CLASS OPERATIONS

NonRenewable (double quantity_):

      The constructor creates a NonRenewable bin with a quantity_ units. If quantity_ is less or equal than zero, the simulation aborts immediately displaying an error message. 

     

~NonRenewable ():

      The destructor of NonRenewable.

     

void addBin (double amount_):

            This operation add amount_ units to the bin. If amount_ is less or equal than zero, the simulation aborts immediately displaying an error message.

           

     

 

SEE ALSO

eosim::core::Bin