微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

edu.wpi.first.wpilibj.networktables2.util.List的实例源码

项目:2014_software    文件AutonomousParallelStepGroup.java   
public void update() {
    List toRemove = new List();
    for (int i = 0; i < steps.size(); i++) {
        Autonomousstep step = (Autonomousstep) steps.get(i);
        step.update();
        if (step.isFinished()) {
            toRemove.add(step);
        }
    }

    for(int i = 0; i < toRemove.size(); i++)
    {
        steps.remove(toRemove.get(i));
    }

    if (steps.isEmpty()) {
        finished = true;
    }
}
项目:2013_drivebase_proto    文件WsConfigManager.java   
/**
 * Reads the config file /ws_config.txt unless setFileName has been used to
 * change the filename. Supports comment lines using // delineator. Comments
 * can be by themselves on a line or at the end of the line.
 *
 * The config file should be on the format key=value Example:
 * com.wildstangs.WsInputManager.WsDriverJoystick.trim=0.1
 *
 * @throws WsConfigManagerException
 */
public void readConfig() throws WsConfigManagerException {
    try {
        config = (List) WsConfigFacadeImpl.readConfig(configFileName);
    } catch (WsConfigFacadeImplException e) {
        throw new WsConfigManagerException(e.toString());
    }
    Logger.getLogger().always(this.getClass().getName(),"readConfig","Read config File: " + configFileName);
    //Update all the facades
    WsInputManager.getInstance().notifyConfigChange();
    WsOutputManager.getInstance().notifyConfigChange();
    WsSubsystemContainer.getInstance().notifyConfigChange();

}
项目:2014_software    文件ConfigManager.java   
/**
 * Reads the config file /ws_config.txt unless setFileName has been used to
 * change the filename. Supports comment lines using // delineator. Comments
 * can be by themselves on a line or at the end of the line.
 *
 * The config file should be on the format key=value Example:
 * com.wildstangs.InputManager.WsDriverJoystick.trim=0.1
 *
 * @throws ConfigManagerException
 */
public void readConfig() throws ConfigManagerException {
    try {
        config = (List) ConfigManagerImpl.readConfig(configFileName);
    } catch (ConfigManagerImplException e) {
        throw new ConfigManagerException(e.toString());
    }
    Logger.getLogger().always(this.getClass().getName(),"Read config File: " + configFileName);
    //Update all the facades
    InputManager.getInstance().notifyConfigChange();
    OutputManager.getInstance().notifyConfigChange();
    SubsystemContainer.getInstance().notifyConfigChange();

}
项目:2013_robot_software    文件WsConfigManager.java   
/**
 * Reads the config file /ws_config.txt unless setFileName has been used to
 * change the filename. Supports comment lines using // delineator. Comments
 * can be by themselves on a line or at the end of the line.
 *
 * The config file should be on the format key=value Example:
 * com.wildstangs.WsInputManager.WsDriverJoystick.trim=0.1
 *
 * @throws WsConfigManagerException
 */
public void readConfig() throws WsConfigManagerException {
    try {
        config = (List) WsConfigFacadeImpl.readConfig(configFileName);
    } catch (WsConfigFacadeImplException e) {
        throw new WsConfigManagerException(e.toString());
    }
    Logger.getLogger().always(this.getClass().getName(),"Read config File: " + configFileName);
    //Update all the facades
    WsInputManager.getInstance().notifyConfigChange();
    WsOutputManager.getInstance().notifyConfigChange();
    WsSubsystemContainer.getInstance().notifyConfigChange();

}
项目:2013_drivebase_proto    文件Subject.java   
protected Subject(String name,ISubjectEnum type) {
    this.name = name;
    observers = new List();
    this.type = type;
}
项目:2014_software    文件Subject.java   
protected Subject(String name,ISubjectEnum type) {
    this.name = name;
    observers = new List();
    this.type = type;
}
项目:2013_robot_software    文件Subject.java   
protected Subject(String name,ISubjectEnum type) {
    this.name = name;
    observers = new List();
    this.type = type;
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。