com.yobotics.simulationconstructionset.util.math.filter
Class HysteresisFilteredYoVariable

java.lang.Object
  extended by com.yobotics.simulationconstructionset.YoVariable
      extended by com.yobotics.simulationconstructionset.DoubleYoVariable
          extended by com.yobotics.simulationconstructionset.util.math.filter.HysteresisFilteredYoVariable
All Implemented Interfaces:
java.io.Serializable

public class HysteresisFilteredYoVariable
extends DoubleYoVariable

Title:

Description: applies hysteresis to the input

Copyright: Copyright (c) 2006

Company:

Version:
1.0
Author:
tkoolen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.yobotics.simulationconstructionset.YoVariable
MAX_LENGTH_SHORT_NAME
 
Constructor Summary
HysteresisFilteredYoVariable(java.lang.String name, YoVariableRegistry registry, DoubleYoVariable hysteresisAmount)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void reset()
          reset resets the limits to the current value (but keeps the current hysteresisAmount)
 void update(double unfilteredValue)
          update updates val, based on the unfiltedValue
 
Methods inherited from class com.yobotics.simulationconstructionset.DoubleYoVariable
add, add, getDoubleValue, getValueAsDouble, getValueString, getValueStringFromDouble, getYoVariableType, isNaN, mul, mul, set, setValueFromDouble, sub, sub, toString, valueEquals
 
Methods inherited from class com.yobotics.simulationconstructionset.YoVariable
addVariableChangedListener, fullNameEndsWithCaseInsensitive, getDescription, getFullNameWithNameSpace, getManualScalingMax, getManualScalingMin, getName, getName, getNameAndValueString, getNameAndValueStringFromDouble, getNameSpace, getNumericValueAsAString, getShortName, getVariableChangedListeners, getYoVariableRegistry, hasSameFullName, notifyVariableChangedListeners, removeAllVariableChangedListeners, removeVariableChangedListener, setManualScalingMinMax
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HysteresisFilteredYoVariable

public HysteresisFilteredYoVariable(java.lang.String name,
                                    YoVariableRegistry registry,
                                    DoubleYoVariable hysteresisAmount)
Method Detail

reset

public void reset()
reset resets the limits to the current value (but keeps the current hysteresisAmount)


update

public void update(double unfilteredValue)
update updates val, based on the unfiltedValue

Parameters:
unfilteredValue - double the unfiltered value

main

public static void main(java.lang.String[] args)