Package com.grt192.controller

Examples of com.grt192.controller.DashBoardController


  }

  protected void notifyAccelerometerChange(int axis, double value) {
    for (int i = 0; i < accelerometerListeners.size(); i++) {
      ((ADXL345Listener) accelerometerListeners.elementAt(i))
          .didAccelerationChange(new ADXL345Event(this, axis, value));
    }
  }
View Full Code Here


  }

  protected void notifyADXL345Listeners(int axis, double value) {
    for (int i = 0; i < accelerometerListeners.size(); i++) {
      ((ADXL345Listener) accelerometerListeners.elementAt(i))
          .didReceiveAcceleration(new ADXL345Event(this, axis, value));
    }
  }
View Full Code Here

            }
        }
    }

    private void notifyListeners(double newVoltage){
        BatteryVoltageEvent ev = new BatteryVoltageEvent(this, newVoltage);
        for(int i = 0; i<listeners.size(); i++){
            ((BatteryVoltageListener)listeners.elementAt(i)).batteryVoltageChanged(ev);
        }
    }
View Full Code Here

    protected void notifyEncoderChange(){
        for(int i=0; i<encoderListeners.size(); i++){
            ((EncoderListener)
                    encoderListeners.elementAt(i)).countDidChange(
                            new EncoderEvent(this,
                                                   EncoderEvent.DISTANCE,
                                                   getState("Distance"),
                                                   (getState("Direction")
                                                            == Sensor.TRUE)
                                                   )
View Full Code Here

    protected void notifyEncoderStarted(){
        for(int i=0; i<encoderListeners.size(); i++){
            ((EncoderListener)
                    encoderListeners.elementAt(i)).rotationDidStart(
                            new EncoderEvent(this,
                                                   EncoderEvent.STOPPED,
                                                   getState("Distance"),
                                                   (getState("Direction")
                                                            == Sensor.TRUE)
                                                   )
View Full Code Here

    protected void notifyEncoderStopped(){
        for(int i=0; i<encoderListeners.size(); i++){
            ((EncoderListener)
                    encoderListeners.elementAt(i)).rotationDidStop(
                            new EncoderEvent(this,
                                                   EncoderEvent.STOPPED,
                                                   getState("Distance"),
                                                   (getState("Direction")
                                                            == Sensor.TRUE)
                                                   )
View Full Code Here

    }
    protected void notifyDirectionChanged(){
        for(int i=0; i<encoderListeners.size(); i++){
            ((EncoderListener)
                    encoderListeners.elementAt(i)).rotationDidStop(
                            new EncoderEvent(this,
                                                   EncoderEvent.DIRECTION,
                                                   getState("Distance"),
                                                   (getState("Direction")
                                                            == Sensor.TRUE)
                                                   )
View Full Code Here

  }

  protected void notifyGyroSpike() {
    for (int i = 0; i < gyroListeners.size(); i++) {
      ((GyroListener) gyroListeners.elementAt(i))
          .didAngleSpike(new GyroEvent(this, GyroEvent.SPIKE,
              getState("Angle")));
    }
  }
View Full Code Here

  }

  protected void notifyGyroChange() {
    for (int i = 0; i < gyroListeners.size(); i++) {
      ((GyroListener) gyroListeners.elementAt(i))
          .didAngleChange(new GyroEvent(this, GyroEvent.CHANGE,
              getState("Angle")));
    }
  }
View Full Code Here

  }

  protected void notifyGyroListeners() {
    for (int i = 0; i < gyroListeners.size(); i++) {
      ((GyroListener) gyroListeners.elementAt(i))
          .didReceiveAngle(new GyroEvent(this, GyroEvent.NEW_DATA,
              getState("Angle")));
    }
  }
View Full Code Here

TOP

Related Classes of com.grt192.controller.DashBoardController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.