EncoderPositionUpdateEvent.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 EncoderPositionUpdateEvent
00015 {
00016         Phidget source;
00017         int index;
00018         int value;
00019         
00025         public EncoderPositionUpdateEvent(Phidget source, int index, int value)
00026         {
00027                 this.source = source;
00028                 this.index = index;
00029                 this.value = value;
00030         
00031         }
00032 
00040         public Phidget getSource() {
00041                 return source;
00042         }
00043 
00049         public int getIndex() {
00050                 return index;
00051         }
00052 
00059         public int getValue() {
00060                 return value;
00061         }
00062 
00068         public String toString() {
00069                 
00070                 return source.toString() + " encoder position " + index + " is "
00071                   + value;
00072         }
00073 }


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