gpt4 book ai didi

us.ihmc.robotics.dataStructures.variable.YoVariable.getFullNameWithNameSpace()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 19:04:40 24 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.robotics.dataStructures.variable.YoVariable.getFullNameWithNameSpace()方法的一些代码示例,展示了YoVariable.getFullNameWithNameSpace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoVariable.getFullNameWithNameSpace()方法的具体详情如下:
包路径:us.ihmc.robotics.dataStructures.variable.YoVariable
类名称:YoVariable
方法名:getFullNameWithNameSpace

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();
    }
   }
 }
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com