org.robokind.api.motion.blending
Class TimedBlenderDriver

java.lang.Object
  extended by org.robokind.api.common.utils.TimerLoop
      extended by 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.
 
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

TimedBlenderDriver

public TimedBlenderDriver(long interval)
Creates a new TimedBlenderDriver to run at the given interval.

Parameters:
interval - milliseconds between blending
Method Detail

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

getFrameSourceTracker

public FrameSourceTracker getFrameSourceTracker()
Returns the FrameSourceTracker uses.

Returns:
rameSourceTracker used

timerTick

protected void timerTick(long time,
                         long interval)
Specified by:
timerTick in class org.robokind.api.common.utils.TimerLoop


Copyright © 2011-2013. All Rights Reserved.