RtjAocsFramework.ObjectMonitoring
Class SimpleChange
java.lang.Object
|
+--RtjAocsFramework.BasicObjects.RootObject
|
+--RtjAocsFramework.BasicObjects.AocsObject
|
+--RtjAocsFramework.ObjectMonitoring.ChangeObject
|
+--RtjAocsFramework.ObjectMonitoring.SimpleChange
- All Implemented Interfaces:
- Configurable, Resettable, Telemeterable
- public class SimpleChange
- extends ChangeObject
Check that a variable does not change value across successive checks. The
change therefore occurs whenver the variable being checked changes its
value.
Copyright: see the Copyright Notice.
- Version:
- 1.0
- Author:
- Alessandro Pasetti (University of Konstanz)
- See Also:
- The Object Monitoring Document.
|
Constructor Summary |
SimpleChange()
Default constructor: the initial value is set to 0. |
SimpleChange(double initialValue)
|
|
Method Summary |
boolean |
checkValue(double value)
Returns true if the value is different from the previous value that was
passed through the change object filter. |
int |
getTelemetryImageLength()
Return the length (in bits) of the telemetry image of the object. |
void |
writeToTelemetry(TelemetryStream tmStream)
Direct the object to write its own state to the telemetry stream. |
| Methods inherited from class RtjAocsFramework.BasicObjects.AocsObject |
addConfigurationListener, addFailureListener, finalize, getAocsClock, getConfigurationListenerList, getCycle, getDestructionRecoveryAction, getFailureListenerList, getSystemManager, getTelemetryFormat, getTime, isConfigured, removeConfigurationListener, removeFailureListener, reportConfigurationEvent, reportFailure, reset, resetConfiguration, resetStaticConfiguration, setAocsClock, setDestructionRecoveryAction, setMaxNumberOfConfigurationListeners, setMaxNumberOfFailureListeners, setSystemManager, setTelemetryFormat |
SimpleChange
public SimpleChange(double initialValue)
SimpleChange
public SimpleChange()
- Default constructor: the initial value is set to 0.
checkValue
public boolean checkValue(double value)
- Returns true if the value is different from the previous value that was
passed through the change object filter. The reference value is equal to
the value passed through the change object filter.
- Specified by:
checkValue in class ChangeObject
writeToTelemetry
public void writeToTelemetry(TelemetryStream tmStream)
- Description copied from interface:
Telemeterable
- Direct the object to write its own state to the telemetry stream.
- Specified by:
writeToTelemetry in interface Telemeterable- Overrides:
writeToTelemetry in class AocsObject
getTelemetryImageLength
public int getTelemetryImageLength()
- Description copied from interface:
Telemeterable
- Return the length (in bits) of the telemetry image of the object. This
method is useful to verify that the quantity of data generated by a given
object is compatible with the capacity of the telemetry channel.
- Specified by:
getTelemetryImageLength in interface Telemeterable- Overrides:
getTelemetryImageLength in class AocsObject
Real-Time Java AOCS Framework project home page
Automatic Control Laboratory, ETH Zuerich
Physikstrasse 3
CH-8092 Zuerich, Switzerland