fr.lip6.sma.simulacion.app
Class SinglePropertyModel

java.lang.Object
  extended by fr.lip6.sma.simulacion.app.Model
      extended by fr.lip6.sma.simulacion.app.SinglePropertyModel
All Implemented Interfaces:
GameModel

public abstract class SinglePropertyModel
extends Model

Classe de base pour un modèle avec une seule propriété.

Version:
$Revision: 3 $
Author:
Paul Guyot
See Also:
"aucun test défini."

Field Summary
private  String mPropertyName
          Nom de la propriété.
 
Constructor Summary
SinglePropertyModel(String inPropertyName)
          Constructeur à partir du nom de la propriété.
 
Method Summary
protected  void firePropertyChange(boolean inOldValue, boolean inNewValue)
          Indique aux clients un changement dans la propriété.
protected  void firePropertyChange(int inOldValue, int inNewValue)
          Indique aux clients un changement dans la propriété.
protected  void firePropertyChange(Object inOldValue, Object inNewValue)
          Indique aux clients un changement dans la propriété.
 
Methods inherited from class fr.lip6.sma.simulacion.app.Model
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPropertyName

private final String mPropertyName
Nom de la propriété.

Constructor Detail

SinglePropertyModel

public SinglePropertyModel(String inPropertyName)
Constructeur à partir du nom de la propriété.

Parameters:
inPropertyName - nom de la propriété.
Method Detail

firePropertyChange

protected void firePropertyChange(int inOldValue,
                                  int inNewValue)
Indique aux clients un changement dans la propriété. La propriété est un entier.

Parameters:
inOldValue - ancienne valeur de la propriété.
inNewValue - nouvelle valeur de la propriété.

firePropertyChange

protected void firePropertyChange(boolean inOldValue,
                                  boolean inNewValue)
Indique aux clients un changement dans la propriété. La propriété est un booléen.

Parameters:
inOldValue - ancienne valeur de la propriété.
inNewValue - nouvelle valeur de la propriété.

firePropertyChange

protected void firePropertyChange(Object inOldValue,
                                  Object inNewValue)
Indique aux clients un changement dans la propriété. La propriété est un objet.

Parameters:
inOldValue - ancienne valeur de la propriété.
inNewValue - nouvelle valeur de la propriété.