本文整理匯總了Java中com.digitalpetri.opcua.stack.core.types.enumerated.DataChangeTrigger類的典型用法代碼示例。如果您正苦於以下問題:Java DataChangeTrigger類的具體用法?Java DataChangeTrigger怎麽用?Java DataChangeTrigger使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DataChangeTrigger類屬於com.digitalpetri.opcua.stack.core.types.enumerated包,在下文中一共展示了DataChangeTrigger類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: triggerFilter
import com.digitalpetri.opcua.stack.core.types.enumerated.DataChangeTrigger; //導入依賴的package包/類
private static boolean triggerFilter(DataValue lastValue, DataValue currentValue, DataChangeFilter filter) {
if (lastValue == null) return true;
DataChangeTrigger trigger = filter.getTrigger();
if (trigger == DataChangeTrigger.Status) {
return statusChanged(lastValue, currentValue);
} else if (trigger == DataChangeTrigger.StatusValue) {
return valueChanged(lastValue, currentValue) || statusChanged(lastValue, currentValue);
} else {
// DataChangeTrigger.StatusValueTimestamp
return timestampChanged(lastValue, currentValue) ||
valueChanged(lastValue, currentValue) ||
statusChanged(lastValue, currentValue);
}
}
示例2: decode
import com.digitalpetri.opcua.stack.core.types.enumerated.DataChangeTrigger; //導入依賴的package包/類
public static DataChangeFilter decode(UaDecoder decoder) {
DataChangeTrigger _trigger = decoder.decodeEnumeration("Trigger", DataChangeTrigger.class);
UInteger _deadbandType = decoder.decodeUInt32("DeadbandType");
Double _deadbandValue = decoder.decodeDouble("DeadbandValue");
return new DataChangeFilter(_trigger, _deadbandType, _deadbandValue);
}
示例3: DataChangeFilter
import com.digitalpetri.opcua.stack.core.types.enumerated.DataChangeTrigger; //導入依賴的package包/類
public DataChangeFilter(DataChangeTrigger _trigger, UInteger _deadbandType, Double _deadbandValue) {
super();
this._trigger = _trigger;
this._deadbandType = _deadbandType;
this._deadbandValue = _deadbandValue;
}
示例4: getTrigger
import com.digitalpetri.opcua.stack.core.types.enumerated.DataChangeTrigger; //導入依賴的package包/類
public DataChangeTrigger getTrigger() { return _trigger; }