public class SceneChangeExtension extends java.lang.Object implements IExtension
IVisualFeatureMap
s or IAgent
's
IAfferentObjectManager
, depending upon whether accuracy or speed is
more important. Setting the AcceleratedDetectionEnabled to true will use the
faster ( IAfferentListener
version).SceneChangeParticipant
and the extension point in the bundle
manifest.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCELERATED_DETECTION_PARAM |
static java.lang.String |
CLEAR_CHUNK_TYPE |
static java.lang.String |
SCENE_CHANGE_THRESHOLD_PARAM |
static java.lang.String |
SCENE_CHANGED_SLOT |
static java.lang.String |
SCENE_CHANGED_VALUE_SLOT |
Constructor and Description |
---|
SceneChangeExtension() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkForChange()
check to see if we should set the scene-change flag
|
IModel |
getModel()
return the IModel
|
java.lang.String |
getName()
returns the unique name of the extension.
|
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined.
|
java.util.Collection<java.lang.String> |
getPossibleParameters()
Return all parameters that can be read
|
double |
getSceneChangeThreshold() |
java.util.Collection<java.lang.String> |
getSetableParameters()
Return list of all parameters that can be set.
|
void |
initialize()
intialize this component
|
void |
install(IModel model)
Install this extension into this model.
|
protected void |
reset()
explicitly reset the scene-change flag, regardless of whether or not its
been triggered
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter
|
void |
setSceneChangeThreshold(double threshold) |
void |
uninstall(IModel model)
remove this extension from the model
|
public static final java.lang.String CLEAR_CHUNK_TYPE
public static final java.lang.String SCENE_CHANGED_SLOT
public static final java.lang.String SCENE_CHANGED_VALUE_SLOT
public static final java.lang.String SCENE_CHANGE_THRESHOLD_PARAM
public static final java.lang.String ACCELERATED_DETECTION_PARAM
public IModel getModel()
IExtension
getModel
in interface IExtension
public java.lang.String getName()
IExtension
getName
in interface IExtension
public void install(IModel model)
IExtension
install
in interface IExtension
install
in interface IInstallable
model
- Description of the Parameterpublic void uninstall(IModel model)
IExtension
uninstall
in interface IExtension
uninstall
in interface IInstallable
model
- Description of the Parameterpublic void initialize() throws java.lang.Exception
IInitializable
initialize
in interface IInitializable
java.lang.Exception
IInitializable.initialize()
protected void checkForChange()
protected void reset()
public double getSceneChangeThreshold()
public void setSceneChangeThreshold(double threshold)
public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter
in interface IParameterized
key
- Description of the Parameterpublic java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters
in interface IParameterized
public java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters
in interface IParameterized
public void setParameter(java.lang.String key, java.lang.String value)
IParameterized
setParameter
in interface IParameterized