Package Localiser

Class ModelControlPanel

java.lang.Object
Localiser.ModelControlPanel
Direct Known Subclasses:
TMModelControlPanel

public class ModelControlPanel extends Object
Generic pane which shows a list of localisation algorithms
Author:
Jamie Macaulay
  • Field Details

    • settings

      public static ImageIcon settings
      Image for setting icon
  • Constructor Details

    • ModelControlPanel

      public ModelControlPanel()
    • ModelControlPanel

      public ModelControlPanel(ArrayList<LocaliserModel> loclaiserList)
      Parameters:
      targetMotionLocaliser -
      targetMotionDialog -
  • Method Details

    • populateModelPanel

      public void populateModelPanel(ArrayList<LocaliserModel> loclaiserList)
      Populate the panel with a list of localisers
      Parameters:
      loclaiserList - list of loclaisers.
    • modelEnable

      public void modelEnable()
      Called whenever a model is enabled.
    • getPanel

      public JPanel getPanel()
      Returns:
      the mainPanel
    • enableControls

      public void enableControls()
      Enable the controls.
    • isEnabled

      public boolean isEnabled(int i)
      Parameters:
      i - model index
      Returns:
      true if a particular model is enabled
    • setEnable

      public void setEnable(int i, boolean enable)
      Enable or disable a model
      Parameters:
      i - model index to enable/disable
      enable - - true to enable, false to disable.
    • getNModels

      public int getNModels()