|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.loop.UpdatingThread
org.xith3d.loop.opscheduler.impl.OperationSchedulerQueue
public class OperationSchedulerQueue
This is a queue, that takes instances of OperationScheduler. The Update
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.loop.UpdatingThread |
|---|
UpdatingThread.TimingMode |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.loop.UpdatingThread |
|---|
PAUSE_NONE, PAUSE_TOTAL |
| Constructor Summary | |
|---|---|
OperationSchedulerQueue()
|
|
OperationSchedulerQueue(GameTimeHost gameTimeHost)
|
|
OperationSchedulerQueue(long minItTime)
|
|
OperationSchedulerQueue(long minItTime,
GameTimeHost gameTimeHost)
|
|
| Method Summary | |
|---|---|
void |
addAnimatableObject(Animatable anumObj)
Adds an animatable object to the set. |
void |
addAnimatableObject(Animatable animObj,
boolean startAnimation)
Adds an animatable object to the set. |
void |
addAnimatableObject(Animatable animObj,
long gameTime,
UpdatingThread.TimingMode timingMode)
|
void |
addInterval(Interval interval)
Adds a new Interval to the scheduler, which will be checked each iteration. |
void |
addIntervalListener(IntervalListener l)
Registers a new IntervalListner to this OperationScheduler. |
void |
addOperationScheduler(OperationScheduler opScheder)
Adds a new OperationScheduler to the queue. |
void |
addOperationScheduler(OperationScheduler opScheder,
int index)
Adds a new OperationScheduler to the queue. |
void |
addUpdatable(Updatable updatable)
Adds a new Updatable instance to the list, that is worked each frame. |
OperationScheduler |
getDefaultOperationScheduler()
|
void |
removeAllIntervals()
Removes all Intervals from the scheduler. |
void |
removeAnimatableObject(Animatable animObj)
Removes an animatable object from the set. |
IntervalListener |
removeIntervalListener(IntervalListener l)
Unregisters an IntervalListner from this OperationScheduler. |
void |
removeOperationScheduler(int index)
Removes an OperationScheduler from the queue. |
void |
removeOperationScheduler(OperationScheduler opScheder)
Removes an OperationScheduler from the queue. |
void |
removeUpdatable(Updatable updatable)
Removes an Updatable instance from the list, that is worked each frame. |
void |
scheduleOperation(ScheduledOperation schedOp)
Adds a ScheduledOperation to the queue. |
void |
setDefaultOperationScheduler(OperationScheduler defaultOpScheder)
Sets the default OperationScheduler, that takes the calls to scheduleOperation(), etc. of this OperationSchedulerQueue. |
void |
unscheduleOperation(ScheduledOperation schedOp)
Removes a ScheduledOperation from the queue. |
void |
update()
Checks the list of operations and intervals and calls necessary methods if the time is right. |
void |
update(long gameTime)
Checks the list of operations and intervals and calls necessary methods if the time is right. |
void |
update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updates this Updatable object. |
| Methods inherited from class org.xith3d.loop.UpdatingThread |
|---|
begin, end, getFPSLimiter, getGameMicroTime, getGameMilliTime, getGameNanoTime, getGameTime, getIterationsCount, getLastFrameTime, getLastNanoFrameTime, getMinIterationTime, getPauseMode, getThread, getTimer, getTimingMode, isRunning, isStopping, loop, nextIteration, run, setFPSLimiter, setMinIterationTime, setPauseMode, setTimer, setTimingMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationSchedulerQueue(long minItTime,
GameTimeHost gameTimeHost)
public OperationSchedulerQueue(long minItTime)
public OperationSchedulerQueue(GameTimeHost gameTimeHost)
public OperationSchedulerQueue()
| Method Detail |
|---|
public void addOperationScheduler(OperationScheduler opScheder,
int index)
opScheder - index - the index, at which the OperationScheduler will be addedpublic void addOperationScheduler(OperationScheduler opScheder)
opScheder - public void removeOperationScheduler(int index)
index - public void removeOperationScheduler(OperationScheduler opScheder)
opScheder - public void setDefaultOperationScheduler(OperationScheduler defaultOpScheder)
defaultOpScheder - public OperationScheduler getDefaultOperationScheduler()
public void scheduleOperation(ScheduledOperation schedOp)
scheduleOperation in interface OperationSchedulerschedOp - the Operation to schedulepublic void unscheduleOperation(ScheduledOperation schedOp)
unscheduleOperation in interface OperationSchedulerschedOp - the Operation to unschedulepublic void addInterval(Interval interval)
addInterval in interface OperationSchedulerinterval - the new Intervalpublic void removeAllIntervals()
removeAllIntervals in interface OperationSchedulerpublic void addIntervalListener(IntervalListener l)
addIntervalListener in interface OperationSchedulerl - the new IntervalListenerpublic IntervalListener removeIntervalListener(IntervalListener l)
removeIntervalListener in interface OperationSchedulerl - the IntervalListener to remove
public void addAnimatableObject(Animatable animObj,
long gameTime,
UpdatingThread.TimingMode timingMode)
public void addAnimatableObject(Animatable animObj,
boolean startAnimation)
addAnimatableObject in interface AnimatoranimObj - the object to animatestartAnimation - if true the startAnimation() method is executed immediatelypublic void addAnimatableObject(Animatable anumObj)
addAnimatableObject in interface AnimatoranumObj - the object to animatepublic void removeAnimatableObject(Animatable animObj)
removeAnimatableObject in interface AnimatoranimObj - the object to removepublic void addUpdatable(Updatable updatable)
addUpdatable in interface Updaterpublic void removeUpdatable(Updatable updatable)
removeUpdatable in interface Updater
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
update in interface Animatorupdate in interface OperationSchedulerupdate in interface Updatableupdate in class UpdatingThreadgameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.public void update(long gameTime)
gameTime - the current game timepublic void update()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||