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
ConstructorsConstructorDescriptionClickTypeMasterManager(ClickControl clickControl) The click type master manager constructor - 
Method Summary
Modifier and TypeMethodDescriptionintcodeToListIndex(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.voidnotifyModelChanged(int changeType) Notifications which are passed from the click detector.voidGet 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:ClickTypeProviderGet a list of symbols for each species corresponding to getSpeciesList.- Specified by:
 getSymbolsDatain interfaceClickTypeProvider- Returns:
 - list of species symbols.
 
 - 
getSpeciesList
Description copied from interface:ClickTypeProviderGet a list of species names.- Specified by:
 getSpeciesListin interfaceClickTypeProvider- Returns:
 - list speces names.
 
 - 
getCodeList
public int[] getCodeList()Description copied from interface:ClickTypeProviderReturns a list of the currently-defined click types / species codes.- Specified by:
 getCodeListin interfaceClickTypeProvider- Returns:
 - int array with the codes
 
 - 
codeToListIndex
public int codeToListIndex(int code) Description copied from interface:ClickTypeProviderReturns the index in the list for the click type.- Specified by:
 codeToListIndexin 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-
 
 -