clickDetector
Class ClickTrainDetection

java.lang.Object
  extended by PamguardMVC.PamDataUnit
      extended by PamDetection.AcousticDataUnit
          extended by PamDetection.PamDetection<t,PamDetection>
              extended by Localiser.GroupDetection<ClickDetection>
                  extended by clickDetector.ClickGroupDetection
                      extended by clickDetector.ClickTrainDetection
All Implemented Interfaces:
java.lang.Comparable<PamDataUnit>

public class ClickTrainDetection
extends ClickGroupDetection


Field Summary
(package private)  ClickControl clickControl
           
(package private)  ClickDetector clickDetector
           
(package private)  double firstClickAngle
           
private static int globalEventId
           
private  ClickDetection lastClick
           
(package private)  long lastClickTime
           
(package private)  double lastFittedAngle
           
(package private)  int lastFittedUnitIndex
           
private  double maxAngle
           
private  double minAngle
           
(package private)  double runningICI
           
private  boolean shouldPlot
           
static int STATUS_BINME
           
static int STATUS_CLOSED
           
static int STATUS_OPEN
           
static int STATUS_STARTING
           
private  int trainId
           
private  int trainStatus
           
 
Fields inherited from class PamDetection.AcousticDataUnit
AMPLITUDE_SCALE_DBREMPA, AMPLITUDE_SCALE_LINREFSD, duration, frequency, startSample
 
Fields inherited from class PamguardMVC.PamDataUnit
absBlockIndex, channelBitmap, localisation, oLL, timeMilliseconds
 
Constructor Summary
ClickTrainDetection(ClickControl clickControl, ClickDetection click)
           
 
Method Summary
(package private)  boolean addClick(ClickDetection click)
           
(package private)  double expectedAngle(ClickDetection click, int side)
           
(package private)  double getICI(ClickDetection newClick)
           
(package private)  double getICI(ClickDetection secondClick, ClickDetection firstClick)
           
 ClickDetection getLastClick()
           
 long getLastClickTime()
           
 double getMaxAngle()
           
 double getMinAngle()
           
 int getTrainId()
           
 int getTrainStatus()
           
 boolean isShouldPlot()
           
 void setShouldPlot(boolean shouldPlot)
           
 void setTrainId(int trainId)
           
 void setTrainStatus(int trainStatus)
           
(package private)  double testClick(ClickDetection click)
           
 
Methods inherited from class Localiser.GroupDetection
addFitData, addSubDetection, clearFitData, getBearing, getErrorReferenceAngle, getEventId, getGroupDetectionLocalisation, getLatLong, getNumLatLong, getOriginLatLong, getParallelError, getPerpendiculaError, getPredictedBearing, getRange, getReferenceChannels, getReferenceHeading, getStatus, isHasFit, setBearing, setErrorReferenceAngle, setEventId, setFitData, setLatLong, setNumLatLong, setOriginLatLong, setParallelError, setPerpendicularError, setRange, setReferenceChannels, setReferenceHeading, setStatus
 
Methods inherited from class PamDetection.PamDetection
addSuperDetection, getDetectionType, getPeakTime, getSubDetection, getSubDetectionsCount, getSubDetectionSyncronisation, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, removeSubDetection, removeSuperDetection, setDetectionType, setPeakTime, setUniqueSuperDetection
 
Methods inherited from class PamDetection.AcousticDataUnit
amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, compareTo, getAmplitudeDB, getCalculatedAmlitudeDB, getDuration, getFrequency, getFrequencyOverlap, getLastSample, getMeasuredAmplitude, getMeasuredAmplitudeType, getSeconds, getStartSample, getTimeOverlap, setCalculatedAmlitudeDB, setDuration, setFrequency, setInfo, setMeasuredAmplitude, setMeasuredAmplitude, setMeasuredAmplitudeType, setStartSample
 
Methods inherited from class PamguardMVC.PamDataUnit
clearUpdateCount, getAbsBlockIndex, getChannelBitmap, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getGpsPosition, getLastUpdateTime, getLocalisation, getOriginLatLong, getPairAngle, getParentDataBlock, getTimeMilliseconds, getUpdateCount, setAbsBlockIndex, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setLastUpdateTime, setLocalisation, setOriginLatLong, setParentDataBlock, setTimeMilliseconds, updateDataUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clickControl

ClickControl clickControl

STATUS_STARTING

public static final int STATUS_STARTING
See Also:
Constant Field Values

STATUS_OPEN

public static final int STATUS_OPEN
See Also:
Constant Field Values

STATUS_CLOSED

public static final int STATUS_CLOSED
See Also:
Constant Field Values

STATUS_BINME

public static final int STATUS_BINME
See Also:
Constant Field Values

trainStatus

private int trainStatus

minAngle

private double minAngle

maxAngle

private double maxAngle

runningICI

double runningICI

lastClickTime

long lastClickTime

firstClickAngle

double firstClickAngle

lastFittedAngle

double lastFittedAngle

lastFittedUnitIndex

int lastFittedUnitIndex

clickDetector

ClickDetector clickDetector

lastClick

private ClickDetection lastClick

globalEventId

private static int globalEventId

trainId

private int trainId

shouldPlot

private boolean shouldPlot
Constructor Detail

ClickTrainDetection

ClickTrainDetection(ClickControl clickControl,
                    ClickDetection click)
Method Detail

testClick

double testClick(ClickDetection click)

getICI

double getICI(ClickDetection newClick)

getICI

double getICI(ClickDetection secondClick,
              ClickDetection firstClick)

expectedAngle

double expectedAngle(ClickDetection click,
                     int side)

addClick

boolean addClick(ClickDetection click)

getTrainStatus

public int getTrainStatus()

setTrainStatus

public void setTrainStatus(int trainStatus)

getTrainId

public int getTrainId()

setTrainId

public void setTrainId(int trainId)

getMaxAngle

public double getMaxAngle()

getMinAngle

public double getMinAngle()

getLastClickTime

public long getLastClickTime()

getLastClick

public ClickDetection getLastClick()

isShouldPlot

public boolean isShouldPlot()

setShouldPlot

public void setShouldPlot(boolean shouldPlot)