org.robokind.api.motion.blending
Class TimedBlenderDriver
java.lang.Object
org.robokind.api.common.utils.TimerLoop
org.robokind.api.motion.blending.TimedBlenderDriver
public class TimedBlenderDriver
- extends org.robokind.api.common.utils.TimerLoop
A TimedBlenderDriver runs in a TimerLoop and regularly pulls Frames from the
FrameSources in its FrameSourceTracker, and sends them to its Blender.
- Author:
- Matthew Stevenson
Constructor Summary |
TimedBlenderDriver(long interval)
Creates a new TimedBlenderDriver to run at the given 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 |
TimedBlenderDriver
public TimedBlenderDriver(long interval)
- Creates a new TimedBlenderDriver to run at the given interval.
- Parameters:
interval
- milliseconds between blending
setBlender
public void setBlender(Blender blender)
- Sets the Blender to drive.
- Parameters:
blender
- Blender to drive
setFrameSourceTracker
public void setFrameSourceTracker(FrameSourceTracker tracker)
- Set the FrameSourceTracker to use.
- Parameters:
tracker
- FrameSourceTracker to use
timerTick
protected void timerTick(long time,
long interval)
- Specified by:
timerTick
in class org.robokind.api.common.utils.TimerLoop
Copyright © 2011. All Rights Reserved.