- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.yoVariables.variable.YoVariable.getYoVariableRegistry()
方法的一些代码示例,展示了YoVariable.getYoVariableRegistry()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoVariable.getYoVariableRegistry()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoVariable
类名称:YoVariable
方法名:getYoVariableRegistry
[英]Retrieves the YoVariableRegistry this variable belongs to.
[中]检索此变量所属的YoVariableRegistry。
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
public ArrayList<YoVariable<?>> getVariables(String nameSpaceEnding, String name)
{
if (name.contains("."))
{
throw new RuntimeException(name + " contains a dot. It must not when calling getVariables(String nameSpace, String name)");
}
ArrayList<YoVariable<?>> variablesWithThisName = yoVariableSet.get(name.toLowerCase());
if (variablesWithThisName == null)
{
return new ArrayList<YoVariable<?>>(0);
}
ArrayList<YoVariable<?>> ret = new ArrayList<YoVariable<?>>();
for (int i = 0; i < variablesWithThisName.size(); i++)
{
YoVariable<?> yoVariable = variablesWithThisName.get(i);
if (yoVariable.getYoVariableRegistry().getNameSpace().endsWith(nameSpaceEnding))
{
ret.add(yoVariable);
}
}
return ret;
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
public ArrayList<YoVariable<?>> getVariables(NameSpace nameSpace)
{
ArrayList<YoVariable<?>> ret = new ArrayList<YoVariable<?>>();
Collection<ArrayList<YoVariable<?>>> variableLists = yoVariableSet.values();
for (ArrayList<YoVariable<?>> list : variableLists)
{
for (YoVariable<?> variable : list)
{
if (variable.getYoVariableRegistry().getNameSpace().equals(nameSpace))
{
ret.add(variable);
}
}
}
return ret;
}
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
public ArrayList<YoVariable<?>> getVariables(NameSpace nameSpace)
{
ArrayList<YoVariable<?>> ret = new ArrayList<YoVariable<?>>();
ArrayList<YoVariable<?>> allVariables = getAllVariables();
for (YoVariable<?> variable : allVariables)
{
if (variable.getYoVariableRegistry().getNameSpace().equals(nameSpace))
{
ret.add(variable);
}
}
return ret;
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
public YoVariable<?> getVariable(String nameSpaceEnding, String name)
{
if (name.contains("."))
{
throw new RuntimeException(name + " contains a dot. It must not when calling getVariable(String nameSpace, String name)");
}
ArrayList<YoVariable<?>> variablesWithThisName = yoVariableSet.get(name.toLowerCase());
if (variablesWithThisName == null)
{
return null;
}
YoVariable<?> foundVariable = null;
for (int i = 0; i < variablesWithThisName.size(); i++)
{
YoVariable<?> yoVariable = variablesWithThisName.get(i);
if (yoVariable.getYoVariableRegistry().getNameSpace().endsWith(nameSpaceEnding))
{
if (foundVariable != null)
{
throw new RuntimeException("Called getVariable with " + nameSpaceEnding + ", " + name
+ ". That is insufficient name information to distinguish a unique variable! Please include more of the name space!");
}
foundVariable = yoVariable;
}
}
return foundVariable;
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
public boolean hasUniqueVariable(String nameSpaceEnding, String name)
{
if (name.contains("."))
{
throw new RuntimeException(name + " contains a dot. It must not when calling hasVariable(String nameSpace, String name)");
}
ArrayList<YoVariable<?>> variablesWithThisName = yoVariableSet.get(name.toLowerCase());
if (variablesWithThisName == null)
{
return false;
}
boolean foundVariable = false;
for (int i = 0; i < variablesWithThisName.size(); i++)
{
YoVariable<?> yoVariable = variablesWithThisName.get(i);
if (yoVariable.getYoVariableRegistry().getNameSpace().endsWith(nameSpaceEnding))
{
if (foundVariable)
{
return false;
}
foundVariable = true;
}
}
return foundVariable;
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private void updateSendVars()
{
sendVariables.clear();
int numberToIterate = allVariables.size();
for (int i=0; i<numberToIterate; i++)
{
YoVariable<?> var = allVariables.getVariable(i);
YoVariableRegistry registry = var.getYoVariableRegistry();
if (registry.isSent())
{
sendVariables.add(var);
}
}
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private void updateLogVarsCount()
{
logVarsCount = 0;
int numberToIterate = allVariables.size();
for (int i=0; i<numberToIterate; i++)
{
YoVariable<?> var = allVariables.getVariable(i);
if (var.getYoVariableRegistry().isLogged())
logVarsCount++;
}
}
本文整理了Java中us.ihmc.yoVariables.variable.YoVariable.getYoVariableRegistry()方法的一些代码示例,展示了YoVariable.get
我是一名优秀的程序员,十分优秀!