player
Class ZIPlayer

java.lang.Object
  extended by player.Player
      extended by player.ZIPlayer
Direct Known Subclasses:
ZIFirm

public class ZIPlayer
extends Player

Author:
tratch

Constructor Summary
ZIPlayer(java.lang.String name, boolean pBool)
          Constructor
 
Method Summary
 boolean isConstrained()
           
 Ask makeAsk(Ask theAsk, Market theMarket)
           
 Bid makeBid(Bid theBid, Market theMarket)
           
 void setConstrained(boolean constrained)
           
 
Methods inherited from class player.Player
addToInventory, browseInventory, clearFromInventory, clearInventory, clearValueFunction, getInventory, getPlayerName, getValue, printInventory, removeFromInventory, setBudget, setPlayerName, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZIPlayer

public ZIPlayer(java.lang.String name,
                boolean pBool)
Constructor

Parameters:
name -
pBool -
Method Detail

makeAsk

public Ask makeAsk(Ask theAsk,
                   Market theMarket)
Specified by:
makeAsk in class Player
Returns:
An Ask under the given market conditions

makeBid

public Bid makeBid(Bid theBid,
                   Market theMarket)
Specified by:
makeBid in class Player
Returns:
A bid under the given market conditions

isConstrained

public boolean isConstrained()
Returns:
True if the player is constrained, false otherwise

setConstrained

public void setConstrained(boolean constrained)
Parameters:
constrained -