ISeller Interface Reference

Every agent that can sell goods must implement the ISeller interface. More...

Inherited by Firm, and ImportExport.

List of all members.

Public Member Functions

double getPrice ()
 The price for which the agent is willing to sell one unit of good.
Sector getProductionSector ()
 The Sector in which the agent produces.
void sell (double pQuantity)
 The agents sells pQuantity units of the good of the sector ISeller.getProductionSector.

Package Functions

double getInventory ()
 The actual inventory of the agent.

Classes

class  PriceComparator
 This Comparator can be used to sort sellers ascending to the price they want for one unit of the good they produce.


Detailed Description

Every agent that can sell goods must implement the ISeller interface.

Definition at line 15 of file ISeller.java.


Member Function Documentation

double getInventory (  )  [package]

The actual inventory of the agent.

Implemented in Firm, and ImportExport.

Referenced by Suppliers.addExtraSeller().

double getPrice (  ) 

The price for which the agent is willing to sell one unit of good.

Implemented in Firm, and ImportExport.

Referenced by Suppliers.addExtraSeller(), Suppliers.addSeller(), Suppliers.buy(), Suppliers.buyValue(), Suppliers.getMostExpensiveSupplier(), Suppliers.replaceSeller(), and Suppliers.updateSuppliers().

Sector getProductionSector (  ) 

The Sector in which the agent produces.

Implemented in Firm, and ImportExport.

Referenced by Suppliers.addExtraSeller(), and Suppliers.addSeller().

void sell ( double  pQuantity  ) 

The agents sells pQuantity units of the good of the sector ISeller.getProductionSector.

Implemented in ImportExport.

Referenced by Suppliers.buy(), and Suppliers.buyValue().


The documentation for this interface was generated from the following file:
Generated on Tue Sep 14 11:11:49 2010 for lagom_generiC by  doxygen 1.5.4