basicSampleMonitor_Boolean
basicSampleMonitor_Interval
basicSampleMonitor_String
basicSampleMonitor_Threshold
basicSampleMonitor_Zone
awaitReady()
which will set the Agent in a waiting state, and passes once the connection with the core has been properly done.BooleanMonitor
, a random boolean value is set, the monitor triggers the event when there is a change of state (from true
to false
or the other way around, depending on the definition pf the monitor)IntervalMonitor
, a random humidity level between 0 and 100 % is set. The unit of the interval can be modified with the setSignalUnit("%")
function, but only if it has physical relationships (ie: from km/h
to m/s
). Once the level is within a certain range (range defined during the creation of the monitor), the event is triggered.StringMonitor
, we provide several different strings, and if the given string is equal to the one set at creation time of the monitor, the event is triggeredThresholdMonitor
, the behavior is the same as the IntervalMonitor
, with the difference that instead of reaching an interval to trigger the event, we have a threshold, and the event is triggered when we are below, equal or above this threshold (this being defined during the creation of the Monitor)ZoneMonitor
, we provide different position values to the monitor, and if a position is within the Zone that was defined during the creation of the monitor, then the event is triggered.featureSampleMonitors
are samples that are showing off a specific feature.
featureSampleMonitor_ConfChangedCallback
demonstrates how to create a Configurable-by-Value Monitor that overloads the onConfigurationChangedCallback function in order to access or run specific code during an agent’s reconfiguration. In our sample, we print our the Value Configurations and the Constant Values whenever there is a reconfiguration (also at initial configuration).
BooleanMonitor
, but any Agent can be used to overload the onConfigurationChangedCallback
functionbasicSampleMonitor_Boolean
basicSampleRecorder
demonstrates how to create a Recorder that provides the ContextValue position
and generates an event recording part in the form of a file that contains the timestamp of the event. The file is created for the event and demonstrate how to use some information contained in the event query.
R-UUID
, exposes the Context Values and Event Recording Part generation to the Core for identifier R-UUID
. It stops only on SIGKILL (Ctrl-C).featureSampleRecorders
are samples that are showing off a specific feature.
featureSampleRecorder_ConfChangedCallback
demonstrates how to create a Configurable-by-Value Recorder that overloads the onConfigurationChangedCallback function in order to access or run specific code during an agent’s reconfiguration. In our sample, we print our the Value Configurations and the Constant Values whenever there is a reconfiguration (also at initial configuration).
The rest of the behavior is very similar to the basicSampleRecorder