gov.sandia.cognition.math.signals
Class PIDController.State

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.math.signals.PIDController.State
All Implemented Interfaces:
CloneableSerializable, Serializable, Cloneable
Enclosing class:
PIDController

public static class PIDController.State
extends AbstractCloneableSerializable

State of a PIDController

See Also:
Serialized Form

Constructor Summary
PIDController.State()
          Default constructor.
PIDController.State(double lastErr, double errSum)
          Creates a new instance of State
 
Method Summary
 double getErrSum()
          Getter for errSum
 double getLastErr()
          Getter for lastErr
 void setErrSum(double errSum)
          Setter for errSum
 void setLastErr(double lastErr)
          Setter for lastErr
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PIDController.State

public PIDController.State()
Default constructor.


PIDController.State

public PIDController.State(double lastErr,
                           double errSum)
Creates a new instance of State

Parameters:
lastErr - Last error.
errSum - Sum of all errors.
Method Detail

getLastErr

public double getLastErr()
Getter for lastErr

Returns:
Last error.

setLastErr

public void setLastErr(double lastErr)
Setter for lastErr

Parameters:
lastErr - Last error.

getErrSum

public double getErrSum()
Getter for errSum

Returns:
Sum of all errors.

setErrSum

public void setErrSum(double errSum)
Setter for errSum

Parameters:
errSum - Sum of all errors.