本文整理了Java中us.ihmc.yoVariables.variable.YoInteger.set()
方法的一些代码示例,展示了YoInteger.set()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoInteger.set()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoInteger
类名称:YoInteger
方法名:set
[英]Calls #set(int,boolean) with value and true.
[中]使用value和true调用#set(int,boolean)。
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
/**
* Clears the list.
*
* This function just resets the size to 0. The underlying data objects are not emptied or removed.
*/
public void resetQuick()
{
position.set(-1);
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
/**
* Sets the internal integer value of this YoInteger using the static integer cast of the passed long value.
*
* @param value long to set this variable's value to
* @param notifyListeners boolean determining whether or not to call {@link #notifyVariableChangedListeners()}
*/
@Override public void setValueFromLongBits(long value, boolean notifyListeners)
{
set((int) value, notifyListeners);
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
void setToDefault()
{
this.value.set(initialValue);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void setMaxCount(int maxCount)
{
this.maxCount.set(maxCount);
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void set(int value)
{
super.set(value);
if (counter != null)
counter.set(0);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public boolean set(int value, boolean notifyListeners)
{
if (counter != null)
counter.set(0);
return super.set(value, notifyListeners);
}
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
@Override
public void initializeMachineSide()
{
machineSideCount.set(100);
}
代码示例来源:origin: us.ihmc/acsell
@Override
public void update(int value)
{
rawEncoderTicks.set(value);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void setWindowSize(int windowSize)
{
if (this.windowSize instanceof YoInteger)
{
((YoInteger) this.windowSize).set(windowSize);
}
else
{
throw new RuntimeException("Setting the window size is not supported");
}
}
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
/**
* Sets this YoInteger to its current value minus one.
*/
public void decrement()
{
this.set(this.getIntegerValue() - 1);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public YoPreallocatedList(Class<T> clazz, Supplier<T> allocator, String prefix, YoVariableRegistry registry, int capacity)
{
this.clazz = clazz;
this.position = new YoInteger(prefix + "Index", registry);
this.values = (T[]) Array.newInstance(clazz, capacity);
for (int i = 0; i < capacity; i++)
{
values[i] = allocator.get();
}
position.set(-1);
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
/**
* Sets this YoInteger to its current value minus the given value.
*
* @param value integer to subtract from this YoInteger
*/
public void subtract(int value)
{
this.set(this.getIntegerValue() - value);
}
代码示例来源:origin: us.ihmc/ihmc-parameter-optimization
public void setCurrentValue(int newValue)
{
super.setCurrentValue(newValue);
yoVariable.set(newValue);
}
代码示例来源:origin: us.ihmc/ihmc-whole-body-controller
public void clearAllExceptCurrent()
{
taskQueue.clear();
numberOfTasksRemaining.set(0);
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void initialize(YoBoolean yoVariableToFilter, int windowSize)
{
if (windowSize < 0)
throw new RuntimeException("window size must be greater than 0");
variableToFilter = yoVariableToFilter;
this.windowSize.set(windowSize);
if (variableToFilter != null)
this.set(yoVariableToFilter.getBooleanValue());
this.set(false);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void update(boolean value)
{
if (value != this.getBooleanValue())
{
counter.set(counter.getIntegerValue() + 1);
}
else
counter.set(0);
if (counter.getIntegerValue() >= (windowSize.getIntegerValue() ))
set(value);
}
代码示例来源:origin: us.ihmc/ihmc-convex-optimization-adapter
public OASESConstrainedQPSolver(int nvar, int ncon, YoVariableRegistry parentRegistry)
{
maxCPUTime.set(Double.POSITIVE_INFINITY);
maxWorkingSetChange.set(10000);
qpWrapper = new QpOASESCWrapper();
if (parentRegistry != null)
{
parentRegistry.addChild(this.registry);
}
}
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
public void set(FootstepDataListMessage footStepList)
{
outgoingFootstepDataList = footStepList;
numberOfFootsteps.set(outgoingFootstepDataList.getFootstepDataList().size());
packetHasBeenSent.set(false);
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
public void updateClassLoadingStatistics()
{
loadedClassCount.set(classLoadingMXBean.getLoadedClassCount());
totalLoadedClassCount.set(classLoadingMXBean.getTotalLoadedClassCount());
unloadedClassCount.set(classLoadingMXBean.getUnloadedClassCount());
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
public YoInteger duplicate(YoVariableRegistry newRegistry)
{
IntegerParameter newParameter = new IntegerParameter(getName(), getDescription(), newRegistry, initialValue, (int) getManualScalingMin(), (int) getManualScalingMax());
newParameter.value.set(value.getValue());
newParameter.loadStatus = getLoadStatus();
return newParameter.value;
}
}
内容来源于网络,如有侵权,请联系作者删除!