本文整理了Java中us.ihmc.yoVariables.variable.YoVariable.setValueFromLongBits()
方法的一些代码示例,展示了YoVariable.setValueFromLongBits()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoVariable.setValueFromLongBits()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoVariable
类名称:YoVariable
方法名:setValueFromLongBits
[英]Calls #setValueFromLongBits(long,boolean) with (value, true).
[中]用(value,true)调用#setValueFromLongBits(long,boolean)。
代码示例来源:origin: us.ihmc/ihmc-yovariables
/**
* Calls {@link #setValueFromLongBits(long, boolean)} with (value, true).
*
* @param value long value to set this variable to
*/
public final void setValueFromLongBits(long value)
{
setValueFromLongBits(value, true);
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
private void updateVariable(int offset, YoVariable<?> variable)
{
variable.setValueFromLongBits(buffer.get(offset), false);
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
public void getIndexes()
{
timestamp.set(logLongArray.get());
int startPositoin = logLongArray.position();
for (int i = 0; i < variables.size(); i++)
{
YoVariable<?> variable = variables.get(i);
if(indexes.containsKey(variable))
{
indexes.get(variable).set(logLongArray.position());
}
variable.setValueFromLongBits(logLongArray.get(), true);
}
logLongArray.position(startPositoin);
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
variable.setValueFromLongBits(longBuffer.get(1 + offsets[i]), false);
variable.getValueString(result[i]);
result[i].append(",");
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
private void setAndNotify(YoVariable<?> variable, long newValue)
{
long previousValue = variable.getValueAsLongBits();
variable.setValueFromLongBits(newValue, false);
if (previousValue != newValue)
{
ArrayList<VariableChangedListener> changedListeners = variable.getVariableChangedListeners();
if (changedListeners != null)
{
for (int listener = 0; listener < changedListeners.size(); listener++)
{
VariableChangedListener changedListener = changedListeners.get(listener);
if (!(changedListener instanceof VariableChangedProducer.VariableListener))
{
changedListener.notifyOfVariableChange(variable);
}
}
}
}
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
public boolean readAndProcessALogLineReturnTrueIfDone(double DT)
{
try
{
if (!readLogLine())
{
return true;
}
timestamp.set(logLongArray.get());
robotTime.set(Conversions.nanosecondsToSeconds(timestamp.getLongValue() - initialTimestamp));
for (int i = 0; i < variablesToUpdate.length; i++)
{
YoVariable<?> variable = variablesToUpdate[i];
AtomicInteger position = indexes.get(variable);
variable.setValueFromLongBits(logLongArray.get(position.get()), false);
}
}
catch (IOException e)
{
e.printStackTrace();
}
return false;
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
variable.setValueFromLongBits(logLongArray.get(), true);
内容来源于网络,如有侵权,请联系作者删除!