## org.j3d.geom.overlay
Class UpdateControlBehavior

public class UpdateControlBehavior
extends javax.media.j3d.Behavior
implements org.j3d.geom.overlay.UpdateManager

  An implementation of an update manager that uses the Java3D behaviour system.

Version:
  $Revision: 1.2 $
Author:
  Will Holcomb

Field Detail

### UPDATE_ID

    private int UPDATE_ID

  Local ID value for the behavior post flag

### wakeup

    private javax.media.j3d.WakeupOnBehaviorPost wakeup

  The wakeup condition to force the update

### updating

    private boolean updating

  Flag to indicate if we are processing update requests

### droppedUpdate

    private boolean droppedUpdate

  Flag to indicate is we have let an update slip after being requested due to someone stopping updates.

### itemsToUpdate

    private org.j3d.util.Queue itemsToUpdate

  A list of the items that are pending update.

Constructor Detail

### UpdateControlBehavior

    public UpdateControlBehavior()

  Create a new behavior that manages the update of a single entity

Parameters:
  `entity` - The entity to process update requests for

Method Detail

### isUpdating

    public boolean isUpdating()

  Check to see if the manager is making updates right now.

Returns:
  true if the update process is currently happening

### setUpdating

    public void setUpdating(boolean updating)

  Instruct the system to start or stop the update process. This is used to control the whole threaded update system rather than interact with a single update request.

Parameters:
  `updating` - true to set the update to happen, false to stop

### updateRequested

    public void updateRequested(org.j3d.geom.overlay.UpdatableEntity ue)

  Request that the manager update this item. This will be scheduled to happen as soon as possible, but won't necessarily happen immediately.

Parameters:
  `ue` - The entity to be updated

### initialize

    public void initialize()

  Initialize the behavior to start working now. Sets up the initial wakeup condition.

### processStimulus

    public void processStimulus(java.util.Enumeration conditions)

  Process the behavior that has been woken up by the given set of conditions.

Parameters:
  `conditions` - The list of conditions satisfied