Package clickDetector.ClickClassifiers
Class ClickTypeMasterManager
java.lang.Object
clickDetector.ClickClassifiers.ClickTypeMasterManager
- All Implemented Interfaces:
ClickTypeProvider
The click type manager manages click types within the click detector. The
click detector has it's own classifier, however other modules e.g. (Matched
Template Classifier, the Click Train Detector/Classifier) can also change
click types. The ClickTypeManager manages click types within the click
detector and other sub modules, providing a master list.
The ClickTypeMasterManager will find any child modules of it's click control which implements ClickTypeProvider.
- Author:
- Jamie Macaulay
-
Constructor Summary
ConstructorDescriptionClickTypeMasterManager
(ClickControl clickControl) The click type master manager constructor -
Method Summary
Modifier and TypeMethodDescriptionint
codeToListIndex
(int code) Returns the index in the list for the click type.int[]
Returns a list of the currently-defined click types / species codes.String[]
Get a list of species names.Get a list of symbols for each species corresponding to getSpeciesList.void
notifyModelChanged
(int changeType) Notifications which are passed from the click detector.void
Get all possible click symbols from the click detector and any downstream processes which change click types.
-
Constructor Details
-
ClickTypeMasterManager
The click type master manager constructor- Parameters:
clickControl
- - the click control.
-
-
Method Details
-
getSymbolsData
Description copied from interface:ClickTypeProvider
Get a list of symbols for each species corresponding to getSpeciesList.- Specified by:
getSymbolsData
in interfaceClickTypeProvider
- Returns:
- list of species symbols.
-
getSpeciesList
Description copied from interface:ClickTypeProvider
Get a list of species names.- Specified by:
getSpeciesList
in interfaceClickTypeProvider
- Returns:
- list speces names.
-
getCodeList
public int[] getCodeList()Description copied from interface:ClickTypeProvider
Returns a list of the currently-defined click types / species codes.- Specified by:
getCodeList
in interfaceClickTypeProvider
- Returns:
- int array with the codes
-
codeToListIndex
public int codeToListIndex(int code) Description copied from interface:ClickTypeProvider
Returns the index in the list for the click type.- Specified by:
codeToListIndex
in interfaceClickTypeProvider
- Parameters:
code
- - the click type code- Returns:
- the index.
-
updateSpeciesList
public void updateSpeciesList()Get all possible click symbols from the click detector and any downstream processes which change click types.- Parameters:
clickControl
- - clikc control.
-
notifyModelChanged
public void notifyModelChanged(int changeType) Notifications which are passed from the click detector.- Parameters:
changeType
-
-