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 BackEMFUpdateEvent 00015 { 00016 Phidget source; 00017 int index; 00018 double voltage; 00019 00025 public BackEMFUpdateEvent(Phidget source, int index, double voltage) 00026 { 00027 this.source = source; 00028 this.index = index; 00029 this.voltage = voltage; 00030 } 00031 00039 public Phidget getSource() { 00040 return source; 00041 } 00042 00048 public int getIndex() { 00049 return index; 00050 } 00051 00057 public double getVoltage() { 00058 return voltage; 00059 } 00060 00066 public String toString() { 00067 return source.toString() + " BackEMF Value " + index + " is " 00068 + voltage; 00069 } 00070 }