modhelxs.util
Class UpdateTrigger

java.lang.Object
  extended by modhelxs.util.UpdateTrigger
Direct Known Subclasses:
DEMoC.DEEvent

public class UpdateTrigger
extends java.lang.Object

An UpdateTrigger memorizes the fact that an observable entity should be updated.

Author:
boulange

Field Summary
private  ObservableEntity entity_to_update_
          The entity that should be updated.
 
Constructor Summary
UpdateTrigger(ObservableEntity e)
          Build a new UpdateTrigger for entity e.
 
Method Summary
 ObservableEntity getEntity()
          Get the entity that should be updated.
 void prepareUpdate()
          Prepare the update of the entity (MoC dependent).
 java.lang.String toString()
           
 void update()
          Update the entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

entity_to_update_

private ObservableEntity entity_to_update_
The entity that should be updated.

Constructor Detail

UpdateTrigger

public UpdateTrigger(ObservableEntity e)
Build a new UpdateTrigger for entity e.

Method Detail

getEntity

public ObservableEntity getEntity()
Get the entity that should be updated.


prepareUpdate

public void prepareUpdate()
Prepare the update of the entity (MoC dependent).


update

public void update()
Update the entity.


toString

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