edu.washington.cs.sounddetector.server.api.object
Class PeakEvent

java.lang.Object
  extended by 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.
 
Method Summary
 boolean equals(Object obj)
           
 double getDuration()
           
 double getMagnitude()
           
 double getTime()
           
 int hashCode()
           
 void setDuration(double duration)
           
 void setMagnitude(double magnitude)
           
 void setTime(double time)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeakEvent

public PeakEvent()

PeakEvent

public PeakEvent(double time,
                 double magnitude,
                 double duration)
Construct a new PeakEvent.

Parameters:
time - the time of the peak
magnitude - the magnitude of the peak from 0 to 100
duration - the duration of the peak
Method Detail

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.