项目:snobot-2017
文件:SmartDashboard.java
/**
* Returns the value at the specified key.
*
* @param key the key
* @return the value
* @throws NetworkTableKeyNotDefined if there is no value mapped to by the key
* @throws IllegalArgumentException if the key is null
*/
public static Sendable getData(String key) {
ITable subtable = table.getSubTable(key);
Object data = tablesToData.get(subtable);
if (data == null) {
throw new IllegalArgumentException("SmartDashboard data does not exist: " + key);
} else {
return (Sendable) data;
}
}
项目:2017SteamBot2
文件:CustomDashboard.java
public static void putData(String name,Sendable value) {
SmartDashboard.putData(name,value);
}
项目:2017SteamBot2
文件:CustomDashboard.java
public static Sendable getData(String name) {
return SmartDashboard.getData(name);
}
项目:snobot-2017
文件:SmartDashboard.java
/**
* Maps the specified key to the specified value in this table. The key can not be null. The value
* can be retrieved by calling the get method with a key that is equal to the original key.
*
* @param key the key
* @param data the value
* @throws IllegalArgumentException If key is null
*/
public static void putData(String key,Sendable data) {
ITable dataTable = table.getSubTable(key);
dataTable.putString("~TYPE~",data.getSmartDashboardType());
data.initTable(dataTable);
tablesToData.put(data,key);
}
项目:wpilibj
文件:SmartDashboard.java
/**
* Maps the specified key to the specified value in this table.
* The key can not be null.
* The value can be retrieved by calling the get method with a key that is equal to the original key.
* @param key the key
* @param data the value
* @throws IllegalArgumentException if key is null
*/
public static void putData(String key,Sendable data) {
ITable dataTable = table.getSubTable(key);
dataTable.putString("~TYPE~",data.getSmartDashboardType());
data.initTable(dataTable);
tablesToData.put(data,key);
}
项目:2013_drivebase_proto
文件:SmartDashboard.java
/**
* Maps the specified key to the specified value in this table.
* The key can not be null.
* The value can be retrieved by calling the get method with a key that is equal to the original key.
* @param key the key
* @param data the value
* @throws IllegalArgumentException if key is null
*/
public static void putData(String key,key);
}
项目:2014_software
文件:SmartDashboard.java
/**
* Maps the specified key to the specified value in this table.
* The key can not be null.
* The value can be retrieved by calling the get method with a key that is equal to the original key.
* @param key the key
* @param data the value
* @throws IllegalArgumentException if key is null
*/
public static void putData(String key,key);
}
项目:wpilib-java
文件:SmartDashboard.java
/**
* Maps the specified key to the specified value in this table.
* The key can not be null.
* The value can be retrieved by calling the get method with a key that is equal to the original key.
* @param key the key
* @param data the value
* @throws IllegalArgumentException if key is null
*/
public static void putData(String key,key);
}
项目:2013_robot_software
文件:SmartDashboard.java
/**
* Maps the specified key to the specified value in this table.
* The key can not be null.
* The value can be retrieved by calling the get method with a key that is equal to the original key.
* @param key the key
* @param data the value
* @throws IllegalArgumentException if key is null
*/
public static void putData(String key,key);
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。