eos.market
Class Market

java.lang.Object
  extended by eos.market.Market
Direct Known Subclasses:
CapitalMarket, ConsumerGoodMarket, LaborMarket

public abstract class Market
extends java.lang.Object

Parent class of all markets


Field Summary
protected  java.lang.String good
          name of the good to be traded in the market
 
Constructor Summary
Market(java.lang.String good)
          Create a new market trading good
 
Method Summary
abstract  void clear()
          Clear the market.
 java.lang.String getGood()
          Return name of the good traded in the market
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

good

protected java.lang.String good
name of the good to be traded in the market

Constructor Detail

Market

public Market(java.lang.String good)
Create a new market trading good

Parameters:
good - name of good to be traded in the market
Method Detail

getGood

public java.lang.String getGood()
Return name of the good traded in the market

Returns:
name of the good traded in the market

clear

public abstract void clear()
Clear the market. Called by Economy.step() in each step.