Class TargetMotionSQLLogging

java.lang.Object
targetMotionOld.TargetMotionSQLLogging
All Implemented Interfaces:
SQLLoggingAddon
Direct Known Subclasses:
CrossedBearingSQLAddon, TMAnnotationLogging

public class TargetMotionSQLLogging extends Object implements SQLLoggingAddon
Reinstated Target motion add-in as used by the click detector. Hope one day still to replace this with Jamie's new one, but keep this one until Jamie's is working.
Author:
Doug Gillespie
  • Constructor Details

    • TargetMotionSQLLogging

      public TargetMotionSQLLogging(int numResults)
      Parameters:
      numResults - Number of results to display
      initials - initials for prefix of column names.
    • TargetMotionSQLLogging

      public TargetMotionSQLLogging(int numResults, String initials)
      Parameters:
      numResults - Number of results to display
      initials - initials for prefix of column names.
  • Method Details

    • hideColumns

      public void hideColumns(PamTableItem[] tableItems)
    • isHidden

      public boolean isHidden(PamTableItem[] tableItems)
    • unHideColumns

      public void unHideColumns(PamTableItem[] tableItems)
    • addTableItems

      public void addTableItems(EmptyTableDefinition pamTableDefinition)
      Description copied from interface: SQLLoggingAddon
      Add a load of columns to an existing table definition
      Specified by:
      addTableItems in interface SQLLoggingAddon
    • saveData

      public boolean saveData(SQLTypes sqlTypes, EmptyTableDefinition pamTableDefinition, PamDataUnit pamDataUnit)
      Description copied from interface: SQLLoggingAddon
      Save data - that is transfer data from the pamDataUnit to the data objects within the table definition
      Specified by:
      saveData in interface SQLLoggingAddon
      Parameters:
      pamTableDefinition - table definition
      pamDataUnit - data unit
      Returns:
      true if successful
    • loadData

      public boolean loadData(SQLTypes sqlTypes, EmptyTableDefinition pamTableDefinition, PamDataUnit pamDataUnit)
      Description copied from interface: SQLLoggingAddon
      Load data - that is read data from the table definition and turn it into something sensible within or attached to the data unit.
      Specified by:
      loadData in interface SQLLoggingAddon
      Parameters:
      pamTableDefinition - table definition
      pamDataUnit - data unit
      Returns:
      true if successful
    • getTargetMotionLocaliser

      public TargetMotionLocaliser getTargetMotionLocaliser()
      Returns:
      the targetMotionLocaliser
    • setTargetMotionLocaliser

      public void setTargetMotionLocaliser(TargetMotionLocaliser targetMotionLocaliser)
      Parameters:
      targetMotionLocaliser - the targetMotionLocaliser to set
    • getName

      public String getName()
      Description copied from interface: SQLLoggingAddon
      Get a name for the SQLLogging Addon. this is used in identifying the Addon meaning that it should be possible to have two Addon's with the same class, but different fields.
      Specified by:
      getName in interface SQLLoggingAddon
      Returns:
      the name of the Logging Addon
    • getNumResults

      public int getNumResults()
      Returns:
      the numResults
    • getModelName

      public PamTableItem getModelName()
      Returns:
      the modelName
    • getLatitude

      public PamTableItem[] getLatitude()
      Returns:
      the latitude
    • getLongitude

      public PamTableItem[] getLongitude()
      Returns:
      the longitude
    • getSide

      public PamTableItem[] getSide()
      Returns:
      the side
    • getChi2

      public PamTableItem[] getChi2()
      Returns:
      the chi2
    • getAic

      public PamTableItem[] getAic()
      Returns:
      the aic
    • getProb

      public PamTableItem[] getProb()
      Returns:
      the prob
    • getDegsFreedom

      public PamTableItem[] getDegsFreedom()
      Returns:
      the degsFreedom
    • getPerpDist

      public PamTableItem[] getPerpDist()
      Returns:
      the perpDist
    • getPerpdistErr

      public PamTableItem[] getPerpdistErr()
      Returns:
      the perpdistErr
    • getPhones

      public PamTableItem[] getPhones()
      Returns:
      the phones
    • getComment

      public PamTableItem[] getComment()
      Returns:
      the comment
    • getBeamLatitude

      public PamTableItem[] getBeamLatitude()
      Returns:
      the beamLatitude
    • getBeamLongitude

      public PamTableItem[] getBeamLongitude()
      Returns:
      the beamLongitude
    • getBeamTime

      public PamTableItem[] getBeamTime()
      Returns:
      the beamTime
    • getDepth

      public PamTableItem[] getDepth()
      Returns:
      the depth
    • getDepthErr

      public PamTableItem[] getDepthErr()
      Returns:
      the depthErr
    • getLocError

      public PamTableItem[] getLocError()
      Returns:
      the locError
    • getHiddenItems

      public HashSet<PamTableItem[]> getHiddenItems()
      Returns:
      the hiddenItems
    • getLocerrorlength

      public static int getLocerrorlength()
      Returns:
      the locerrorlength