Class ClickTypeMasterManager

java.lang.Object
clickDetector.ClickClassifiers.ClickTypeMasterManager
All Implemented Interfaces:
ClickTypeProvider

public class ClickTypeMasterManager extends Object implements 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 Details

    • ClickTypeMasterManager

      public ClickTypeMasterManager(ClickControl clickControl)
      The click type master manager constructor
      Parameters:
      clickControl - - the click control.
  • Method Details

    • getSymbolsData

      public SymbolData[] getSymbolsData()
      Description copied from interface: ClickTypeProvider
      Get a list of symbols for each species corresponding to getSpeciesList.
      Specified by:
      getSymbolsData in interface ClickTypeProvider
      Returns:
      list of species symbols.
    • getSpeciesList

      public String[] getSpeciesList()
      Description copied from interface: ClickTypeProvider
      Get a list of species names.
      Specified by:
      getSpeciesList in interface ClickTypeProvider
      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 interface ClickTypeProvider
      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 interface ClickTypeProvider
      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 -