net.beadsproject.beads.analysis
Class FeatureRecorder

java.lang.Object
  extended by net.beadsproject.beads.core.Bead
      extended by net.beadsproject.beads.analysis.FeatureRecorder

public class FeatureRecorder
extends Bead

A FeatureRecorder records feature data from a feature extraction process to a FeatureTrack. Typically, a FeatureRecorder is given a set of FeatureExtractors to log data from, and is set to listen to a Segmenter, which lets the FeatureRecorder know when the FeatureExtractors have new data to log.


Constructor Summary
FeatureRecorder()
          Instantiates a new feature recorder.
 
Method Summary
 void addFeatureExtractor(FeatureExtractor<?,?> e)
          Adds a new FeatureExtractor.
 FeatureTrack getFeatureTrack()
          Gets the FeatureTrack.
 void messageReceived(Bead bead)
          Responds to an incoming message.
 void removeFeatureExtractor(FeatureExtractor<?,?> e)
          Removes the specified FeatureExtractor.
 void setFeatureTrack(FeatureTrack ft)
          Sets the FeatureTrack.
 
Methods inherited from class net.beadsproject.beads.core.Bead
getKillListener, getName, isDeleted, isPaused, kill, message, pause, setKillListener, setName, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureRecorder

public FeatureRecorder()
Instantiates a new feature recorder.

Method Detail

addFeatureExtractor

public void addFeatureExtractor(FeatureExtractor<?,?> e)
Adds a new FeatureExtractor.

Parameters:
e - the FeatureExtractor.

removeFeatureExtractor

public void removeFeatureExtractor(FeatureExtractor<?,?> e)
Removes the specified FeatureExtractor.

Parameters:
e - the FeatureExtractor.

messageReceived

public void messageReceived(Bead bead)
Description copied from class: Bead
Responds to an incoming message. Subclasses can override this in order to handle incoming messages. Typically a Bead would send a message to another Bead with itself as the arugment.

Overrides:
messageReceived in class Bead
Parameters:
bead - the message

setFeatureTrack

public void setFeatureTrack(FeatureTrack ft)
Sets the FeatureTrack.

Parameters:
ft - the new FeatureTrack

getFeatureTrack

public FeatureTrack getFeatureTrack()
Gets the FeatureTrack.

Returns:
the FeatureTrack.