eosim::core::Bin Class Reference

#include <eosim/core/bin.hpp>

Inheritance diagram for eosim::core::Bin:

Inheritance graph
[legend]
List of all members.

Detailed Description

Abstract Bin.

Author:
Sebastián Alaggia
Version:
1.0.1
Date:
2005
This is the parent class of all Bins.


Public Member Functions

virtual ~Bin ()
 The destructor of Bin.
void acquire (double amount)
 This operation acquires amount units of the bin.
bool isAvailable (double amount)
 This operation returns if there is at least amount units of bin available.
double getQuantity ()
 This operation returns the actual amount of bins available.

Protected Member Functions

 Bin (double quantity)
 The constructor of Bin.

Protected Attributes

double quantity


Constructor & Destructor Documentation

Bin::Bin ( double  quantity  )  [protected]

The constructor of Bin.

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


Member Function Documentation

void Bin::acquire ( double  amount  ) 

This operation acquires amount units of the bin.

Warning:
To acquire certain amount of a bin you must be sure that there is enoght units of the bin to satisfy your request.


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