Inheritance diagram for behavioral::TMutableObservable:
Public Methods | |
TMutableObservable () | |
void | addMutator (IMutator tMUTATOR) |
void | deleteMutator (IMutator tMUTATOR) |
void | deleteMutators () |
Clears the mutator list so that this object no longer has any mutators. | |
void | setNeedMutation () |
int | countMutators () |
boolean | needMutation () |
void | notifyMutators () |
void | notifyMutators (Object tARGUMENT) |
Protected Methods | |
void | clearNeedMutation () |
Protected Attributes | |
Vector | tMutatorVector |
Vector for mutators. |
When an mutable object is newly created, its set of mutators is empty. Two mutators are considered the same if and only if the equals method returns true for them.
Definition at line 54 of file TMutableObservable.java.
|
Builds a new instance.
Definition at line 87 of file TMutableObservable.java. References behavioral::TMutableObservable::tMutatorVector. |
|
Adds an mutator to the set of mutators for this object, provided that it is not the same as some mutator already in the set.
Definition at line 98 of file TMutableObservable.java. References behavioral::TMutableObservable::tMutatorVector. |
|
Indicates that this object has no longer changed, or that it has already notified all of its mutators of its most recent change, so that the needMutation method will now return false. Definition at line 73 of file TMutableObservable.java. Referenced by behavioral::TMutableObservable::notifyMutators(). |
|
Returns the number of mutators of this mutable object.
Definition at line 136 of file TMutableObservable.java. References behavioral::TMutableObservable::tMutatorVector. |
|
Deletes an mutator from the set of mutators of this object.
Definition at line 107 of file TMutableObservable.java. References behavioral::TMutableObservable::tMutatorVector. |
|
Tests if this object need to be mutated.
Definition at line 145 of file TMutableObservable.java. Referenced by behavioral::TMutableObservable::notifyMutators(). |
|
If this object need a mutation, as indicated by the needMutation method, then it notifies all of its mutators and calls the clearNeedMutation method to indicate that this object has no longer need for mutation. It also calls the setChanged method to indicate that this object has changed.
Definition at line 174 of file TMutableObservable.java. References behavioral::TMutableObservable::clearNeedMutation(), behavioral::TMutableObservable::needMutation(), and behavioral::TMutableObservable::tMutatorVector. |
|
If this object need a mutation, as indicated by the needMutation method, then it notifies all of its mutators and calls the clearNeedMutation method to indicate that this object has no longer need for mutation. It also calls the setChanged method to indicate that this object has changed.
Definition at line 159 of file TMutableObservable.java. |
|
Marks this mutable object as having been changed; the needMutation method will now return true. Definition at line 122 of file TMutableObservable.java. |