Package clickDetector
Class ClickAlarm
java.lang.Object
clickDetector.ClickAlarm
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<ClickAlarm>
,ManagedParameters
public class ClickAlarm
extends Object
implements Comparable<ClickAlarm>, Serializable, Cloneable, ManagedParameters
Alarm object for the Click Alarm
- Author:
- Michael Oswald
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor with no passed name - just use the default nameClickAlarm
(String name) Constructor used to set the name of the new alarm. -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
compareTo
(ClickAlarm alarm) getName()
Get a set of data that describes all of the parameters in a classstatic long
boolean
boolean
void
selectDefault
(boolean defaultSoundFlag) void
setFileLoaded
(boolean fileIsLoaded) void
void
setUserAlarmFile
(String userAlarmFile) toString()
boolean
Check if we're using the default sound file for the alarm.
-
Field Details
-
serialVersionUID
public static final long serialVersionUIDfor serialization- See Also:
-
DEFAULTNAME
Default alarm name- See Also:
-
DEFAULTDING
Default alarm sound
-
-
Constructor Details
-
ClickAlarm
public ClickAlarm()Constructor with no passed name - just use the default name -
ClickAlarm
Constructor used to set the name of the new alarm. Defaults to the DEFAULTDING constant, and loads it right away
-
-
Method Details
-
getUserAlarmFile
-
setUserAlarmFile
-
useDefault
public boolean useDefault()Check if we're using the default sound file for the alarm. True indicates this alarm uses the default sound file. False indicates this alarm uses a user-defined sound file. -
selectDefault
public void selectDefault(boolean defaultSoundFlag) -
getName
-
setName
-
loadAlarm
public boolean loadAlarm() -
isFileLoaded
public boolean isFileLoaded() -
setFileLoaded
public void setFileLoaded(boolean fileIsLoaded) -
getClickClip
-
clone
-
getSerialVersionUID
public static long getSerialVersionUID() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ClickAlarm>
-
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.
-