eos.market
Class Market

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

public abstract class Market
extends Object

Parent class of all markets

Author:
zhihongx

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

Field Detail

good

protected String good
name of the good to be traded in the market

Constructor Detail

Market

public Market(String good)
Create a new market trading good

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

getGood

public 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.