edu.washington.cs.sounddetector.server.api.object
Class PeakEvent
java.lang.Object
edu.washington.cs.sounddetector.server.api.object.PeakEvent
- All Implemented Interfaces:
- Serializable
public class PeakEvent
- extends Object
- implements Serializable
A PeakEvent describes a time, magnitude, and duration of a peak in a sound
- Author:
- the.dylan.price@gmail.com
- See Also:
- Serialized Form
Constructor Summary |
PeakEvent()
|
PeakEvent(double time,
double magnitude,
double duration)
Construct a new PeakEvent. |
PeakEvent
public PeakEvent()
PeakEvent
public PeakEvent(double time,
double magnitude,
double duration)
- Construct a new PeakEvent.
- Parameters:
time
- the time of the peakmagnitude
- the magnitude of the peak from 0 to 100duration
- the duration of the peak
getDuration
public double getDuration()
- Returns:
- the duration
setDuration
public void setDuration(double duration)
- Parameters:
duration
- the duration to set
setTime
public void setTime(double time)
- Parameters:
time
- the time to set
setMagnitude
public void setMagnitude(double magnitude)
- Parameters:
magnitude
- the magnitude to set
getTime
public double getTime()
- Returns:
- the time
getMagnitude
public double getMagnitude()
- Returns:
- the magnitude
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2012. All Rights Reserved.