本文整理了Java中us.ihmc.robotics.dataStructures.variable.YoVariable.getFullNameWithNameSpace()
方法的一些代码示例,展示了YoVariable.getFullNameWithNameSpace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoVariable.getFullNameWithNameSpace()
方法的具体详情如下:
包路径:us.ihmc.robotics.dataStructures.variable.YoVariable
类名称:YoVariable
方法名:getFullNameWithNameSpace
暂无
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
/**
* hasSameFullName
*
* @param variable YoVariable
* @return boolean
*/
public boolean hasSameFullName(YoVariable<?> variable)
{
return this.getFullNameWithNameSpace().equals(variable.getFullNameWithNameSpace());
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
private static YoVariable<?> getVariableWithSameName(ArrayList<YoVariable<?>> variables, YoVariable<?> variableToMatch)
{
for (YoVariable<?> variable : variables)
{
if (variable.getFullNameWithNameSpace().equals(variableToMatch.getFullNameWithNameSpace()))
return variable;
}
return null;
}
代码示例来源:origin: us.ihmc/IHMCRobotDataLogger
public int getYoVariable(List<YoVariable<?>> yoVariables, String name)
{
for(int i = 0; i < yoVariables.size(); i++)
{
if(yoVariables.get(i).getFullNameWithNameSpace().endsWith(name))
{
return i;
}
}
return -1;
}
代码示例来源:origin: us.ihmc/IHMCRobotDataLogger
public String[] getSummarizedVariables()
{
ArrayList<String> allVariables = new ArrayList<>();
allVariables.addAll(summarizedVariables);
for(YoVariable<?> var : summarizedYoVariables)
{
allVariables.add(var.getFullNameWithNameSpace());
}
return allVariables.toArray(new String[allVariables.size()]);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void printAllVariablesIncludingDescendants(PrintStream out)
{
for (YoVariable<?> var : controlVars)
{
out.print(var.getFullNameWithNameSpace() + "\n");
}
for (YoVariableRegistry child : children)
{
child.printAllVariablesIncludingDescendants(out);
}
}
代码示例来源:origin: us.ihmc/IHMCRobotDataLogger
public void createSummary(YoVariable<?> isWalkingVariable)
{
createSummary(isWalkingVariable.getFullNameWithNameSpace());
}
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
public void validateReadAccess(YoVariable<?> v)
{
Thread currentThread = Thread.currentThread();
switch(currentThread.getName())
{
case "AWT-EventQueue-0":
case "SCS simulation thread":
case "CombinedVarPanelTimer":
return;
}
if (accessorThread == null)
{
accessorThread = currentThread;
}
if (!currentThread.equals(accessorThread))
{
try
{
throw new Exception("Variable " + v.getFullNameWithNameSpace() + " read by thread " + currentThread + ", expected: " + accessorThread);
}
catch(Exception e)
{
if (DEBUG)
{
e.printStackTrace();
}
}
}
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void validateReadAccess(YoVariable<?> v)
{
Thread currentThread = Thread.currentThread();
switch(currentThread.getName())
{
case "AWT-EventQueue-0":
case "SCS simulation thread":
case "CombinedVarPanelTimer":
return;
}
if (accessorThread == null)
{
accessorThread = currentThread;
}
if (!currentThread.equals(accessorThread))
{
try
{
throw new Exception("Variable " + v.getFullNameWithNameSpace() + " read by thread " + currentThread + ", expected: " + accessorThread);
}
catch(Exception e)
{
if (DEBUG)
{
e.printStackTrace();
}
}
}
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
private void testAccess(YoVariable<?> v)
{
Thread currentThread = Thread.currentThread();
switch (currentThread.getName())
{
case "AWT-EventQueue-0":
case "SCS simulation thread":
System.out.println("[" + getClass().getSimpleName() + "] Variable " + v.getName() + " was changed from the UI.");
return;
}
if (accessorThread == null)
{
accessorThread = currentThread;
}
if (!currentThread.equals(accessorThread))
{
try
{
throw new Exception("Variable " + v.getFullNameWithNameSpace() + " changed by thread " + currentThread + ", expected: " + accessorThread);
}
catch(Exception e)
{
if (DEBUG)
{
e.printStackTrace();
}
}
}
}
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
private void testAccess(YoVariable<?> v)
{
Thread currentThread = Thread.currentThread();
switch (currentThread.getName())
{
case "AWT-EventQueue-0":
case "SCS simulation thread":
System.out.println("[" + getClass().getSimpleName() + "] Variable " + v.getName() + " was changed from the UI.");
return;
}
if (accessorThread == null)
{
accessorThread = currentThread;
}
if (!currentThread.equals(accessorThread))
{
try
{
throw new Exception("Variable " + v.getFullNameWithNameSpace() + " changed by thread " + currentThread + ", expected: " + accessorThread);
}
catch(Exception e)
{
if (DEBUG)
{
e.printStackTrace();
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!