|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.foce.devices.controlLoop.BaseResponder
public abstract class BaseResponder
| Field Summary | |
|---|---|
protected ControlLoopAttributes |
_attributes
|
protected java.lang.StringBuffer |
_cfgPacketBuffer
|
protected ControlProcessIF |
_controlProcess
|
protected double |
_correction
|
protected SensorDataPacket |
_dataPacket
|
protected java.lang.String |
_dataTurbineHost
|
protected boolean |
_doTurbinate
|
protected float |
_error
|
protected int |
_esw_pump_amode
|
protected int |
_esw_valve_amode
|
protected SensorDataPacket |
_lastDataPacket
|
protected static org.apache.log4j.Logger |
_log4j
Log4j logger |
protected int |
_maxDataBytes
|
protected double |
_offset
|
protected java.lang.StringBuffer |
_packetBuffer
|
protected PacketParser |
_packetParser
|
protected int |
_ph_cmode
|
protected int |
_ph_rmode
|
protected float |
_previousError
|
protected float |
_previousProcessValue
|
protected float |
_processValue
|
protected double |
_rawCorrection
|
protected java.lang.String |
_recordDelimiter
|
protected java.lang.String |
_recordType
|
protected float |
_setPoint
|
protected int |
_thruster_amode
|
protected Turbinator |
_turbinator
|
protected int |
_velocity_cmode
|
static java.lang.String |
DELIMITERS
|
| Constructor Summary | |
|---|---|
BaseResponder(ControlProcessIF controlProcess,
ControlLoopAttributes attributes)
|
|
| Method Summary | |
|---|---|
java.lang.StringBuffer |
getConfigBuffer()
Return a sample buffer with current response configuration. |
abstract float |
getCorrection()
Calculate correction value (heart of the PID loop) updateInputs must be called before calling this method |
SensorDataPacket |
getLastSample()
Return most recent sample data packet |
java.lang.StringBuffer |
getSampleBuffer()
Return a sample buffer with current process data. |
abstract SensorDataPacket |
getSamplePacket()
return a sensor data packet sub-classes should override |
void |
initialize()
initialize control loop |
void |
reset()
reset control loop |
void |
showParsedData(PacketParser.Field[] fields)
|
abstract float |
update()
update output (new process command) |
protected abstract void |
updateInputs()
Update inputs, needed prior to updating output values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
public static final java.lang.String DELIMITERS
protected int _velocity_cmode
protected int _ph_cmode
protected int _ph_rmode
protected int _esw_valve_amode
protected int _esw_pump_amode
protected int _thruster_amode
protected float _setPoint
protected double _offset
protected float _processValue
protected float _previousProcessValue
protected float _error
protected float _previousError
protected double _correction
protected double _rawCorrection
protected PacketParser _packetParser
protected Turbinator _turbinator
protected java.lang.String _dataTurbineHost
protected java.lang.StringBuffer _packetBuffer
protected java.lang.StringBuffer _cfgPacketBuffer
protected java.lang.String _recordType
protected SensorDataPacket _dataPacket
protected SensorDataPacket _lastDataPacket
protected int _maxDataBytes
protected boolean _doTurbinate
protected java.lang.String _recordDelimiter
protected ControlProcessIF _controlProcess
protected ControlLoopAttributes _attributes
| Constructor Detail |
|---|
public BaseResponder(ControlProcessIF controlProcess,
ControlLoopAttributes attributes)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public abstract float update()
throws java.lang.Exception
update in interface ControlResponseIFjava.lang.Exception
protected abstract void updateInputs()
throws java.lang.Exception
java.lang.Exception
public abstract float getCorrection()
throws java.lang.Exception
java.lang.Exceptionpublic abstract SensorDataPacket getSamplePacket()
getSamplePacket in interface ControlResponseIFpublic void initialize()
initialize in interface ControlResponseIFpublic void reset()
reset in interface ControlResponseIFpublic SensorDataPacket getLastSample()
public java.lang.StringBuffer getSampleBuffer()
throws java.lang.Exception
getSampleBuffer in interface ControlResponseIFjava.lang.Exception
public java.lang.StringBuffer getConfigBuffer()
throws java.lang.Exception
java.lang.Exceptionpublic void showParsedData(PacketParser.Field[] fields)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||