SensorEvent.java :  » UnTagged » mastercontroller » com » mc » main » Android Open Source

Android Open Source » UnTagged » mastercontroller 
mastercontroller » com » mc » main » SensorEvent.java
package com.mc.main;

import java.util.EventObject;

/**
 * Event that occurs when a sensor is read at time 'time' 
 * and value 'value' is read.
 * 
 * @author Mikael Bertlin
 *
 */

public class SensorEvent extends EventObject{
  
  private static final long serialVersionUID = 1L;
  private int value = 0;
  private int time = 0;
  
  public SensorEvent(Object source, int value) {
    super(source);
    this.value = value;
  }
  
  public int getValue(){
    return value;
  }
  public void setValue(int value){
    this.value = value;
  }
  public void setTime(int time){
    this.time = time;
  }
  public int getTime(){
    return time;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.