eosim::core::NonRenewable Class Reference

#include <eosim/core/nonrenewable.hpp>

Inheritance diagram for eosim::core::NonRenewable:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Nonrenewable Bin.

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


Public Member Functions

 NonRenewable (double quantity)
 The constructor creates a NonRenewable bin with a quantity units.
 ~NonRenewable ()
void addBin (double amount)
 This operation add amount units to the bin.


Constructor & Destructor Documentation

NonRenewable::NonRenewable ( double  quantity  ) 

The constructor creates a NonRenewable bin with a quantity units.

Warning:
A non renewable bin must be created with a non negative quantity.

NonRenewable::~NonRenewable (  ) 

The destructor of NonRenewable.


Member Function Documentation

void NonRenewable::addBin ( double  amount  ) 

This operation add amount units to the bin.

Warning:
The amount added must be non negative.


Generated on Tue Aug 11 15:46:44 2009 for EOSimulator by  doxygen 1.5.2