rails.game.model
Class PresidentModel

java.lang.Object
  extended by java.util.Observable
      extended by rails.game.model.ModelObject
          extended by rails.game.model.PresidentModel
All Implemented Interfaces:
java.util.Observer

public class PresidentModel
extends ModelObject
implements java.util.Observer

model object for the current company president gets registered by the ShareModels


Field Summary
(package private)  PublicCompanyI company
           
 
Fields inherited from class rails.game.model.ModelObject
dependents, log, option
 
Constructor Summary
PresidentModel(PublicCompanyI company)
           
 
Method Summary
 java.lang.String getText()
          The object that is sent to the Observer along with a notification.
 void update(java.util.Observable o, java.lang.Object arg)
           
 
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
 

Field Detail

company

PublicCompanyI company
Constructor Detail

PresidentModel

public PresidentModel(PublicCompanyI company)
Method Detail

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

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: