FrequencyCounterCountEvent.java
Go to the documentation of this file.
00001 /*
00002  * Copyright 2011 Phidgets Inc.  All rights reserved.
00003  */
00004 
00005 package com.phidgets.event;
00006 
00007 import com.phidgets.Phidget;
00008 
00014 public class FrequencyCounterCountEvent
00015 {
00016         Phidget source;
00017         int index;
00018         int time;
00019         int count;
00020 
00026         public FrequencyCounterCountEvent(Phidget source, int index, int time, int count) {
00027                 this.source = source;
00028                 this.index = index;
00029                 this.time = time;
00030                 this.count = count;
00031         }
00032 
00040         public Phidget getSource() {
00041                 return source;
00042         }
00043 
00049         public int getIndex() {
00050                 return index;
00051         }
00052 
00058         public int getTime() {
00059                 return time;
00060         }
00061 
00067         public int getCount() {
00068                 return count;
00069         }
00070         
00076         public String toString() {  
00077 
00078                 return source.toString() + " Channel " + index + ": " + count + " pulses in "
00079                   + time + " miroseconds";
00080         }
00081 }


pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:21