eosim::core::Renewable Class Reference

#include <eosim/core/renewable.hpp>

Inheritance diagram for eosim::core::Renewable:

Inheritance graph
[legend]
Collaboration diagram for eosim::core::Renewable:

Collaboration graph
[legend]
List of all members.

Detailed Description

Renewable Bin.

Author:
Sebastián Alaggia
Version:
1.0.1
Date:
2005
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.


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.


Constructor & Destructor Documentation

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.

Warning:
The quantity must be less or equal than max, and max must be greater or equal than zero.


Member Function Documentation

void Renewable::returnBin ( double  amount  ) 

This operation return amount units to the bin.

Warning:
The amount returned plus the actual quantity of the bin must be less or equal the bin’s capacity.


Generated on Tue Oct 14 16:48:52 2008 for EOSimulator by  doxygen 1.5.2