gpt4 book ai didi

us.ihmc.yoVariables.variable.YoLong.set()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 14:54:40 29 4
gpt4 key购买 nike

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

YoLong.set介绍

[英]Calls #set(long,boolean) with value and true.
[中]使用value和true调用#set(long,boolean)。

代码示例

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Sets the internal long value of this YoLong using the passed long value.
*
* <p>Effectively equivalent to {@link #set(long, boolean)}.
*
* @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(value, notifyListeners);
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Calls {@link #set(long, boolean)} with value and true.
*
* @param value long to set this YoInteger's internal integer state to
*/
public void set(long value)
{
 set(value, true);
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Create a new YoLong. This will call {@link YoVariable(YoVariableType, String, String, YoVariableRegistry)}
* with {@link YoVariableType#LONG} and the given values.
*
* @param name
* @param description
* @param registry
*/
public YoLong(String name, String description, YoVariableRegistry registry)
{
 super(YoVariableType.LONG, name, description, registry);
 this.set(0);
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

@Override
void setToDefault()
{
 this.value.set(initialValue);
}

代码示例来源:origin: us.ihmc/ihmc-whole-body-controller

@Override
public void publishEstimatorState(long timestamp, long estimatorTick, long estimatorClockStartTime)
{
 this.timestamp.set(timestamp);
 this.estimatorTick.set(estimatorTick);
 this.estimatorClockStartTime.set(estimatorClockStartTime);
 // Record full robot model here for rewindability.
 fullRobotModelRewinder.recordCurrentState();
}

代码示例来源:origin: us.ihmc/ihmc-robot-data-logger

void update()
 {
   this.gcInvocations.set(gcBean.getCollectionCount());
   this.gcTotalCollectionTimeMs.set(gcBean.getCollectionTime());
 }
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

@Override
void setToString(String valueString)
{
 this.value.set(Long.parseLong(valueString));
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Sets this YoLong to its current value plus the given value.
*
* @param value long to add to this YoLong
*/
public void add(long value)
{
 this.set(this.getLongValue() + value);
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Sets this YoLong to its current value minus the given value.
*
* @param value long to subtract from this YoLong
*/
public void subtract(long value)
{
 this.set(this.getLongValue() - value);
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Sets this YoInteger to its current value minus one.
*/
public void decrement()
{
 this.set(this.getLongValue() - 1);
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Sets the internal value of this YoLong to the current value of the passed YoLong.
*
* @param value YoLong value to set this variable's value to
* @param notifyListeners boolean determining whether or not to call {@link #notifyVariableChangedListeners()}
* @return boolean whether or not internal state differed from the passed value
*/
@Override public boolean setValue(YoLong value, boolean notifyListeners)
{
 return set(value.getLongValue(), notifyListeners);
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Set the value of this YoLong using the given double, passed through {@link #convertFromDoubleToLong(double)}.
*
* @param doubleValue double to convert and set this YoLong to
* @param notifyListeners boolean determining whether or not to call {@link #notifyVariableChangedListeners()}
*/
@Override public void setValueFromDouble(double doubleValue, boolean notifyListeners)
{
 set(convertFromDoubleToLong(doubleValue), notifyListeners);
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Sets this YoInteger to its current value plus one.
*/
public void increment()
{
 this.set(this.getLongValue() + 1);
}

代码示例来源:origin: us.ihmc/ihmc-footstep-planning

private void initialize()
{
 stack.clear();
 stack.add(startNode);
 footstepGraph.initialize(startNode);
 numberOfNodesExpanded.set(0);
 planningStartTime.set(System.nanoTime());
 bestGoalNode = null;
}

代码示例来源: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-robotics-toolkit

public YoMultipleFramesHelper(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 if (referenceFrames == null || referenceFrames.length == 0)
   throw new RuntimeException("Need to provide at least one ReferenceFrame.");
 
 currentFrameId = new YoLong(namePrefix + "FrameId", registry);
 currentFrameId.set(referenceFrames[0].hashCode());
 for (ReferenceFrame referenceFrame : referenceFrames)
 {
   this.registerReferenceFrame(referenceFrame);
 }
}

代码示例来源:origin: us.ihmc/ihmc-robot-data-logger

public JVMStatisticsGenerator(YoVariableRegistry parentRegistry)
{
 this.visualizer = null;
 createGCBeanHolders();
 availableProcessors.set(operatingSystemMXBean.getAvailableProcessors());
 maxMemory.set(Runtime.getRuntime().maxMemory());
 parentRegistry.addChild(registry);
}

代码示例来源:origin: us.ihmc/ihmc-robot-data-logger

public JVMStatisticsGenerator(RobotVisualizer visualizer)
{
 this.visualizer = visualizer;
 createGCBeanHolders();
 availableProcessors.set(operatingSystemMXBean.getAvailableProcessors());
 maxMemory.set(Runtime.getRuntime().maxMemory());
 visualizer.addRegistry(registry, null);
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Creates a new YoLong with the same parameters as this one, and registers it to the passed {@link YoVariableRegistry}.
*
* @param newRegistry YoVariableRegistry to duplicate this YoLong to
* @return the newly created and registered YoLong
*/
@Override public YoLong duplicate(YoVariableRegistry newRegistry)
{
 YoLong retVar = new YoLong(getName(), getDescription(), newRegistry, getManualScalingMin(), getManualScalingMax());
 retVar.set(getLongValue());
 return retVar;
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

@Override
 public YoLong duplicate(YoVariableRegistry newRegistry)
 {
   LongParameter newParameter = new LongParameter(getName(), getDescription(), newRegistry, initialValue, (long) getManualScalingMin(), (long) getManualScalingMax());
   newParameter.value.set(value.getValue());
   newParameter.loadStatus = getLoadStatus();
   return newParameter.value;
 }
}

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