當前位置: 首頁>>代碼示例>>Java>>正文


Java BooleanSubject.setValue方法代碼示例

本文整理匯總了Java中com.wildstangs.subjects.base.BooleanSubject.setValue方法的典型用法代碼示例。如果您正苦於以下問題:Java BooleanSubject.setValue方法的具體用法?Java BooleanSubject.setValue怎麽用?Java BooleanSubject.setValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.wildstangs.subjects.base.BooleanSubject的用法示例。


在下文中一共展示了BooleanSubject.setValue方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    if (false == funnelatorSwitch) {
        finished = true;
    } else {
        WsFloorPickup subsystem = (WsFloorPickup) (WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_FLOOR_PICKUP));
        Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_5);
        BooleanSubject backButton = (BooleanSubject) subject;

        if (subsystem.getMotorBack() == false) {
            backButton.setValue(true);
        }
    }
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:14,代碼來源:WsAutonomousStepIntakeIfFunnelatorTripped.java

示例2: update

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void update() {
    if (false == funnelatorSwitch) {
        Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_5);
        BooleanSubject backButton = (BooleanSubject) subject;
        backButton.setValue(false);
        finished = true;
    }
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:9,代碼來源:WsAutonomousStepIntakeIfFunnelatorTripped.java

示例3: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    WsFloorPickup subsystem = (WsFloorPickup) (WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_FLOOR_PICKUP));
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.DRIVER_JOYSTICK).getSubject(WsJoystickButtonEnum.DRIVER_BUTTON_5);
    BooleanSubject button = (BooleanSubject) subject;

    if (subsystem.isUp()) {
        button.setValue(true);
    }
    finished = true;
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:11,代碼來源:WsAutonomousStepLowerAccumulator.java

示例4: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_9);
    BooleanSubject backButton = (BooleanSubject) subject;

    backButton.setValue(false);
    finished = true;
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:8,代碼來源:WsAutonomousStepOverrideFunnelatorUpButtonOff.java

示例5: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_9);
    BooleanSubject backButton = (BooleanSubject) subject;

    backButton.setValue(true);
    finished = true;
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:8,代碼來源:WsAutonomousStepOverrideFunnelatorUpButtonOn.java

示例6: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    WsFloorPickup subsystem = (WsFloorPickup) (WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_FLOOR_PICKUP));
    Subject forwardSubject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_5);
    Subject backSubject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_7);
    BooleanSubject forwardButton = (BooleanSubject) forwardSubject;
    BooleanSubject backButton = (BooleanSubject) backSubject;

    forwardButton.setValue(false);
    backButton.setValue(false);
    finished = true;

}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:13,代碼來源:WsAutonomousStepIntakeMotorStop.java

示例7: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    WsFloorPickup subsystem = (WsFloorPickup) (WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_FLOOR_PICKUP));
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_5);
    BooleanSubject backButton = (BooleanSubject) subject;

    if (subsystem.getMotorBack() == false) {
        backButton.setValue(true);
    }
    finished = true;
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:11,代碼來源:WsAutonomousStepIntakeMotorPullFrisbeesIn.java

示例8: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_10);
    BooleanSubject backButton = (BooleanSubject) subject;

    backButton.setValue(false);
    finished = true;
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:8,代碼來源:WsAutonomousStepOverrideFunnelatorButtonOff.java

示例9: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_10);
    BooleanSubject backButton = (BooleanSubject) subject;

    backButton.setValue(true);
    finished = true;
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:8,代碼來源:WsAutonomousStepOverrideFunnelatorButtonOn.java

示例10: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    WsFloorPickup subsystem = (WsFloorPickup) (WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_FLOOR_PICKUP));
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_7);
    BooleanSubject forwardButton = (BooleanSubject) subject;

    if (subsystem.getMotorForward() == false) {
        forwardButton.setValue(true);
    }
    finished = true;

}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:12,代碼來源:WsAutonomousStepIntakeMotorPushFrisbeesOut.java

示例11: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    WsFloorPickup subsystem = (WsFloorPickup) (WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_FLOOR_PICKUP));
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.DRIVER_JOYSTICK).getSubject(WsJoystickButtonEnum.DRIVER_BUTTON_5);
    BooleanSubject button = (BooleanSubject) subject;
    if (!subsystem.isUp()) {
        button.setValue(false);
    }
    //Latch how many discs are in the accumulator
    ((WsIntake) WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_INTAKE)).latchNumDiscs();
    finished = true;
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:12,代碼來源:WsAutonomousStepRaiseAccumulator.java

示例12: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    wait = false;
    WsHopper subsystem = (WsHopper) (WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_HOPPER));
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_8);
    BooleanSubject button = (BooleanSubject) subject;

    if (!subsystem.isHopperUp()) {
        button.setValue(true);
        wait = true;
    }
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:12,代碼來源:WsAutonomousStepRaiseHopper.java

示例13: update

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void update() {
    if (!wait) {
        WsHopper subsystem = (WsHopper) (WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_HOPPER));
        Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_8);
        BooleanSubject button = (BooleanSubject) subject;
        if (button.getValue()) {
            button.setValue(false);
        }
        finished = true;
    } else {
        wait = false;
    }
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:14,代碼來源:WsAutonomousStepRaiseHopper.java

示例14: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_6);
    WsHopper subsystem = (WsHopper) (WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_HOPPER));
    //Check if the kicker is already kicking and set up wait
    if (subsystem.getKickerValue() == true) {
        waitForKickerTrueToFalse = true;
        waitForKickerFalseToTrue = false;
    } else {
        subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_6);
        BooleanSubject button = (BooleanSubject) subject;
        button.setValue(true);
        waitForKickerFalseToTrue = true;
        waitForKickerTrueToFalse = false;
    }
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:16,代碼來源:WsAutonomousStepKick.java

示例15: initialize

import com.wildstangs.subjects.base.BooleanSubject; //導入方法依賴的package包/類
public void initialize() {
    WsHopper subsystem = (WsHopper) (WsSubsystemContainer.getInstance().getSubsystem(WsSubsystemContainer.WS_HOPPER));
    Subject subject = WsInputManager.getInstance().getOiInput(WsInputManager.MANIPULATOR_JOYSTICK).getSubject(WsJoystickButtonEnum.MANIPULATOR_BUTTON_8);
    BooleanSubject button = (BooleanSubject) subject;

    if (subsystem.isHopperUp()) {
        button.setValue(true);
        wait = true;
    }
}
 
開發者ID:wildstang111,項目名稱:2013_drivebase_proto,代碼行數:11,代碼來源:WsAutonomousStepLowerHopper.java


注:本文中的com.wildstangs.subjects.base.BooleanSubject.setValue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。