Package de.nordakademie.nxtsimulation.battery

Examples of de.nordakademie.nxtsimulation.battery.NativeBatteryStub


    NxtMotorStub motorA = new NxtMotorStub(0);
    NxtMotorStub motorB = new NxtMotorStub(1);
    NativeMotorPort np = NativeMotorPort.getInstance();
    np.setBehaviour(new NativeMotorPortStub(motorA, motorB, null));   
    NativeBattery nb = NativeBattery.getInstance();
    nb.setBehaviour(new NativeBatteryStub());
   
    Motor.A.stop();
    Motor.B.stop()
    assertEquals(0, motorA.getTachoCount());
    Motor.A.setSpeed(720);
View Full Code Here


    NativeSensorPort nativeSensor = NativeSensorPort.getInstance();
   
    //Verhalten f�r die Cerca Instanzen setzen
    NativeMotorPortStub motorportStub = new NativeMotorPortStub();
    nativeMotorPort.setBehaviour(motorportStub);   
    NativeBatteryStub batteryStub = new NativeBatteryStub();
    nativeBattery.setBehaviour(batteryStub);   
    NativeButtonStub btnStub = new NativeButtonStub();
    nativeButton.setBehaviour(btnStub);     
    NativeLcdStub lcdStub = new NativeLcdStub();
    nativeLcd.setBehaviour(lcdStub);   
View Full Code Here

   */
  protected void initSimulation() {
    // Verhalten f�r die Cerca Instanzen setzen
    motorportStub = new NativeMotorPortStub();
    nativeMotorPort.setBehaviour(motorportStub);
    batteryStub = new NativeBatteryStub();
    nativeBattery.setBehaviour(batteryStub);
    btnStub = new NativeButtonStub();
    nativeButton.setBehaviour(btnStub);
    lcdStub = new NativeLcdStub();
    nativeLcd.setBehaviour(lcdStub);
View Full Code Here

TOP

Related Classes of de.nordakademie.nxtsimulation.battery.NativeBatteryStub

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.