Package com.grt192.sensor

Examples of com.grt192.sensor.GRTSwitch


  }

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


  }

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

  }

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

  }

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

  }

  protected void notifyVoltageChange() {
    for (int i = 0; i < powerListeners.size(); i++) {
      ((JagPowerListener) powerListeners.elementAt(i))
          .voltageChanged(new JagPowerEvent(this,
              JagPowerEvent.VOLTAGE_CHANGE, getState("Voltage")));
    }
  }
View Full Code Here

  }

  protected void notifyCurrentChange() {
    for (int i = 0; i < powerListeners.size(); i++) {
      ((JagPowerListener) powerListeners.elementAt(i))
          .currentChanged(new JagPowerEvent(this,
              JagPowerEvent.CURRENT_CHANGE, getState("Current")));
    }
  }
View Full Code Here

  }

  protected void notifyTemperatureChange() {
    for (int i = 0; i < powerListeners.size(); i++) {
      ((JagPowerListener) powerListeners.elementAt(i))
          .temperatureChanged(new JagPowerEvent(this,
              JagPowerEvent.TEMPERATURE_CHANGE, getState("Temperature")));
    }
  }
View Full Code Here

    }

    /** Notifies all listeners that the voltage has changed */
    protected void notifyVoltageChange() {
        for (int i = 0; i < powerListeners.size(); i++) {
            ((JagPowerListener) powerListeners.elementAt(i)).voltageChanged(new JagPowerEvent(this,
                    JagPowerEvent.VOLTAGE_CHANGE, getState(VOLTAGE)));
        }
    }
View Full Code Here

    }

    /** Notifies all listeners that current has changed */
    protected void notifyCurrentChange() {
        for (int i = 0; i < powerListeners.size(); i++) {
            ((JagPowerListener) powerListeners.elementAt(i)).currentChanged(new JagPowerEvent(this,
                    JagPowerEvent.CURRENT_CHANGE, getState(CURRENT)));
        }
    }
View Full Code Here

    }

    /* Notifies all listeners that temperature has changed */
    protected void notifyTemperatureChange() {
        for (int i = 0; i < powerListeners.size(); i++) {
            ((JagPowerListener) powerListeners.elementAt(i)).temperatureChanged(new JagPowerEvent(this,
                    JagPowerEvent.TEMPERATURE_CHANGE, getState(TEMPERATURE)));
        }
    }
View Full Code Here

TOP

Related Classes of com.grt192.sensor.GRTSwitch

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.