org.xith3d.loop.opscheduler
Interface ScheduledOperation

All Superinterfaces:
Updatable
All Known Subinterfaces:
Animatable
All Known Implementing Classes:
Adjuster, AnimatableGroup, Bullet, BunchAnimatable, ConnectionManager, DelayedLoadingScreenUpdater, FloatFactorConnection, FloatLowerLimiter, FloatUpperLimiter, GroupAnimator, GroupRotator, GroupTranslator, InterpolatorTimer, KeyAdjustableFloat, KeyFloatAdjuster, KeyPoint3fAdjuster, LoadingPhaseController, MemberConnection, ParticleManagerUpdater, PlaceableConnection, PointFocusser, RotatableGroup, ScheduledOperationImpl, ScheduledPicker, ScheduledScreenshot, ScheduledTextureChanger, TimedInterpolator, TranslatableGroup

public interface ScheduledOperation
extends Updatable

If you want an operation to be done by the rendering loop (for thread safety), pass an object implementing this interface to the scheduleOperation method of the RenderLoop.


Method Summary
 boolean isAlive()
          if false, the object will be removed from the scheduler next loop iteration
 boolean isPersistent()
          If this operation is persistent, it remains scheduled after beeing executed once.
 void setAlive(boolean alive)
          Sets this Object alive or dead
 
Methods inherited from interface org.xith3d.loop.Updatable
update
 

Method Detail

isPersistent

boolean isPersistent()
If this operation is persistent, it remains scheduled after beeing executed once.


setAlive

void setAlive(boolean alive)
Sets this Object alive or dead

Parameters:
alive - if false, the object will be removed from the scheduler next loop iteration

isAlive

boolean isAlive()
if false, the object will be removed from the scheduler next loop iteration