ikbs.rco.event
Class NotifyElement

java.lang.Object
  extended by ikbs.rco.event.NotifyElement
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NotifyAttribute, NotifyComponent

public class NotifyElement
extends java.lang.Object
implements java.io.Serializable

IKBS ikbs.rco.event Classe qui encapsule les evenements survenues sur un ElementDescriptif Les instances sont construites par les élements du modèle et propagé aux Observateurs

Since:
5 avril 2000
Author:
David GROSSER
See Also:
Serialized Form

Field Summary
protected  int action
           
static int ADD_RULE
           
protected  boolean b
           
static int COMMENTAIRE_CHANGED
           
static int DECISION_CHANGED
           
static int DEFAUT_CHANGED
           
protected  DescriptiveElement element
           
protected  float f
           
static int IDENTIFICATEUR_CHANGED
           
protected  int index
           
static int LIBELLE_CHANGED
           
protected  DescriptiveElement newElement
           
static int POIDS_CHANGED
           
static int QUESTION_CHANGED
           
static int REMOVE_RULE
           
static int REPLACE
           
static int REPLACE_RULE
           
protected  Rule rule
           
static int URL_CHANGED
           
protected  Value v
           
protected  java.lang.String valeur
           
 
Constructor Summary
NotifyElement(DescriptiveElement element, int action)
           
NotifyElement(DescriptiveElement element, int action, boolean b)
           
NotifyElement(DescriptiveElement element, int action, DescriptiveElement newElement)
           
NotifyElement(DescriptiveElement element, int action, float fl)
          Constructeur avec un paramètre de type float
NotifyElement(DescriptiveElement element, int action, int index)
           
NotifyElement(DescriptiveElement element, int action, Rule rule)
           
NotifyElement(DescriptiveElement element, int action, Rule rule, int index)
           
NotifyElement(DescriptiveElement element, int action, java.lang.String valeur)
           
NotifyElement(DescriptiveElement element, int action, Value v)
           
 
Method Summary
 int getAction()
          Accès à l'id de l'action
 boolean getBoolean()
           
 DescriptiveElement getElement()
          Accès au DescriptiveElement sur lequel s'est produit l'action
 float getFloat()
           
 int getIndex()
           
 DescriptiveElement getNewElement()
          Accès au nouvel élement lorsque l'action a transformée l'ancien élement
 Rule getRule()
           
 java.lang.String getString()
          Accès à la chaine de caractères
 Value getValue()
           
 void setAction(int action)
          Affectation du type d'action
 void setFloat(float f)
           
 void setIndex(int index)
           
 void setRule(Rule rule)
           
 void setString(java.lang.String s)
          Affectation de la chaine de caractères
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REPLACE

public static final int REPLACE
See Also:
Constant Field Values

LIBELLE_CHANGED

public static final int LIBELLE_CHANGED
See Also:
Constant Field Values

IDENTIFICATEUR_CHANGED

public static final int IDENTIFICATEUR_CHANGED
See Also:
Constant Field Values

COMMENTAIRE_CHANGED

public static final int COMMENTAIRE_CHANGED
See Also:
Constant Field Values

URL_CHANGED

public static final int URL_CHANGED
See Also:
Constant Field Values

QUESTION_CHANGED

public static final int QUESTION_CHANGED
See Also:
Constant Field Values

DEFAUT_CHANGED

public static final int DEFAUT_CHANGED
See Also:
Constant Field Values

DECISION_CHANGED

public static final int DECISION_CHANGED
See Also:
Constant Field Values

POIDS_CHANGED

public static final int POIDS_CHANGED
See Also:
Constant Field Values

ADD_RULE

public static final int ADD_RULE
See Also:
Constant Field Values

REMOVE_RULE

public static final int REMOVE_RULE
See Also:
Constant Field Values

REPLACE_RULE

public static final int REPLACE_RULE
See Also:
Constant Field Values

index

protected int index

v

protected Value v

rule

protected Rule rule

f

protected float f

b

protected boolean b

element

protected DescriptiveElement element

newElement

protected DescriptiveElement newElement

action

protected int action

valeur

protected java.lang.String valeur
Constructor Detail

NotifyElement

public NotifyElement(DescriptiveElement element,
                     int action)

NotifyElement

public NotifyElement(DescriptiveElement element,
                     int action,
                     java.lang.String valeur)

NotifyElement

public NotifyElement(DescriptiveElement element,
                     int action,
                     Rule rule)

NotifyElement

public NotifyElement(DescriptiveElement element,
                     int action,
                     Rule rule,
                     int index)

NotifyElement

public NotifyElement(DescriptiveElement element,
                     int action,
                     int index)

NotifyElement

public NotifyElement(DescriptiveElement element,
                     int action,
                     Value v)

NotifyElement

public NotifyElement(DescriptiveElement element,
                     int action,
                     boolean b)

NotifyElement

public NotifyElement(DescriptiveElement element,
                     int action,
                     DescriptiveElement newElement)

NotifyElement

public NotifyElement(DescriptiveElement element,
                     int action,
                     float fl)
Constructeur avec un paramètre de type float

Method Detail

getIndex

public int getIndex()

getAction

public int getAction()
Accès à l'id de l'action


setAction

public void setAction(int action)
Affectation du type d'action


getString

public java.lang.String getString()
Accès à la chaine de caractères


setString

public void setString(java.lang.String s)
Affectation de la chaine de caractères


getElement

public DescriptiveElement getElement()
Accès au DescriptiveElement sur lequel s'est produit l'action


getNewElement

public DescriptiveElement getNewElement()
Accès au nouvel élement lorsque l'action a transformée l'ancien élement


getBoolean

public boolean getBoolean()

getValue

public Value getValue()

getFloat

public float getFloat()

setFloat

public void setFloat(float f)

toString

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

setRule

public void setRule(Rule rule)

setIndex

public void setIndex(int index)

getRule

public Rule getRule()