rails.game.move
Class PriceMove

java.lang.Object
  extended by rails.game.move.Move
      extended by rails.game.move.PriceMove

public class PriceMove
extends Move

Author:
Erik Vos

Field Summary
protected  StockSpaceI from
           
protected  PriceModel price
           
protected  StockSpaceI to
           
 
Fields inherited from class rails.game.move.Move
log, models
 
Constructor Summary
PriceMove(PriceModel price, StockSpaceI from, StockSpaceI to)
           
 
Method Summary
 boolean execute()
           
 java.lang.Object getObject()
           
 java.lang.String toString()
           
 boolean undo()
           
 
Methods inherited from class rails.game.move.Move
registerModelToUpdate, updateModels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

from

protected StockSpaceI from

to

protected StockSpaceI to

price

protected PriceModel price
Constructor Detail

PriceMove

public PriceMove(PriceModel price,
                 StockSpaceI from,
                 StockSpaceI to)
Method Detail

execute

public boolean execute()
Specified by:
execute in class Move

undo

public boolean undo()
Specified by:
undo in class Move

getObject

public java.lang.Object getObject()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object