net.esper.type
Class TimePeriodParameter

java.lang.Object
  extended by net.esper.type.TimePeriodParameter
All Implemented Interfaces:
Serializable, EQLParameterType, MetaDefItem

public class TimePeriodParameter
extends Object
implements MetaDefItem, EQLParameterType

Parameter for views that accept time period information such as "5 sec 100 msec".

See Also:
Serialized Form

Constructor Summary
TimePeriodParameter(double numSeconds)
          Ctor.
 
Method Summary
 boolean equals(Object object)
           
 double getNumSeconds()
          Returns the number of seconds.
 int hashCode()
           
 void toEQL(StringWriter writer)
          Returns the EQL representation of the parameter.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimePeriodParameter

public TimePeriodParameter(double numSeconds)
Ctor.

Parameters:
numSeconds - is the number of seconds represented by time period string
Method Detail

getNumSeconds

public double getNumSeconds()
Returns the number of seconds.

Returns:
the number of seconds specified by time period string

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toEQL

public void toEQL(StringWriter writer)
Description copied from interface: EQLParameterType
Returns the EQL representation of the parameter.

Specified by:
toEQL in interface EQLParameterType
Parameters:
writer - for output to