Package clickDetector.ClickClassifiers
Class ClickTypeCommonParams
java.lang.Object
clickDetector.ClickClassifiers.ClickTypeCommonParams
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
- Direct Known Subclasses:
ClickTypeParams
,SweepClassifierSet
public abstract class ClickTypeCommonParams
extends Object
implements Cloneable, Serializable, ManagedParameters
Superclass for click parameters, including the ClickTypeParms and
SweepClassifierSet classes. Created to allow simple access to the alarm-
specific parameters
- Author:
- Michael Oswald
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Boolean
True for the classifier to be enabled.static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlarm()
Returns theClickAlarm
associated with this click type.Returns true/false on whether an alarm has been enabled for the clickstatic Boolean
long
getName()
Get a set of data that describes all of the parameters in a classlong
int
void
setAlarm
(ClickAlarm alarm) Sets the alarm used for this click type.void
setAlarmEnabled
(Boolean alarmEnabled) void
setDiscard
(Boolean discard) void
setMaxTime
(long maxTime) void
void
setPrevTime
(long prevTime) void
setSpeciesCode
(int speciesCode)
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
enable
True for the classifier to be enabled.
-
-
Constructor Details
-
ClickTypeCommonParams
public ClickTypeCommonParams()
-
-
Method Details
-
getAlarm
Returns theClickAlarm
associated with this click type.- Returns:
- the ClickAlarm
-
setAlarm
Sets the alarm used for this click type. This is used in the setupProcess() method of ClickDetector to reset a species code's alarm to the default alarm, in case the original alarm has been deleted.- Parameters:
clickAlarm
- the clickAlarm to apply
-
getAlarmEnabled
Returns true/false on whether an alarm has been enabled for the click- Returns:
- Boolean indicating status
-
setAlarmEnabled
-
getPrevTime
public long getPrevTime() -
setPrevTime
public void setPrevTime(long prevTime) -
getMaxTime
public long getMaxTime() -
setMaxTime
public void setMaxTime(long maxTime) -
getDiscard
-
getName
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getSpeciesCode
public int getSpeciesCode()- Returns:
- the speciesCode
-
setSpeciesCode
public void setSpeciesCode(int speciesCode) - Parameters:
speciesCode
- the speciesCode to set
-
getEnable
- Returns:
- the enable
-
setDiscard
- Parameters:
discard
- the discard to set
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-