uk.org.toot.control
Class LinearLaw

java.lang.Object
  extended by uk.org.toot.control.AbstractLaw
      extended by uk.org.toot.control.LinearLaw
All Implemented Interfaces:
ControlLaw

public class LinearLaw
extends AbstractLaw

A linear control law.


Constructor Summary
LinearLaw(float min, float max, java.lang.String units)
           
 
Method Summary
 int intValue(float v)
          return the integer value for user value valid integers are 0 ..
 float userValue(int v)
          return the user value for the integer value valid integers are 0 ..
 
Methods inherited from class uk.org.toot.control.AbstractLaw
getMaximum, getMinimum, getResolution, getUnits
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearLaw

public LinearLaw(float min,
                 float max,
                 java.lang.String units)
Method Detail

intValue

public int intValue(float v)
Description copied from interface: ControlLaw
return the integer value for user value valid integers are 0 .. resolution-1


userValue

public float userValue(int v)
Description copied from interface: ControlLaw
return the user value for the integer value valid integers are 0 .. resolution-1



Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.