com.phidgets.event
Class FrequencyCounterCountEvent

java.lang.Object
  extended bycom.phidgets.event.FrequencyCounterCountEvent

public class FrequencyCounterCountEvent
extends java.lang.Object

This class represents the data for a FrequencyCounterCountEvent.

Author:
Phidgets Inc.

Constructor Summary
FrequencyCounterCountEvent(Phidget source, int index, int time, int count)
          Class constructor.
 
Method Summary
 int getCount()
          Returns the number of counts detected.
 int getIndex()
          Returns the index of the channel.
 Phidget getSource()
          Returns the source Phidget of this event.
 int getTime()
          Returns the amount of time in which the number of counts occured, in microseconds.
 java.lang.String toString()
          Returns a string containing information about the event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrequencyCounterCountEvent

public FrequencyCounterCountEvent(Phidget source,
                                  int index,
                                  int time,
                                  int count)
Class constructor. This is called internally by the phidget library when creating this event.

Parameters:
source - the Phidget object from which this event originated
Method Detail

getSource

public Phidget getSource()
Returns the source Phidget of this event. This is a reference to the Phidget object from which this event was called. This object can be cast into a specific type of Phidget object to call specific device calls on it.

Returns:
the event caller

getIndex

public int getIndex()
Returns the index of the channel.

Returns:
the index of the channel

getTime

public int getTime()
Returns the amount of time in which the number of counts occured, in microseconds.

Returns:
the amount of time in which the number of counts occured

getCount

public int getCount()
Returns the number of counts detected.

Returns:
the number of counts detected

toString

public java.lang.String toString()
Returns a string containing information about the event.

Returns:
an informative event string