|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.api.common.utils.TimerLoop
org.robokind.api.motion.blending.TimedBlenderDriver
public class TimedBlenderDriver
A TimedBlenderDriver runs in a TimerLoop and regularly pulls Frames from the FrameSources in its FrameSourceTracker, and sends them to its Blender.
Constructor Summary | |
---|---|
TimedBlenderDriver(long interval)
Creates a new TimedBlenderDriver to run at the given interval. |
Method Summary | |
---|---|
FrameSourceTracker |
getFrameSourceTracker()
Returns the FrameSourceTracker uses. |
void |
setBlender(Blender blender)
Sets the Blender to drive. |
void |
setFrameSourceTracker(FrameSourceTracker tracker)
Set the FrameSourceTracker to use. |
protected void |
timerTick(long time,
long interval)
|
Methods inherited from class org.robokind.api.common.utils.TimerLoop |
---|
getIntervalLength, setIntervalLength, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimedBlenderDriver(long interval)
interval
- milliseconds between blendingMethod Detail |
---|
public void setBlender(Blender blender)
blender
- Blender to drivepublic void setFrameSourceTracker(FrameSourceTracker tracker)
tracker
- FrameSourceTracker to usepublic FrameSourceTracker getFrameSourceTracker()
protected void timerTick(long time, long interval)
timerTick
in class org.robokind.api.common.utils.TimerLoop
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |