motris.algorithm
Class AlgorithmFactory

java.lang.Object
  extended bymotris.data.Description
      extended byparameter.ParameterizedObjectAdaptor
          extended bymotris.algorithm.AlgorithmFactory
All Implemented Interfaces:
ParameterizedObject

public class AlgorithmFactory
extends ParameterizedObjectAdaptor

Manages algorithms by providing functions for their creation, access and parameterization. AlgorithmFactory.getParameters() returns Parameters of ALL Motris Algorithms

Author:
dahlkamp

Nested Class Summary
 class AlgorithmFactory.DefaultActorParameters
           
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
(package private)  java.util.Vector algorithms
           
(package private)  java.util.Hashtable trackingAlgo
           
 
Fields inherited from class parameter.ParameterizedObjectAdaptor
parameterChangedNotifyList
 
Fields inherited from class motris.data.Description
 
Constructor Summary
AlgorithmFactory(Experiment _experiment)
           
 
Method Summary
 ParameterSet getDefaultActorParameters()
           
 Tracker getDefaultTracker()
           
 Derivative getDerivation()
           
 EdgeElement getEdgeElement()
           
 EdgeElementAdaption getEdgeElementAdaption()
           
 OpticalFlow getOpticalFlow()
           
 ParameterSet getParameters()
          Return parameters for ALL algorithms as a hierarchial set
 Tracker getTrackingAlgorithm(Actor forActor)
          Get the Tracking Algorithm associated with an actor
 boolean removeTrackingAlgorithm(Actor forActor)
           
 boolean setParameters(ParameterSet _params)
          Set Parameters of this class
 void setTrackingAlgorithm(Tracker algo, Actor forActor)
           
 
Methods inherited from class parameter.ParameterizedObjectAdaptor
addParameterChangedListener, finalize, fireParameterChanged, parameterEdited, removeParameterChangedListener
 
Methods inherited from class motris.data.Description
getDescription, getIdentifier, getName, setDescription, setIdentifier, setName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

algorithms

java.util.Vector algorithms

trackingAlgo

java.util.Hashtable trackingAlgo
Constructor Detail

AlgorithmFactory

public AlgorithmFactory(Experiment _experiment)
Method Detail

getParameters

public ParameterSet getParameters()
Return parameters for ALL algorithms as a hierarchial set

Specified by:
getParameters in interface ParameterizedObject
Overrides:
getParameters in class ParameterizedObjectAdaptor

setParameters

public boolean setParameters(ParameterSet _params)
Description copied from interface: ParameterizedObject
Set Parameters of this class

Specified by:
setParameters in interface ParameterizedObject
Overrides:
setParameters in class ParameterizedObjectAdaptor

getTrackingAlgorithm

public Tracker getTrackingAlgorithm(Actor forActor)
Get the Tracking Algorithm associated with an actor

Parameters:
forActor - the actor for which the tracker is looked up. If forActor == null, the default tracker is returned
Returns:
tracking algorithm

setTrackingAlgorithm

public void setTrackingAlgorithm(Tracker algo,
                                 Actor forActor)

removeTrackingAlgorithm

public boolean removeTrackingAlgorithm(Actor forActor)

getOpticalFlow

public OpticalFlow getOpticalFlow()

getDerivation

public Derivative getDerivation()

getEdgeElement

public EdgeElement getEdgeElement()

getDefaultTracker

public Tracker getDefaultTracker()

getDefaultActorParameters

public ParameterSet getDefaultActorParameters()

getEdgeElementAdaption

public EdgeElementAdaption getEdgeElementAdaption()