Package nl.tue.id.oocsi
Class OOCSIString
java.lang.Object
nl.tue.id.oocsi.client.behavior.OOCSISystemCommunicator<T>
nl.tue.id.oocsi.client.data.OOCSIVariable<java.lang.String>
nl.tue.id.oocsi.OOCSIString
public class OOCSIString extends OOCSIVariable<java.lang.String>
OOCSIString is a system-level primitive that allows for automatic synchronizing of local variables (read and write)
with different OOCSI clients on the same channel. This realizes synchronization on a single data variable without
aggregation.
- Author:
- matsfunk
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.tue.id.oocsi.client.behavior.OOCSISystemCommunicator
OOCSISystemCommunicator.SystemFilter<K>
-
Field Summary
Fields inherited from class nl.tue.id.oocsi.client.data.OOCSIVariable
forwarders, lastInput, max, mean, min, sigma, values, windowLength
Fields inherited from class nl.tue.id.oocsi.client.behavior.OOCSISystemCommunicator
channelName, client, HANDLE
-
Constructor Summary
Constructors Constructor Description OOCSIString(OOCSIClient client, java.lang.String channelName, java.lang.String key)
OOCSIString(OOCSIClient client, java.lang.String channelName, java.lang.String key, java.lang.String referenceValue)
OOCSIString(OOCSIClient client, java.lang.String channelName, java.lang.String key, java.lang.String referenceValue, int timeout)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
extractValue(OOCSIEvent event, java.lang.String key)
safely extract the message value in the right typeOOCSIString
limit(int rate, int seconds)
set the limiting of incoming events in terms of "rate" and "seconds" timeframe; supports chained invocationMethods inherited from class nl.tue.id.oocsi.client.data.OOCSIVariable
adapt, connect, disconnect, filter, fresh, generator, generator, get, last, localUpdate, max, min, reference, reference, remoteUpdate, set, set, smooth, smooth, timeout, update
Methods inherited from class nl.tue.id.oocsi.client.behavior.OOCSISystemCommunicator
addFilter, getHandle, message, message, message, subscribe, triggerHandler, updateFilter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OOCSIString
-
OOCSIString
public OOCSIString(OOCSIClient client, java.lang.String channelName, java.lang.String key, java.lang.String referenceValue) -
OOCSIString
public OOCSIString(OOCSIClient client, java.lang.String channelName, java.lang.String key, java.lang.String referenceValue, int timeout)
-
-
Method Details
-
extractValue
Description copied from class:OOCSIVariable
safely extract the message value in the right type- Overrides:
extractValue
in classOOCSIVariable<java.lang.String>
- Returns:
-
limit
set the limiting of incoming events in terms of "rate" and "seconds" timeframe; supports chained invocation- Overrides:
limit
in classOOCSIVariable<java.lang.String>
- Parameters:
rate
-seconds
-- Returns:
-