rails.game.model
Class ShareModel

java.lang.Object
  extended by java.util.Observable
      extended by rails.game.model.ModelObject
          extended by rails.game.model.ShareModel

public class ShareModel
extends ModelObject


Field Summary
 
Fields inherited from class rails.game.model.ModelObject
dependents, log, option
 
Constructor Summary
ShareModel(Portfolio portfolio, PublicCompanyI company)
           
 
Method Summary
 void addShare(int addedShare)
           
 int getShare()
           
 java.lang.String getText()
          The object that is sent to the Observer along with a notification.
 void setShare()
           
 
Methods inherited from class rails.game.model.ModelObject
addDependent, addObserver, getUpdate, removeDependent, resetOption, setOption, update
 
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
 

Constructor Detail

ShareModel

public ShareModel(Portfolio portfolio,
                  PublicCompanyI company)
Method Detail

setShare

public void setShare()

addShare

public void addShare(int addedShare)

getShare

public int getShare()

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: