本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.getAllVariables()
方法的一些代码示例,展示了SimulationConstructionSet.getAllVariables()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.getAllVariables()
方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:getAllVariables
暂无
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
@Override
public boolean compare(SimulationConstructionSet scs0, SimulationConstructionSet scs1)
{
return compare(scs0.getAllVariables(), scs1.getAllVariables());
}
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
ArrayList<YoVariable<?>> allVariablesFromSCS = scs.getAllVariables();
assertEquals(allVariablesFromRobot, allVariablesFromSCS);
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
public static void assertChangedVarsEmpty(SimulationConstructionSet scs, List<VariableDifference> variableDifferences)
{
// if (variableDifferences.containsVariable(scs.getVariable("t")))
// {
// throw new RuntimeException("times not equal.");
// }
String message = createFailMessage(scs.getAllVariables(), variableDifferences);
scs = null;
assertEquals(message, true, variableDifferences.isEmpty());
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
private boolean compareSCSInstances(double maxPercentDifference, ArrayList<String> stringsToIgnore)
{
YoVariableList listOne = new YoVariableList("SimOneList");
YoVariableList listTwo = new YoVariableList("SimTwoList");
listOne.addVariables(scsOne.getAllVariables());
listTwo.addVariables(scsTwo.getAllVariables());
ArrayList<VariableDifference> variableDifferences = StateFileComparer.compareVarLists(listOne, listTwo, maxPercentDifference, true, stringsToIgnore);
if(variableDifferences.isEmpty())
{
return true;
}
for(VariableDifference difference : variableDifferences)
{
System.err.println("Variable One: " + difference.getVariableOne());
System.err.println("Variable Two: " + difference.getVariableTwo());
System.err.println(difference.toString());
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!