rails.game.model
Class PriceModel
java.lang.Object
java.util.Observable
rails.game.model.ModelObject
rails.game.model.PriceModel
- All Implemented Interfaces:
- StateI
public class PriceModel
- extends ModelObject
- implements StateI
Methods inherited from class java.util.Observable |
clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PriceModel
public PriceModel(PublicCompanyI company,
java.lang.String name)
setPrice
public void setPrice(StockSpaceI price)
getPrice
public StockSpaceI getPrice()
getCompany
public PublicCompanyI getCompany()
getUpdate
public java.lang.Object getUpdate()
- Description copied from class:
ModelObject
- Default update is just text
- Overrides:
getUpdate
in class ModelObject
getText
public java.lang.String getText()
- Description copied from class:
ModelObject
- The object that is sent to the Observer along with a notification. The
default result is the Observable's toString(), but it can be overridden
where needed.
- Specified by:
getText
in class ModelObject
- Returns:
get
public java.lang.Object get()
- Specified by:
get
in interface StateI
setState
public void setState(java.lang.Object object)
- Specified by:
setState
in interface StateI
getName
public java.lang.String getName()
- Specified by:
getName
in interface StateI