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

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

public class HysteresisFilteredYoVariable
extends YoVariable

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, val
 
Constructor Summary
HysteresisFilteredYoVariable(java.lang.String name, YoVariableRegistry registry, YoVariable hysteresisAmount)
           
 
Method Summary
 void reset()
          reset resets the limits to the current value (but keeps the current hysteresisAmount)
 void set(double d)
          set method is not supported because it would corrupt the object, so override
 void update(double unfilteredValue)
          update updates val, based on the unfiltedValue
 
Methods inherited from class com.yobotics.simulationconstructionset.YoVariable
addObserver, fullNameEndsWith, getBooleanValue, getDescription, getDoubleValue, getEnumValue, getFullNameWithNameSpace, getIntegerValue, getManualScalingMax, getManualScalingMin, getName, getName, getNameAndValue, getShortName, getValue, getYoVariableRegistry, getYoVariableType, hasSameFullName, notifyObservers, removeAllObservers, removeObserver, set, set, set, setManualScalingMinMax, toString, valueEquals, valueEquals, valueEquals, valueEquals
 
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,
                                    YoVariable 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

set

public void set(double d)
set method is not supported because it would corrupt the object, so override

Overrides:
set in class YoVariable
Parameters:
d - double