本文整理汇总了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; }