public abstract class BarrierPassGuard extends Object implements ThresholdConditionGuard, Serializable
| Constructor and Description |
|---|
BarrierPassGuard(ThresholdStatus aTargetStatus,
GuardedDirection aDirection) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Number |
getBarrierValueAsNumber()
Returns the guard threshold as number.
|
ThresholdStatus |
getNewStatusOnUpdate(String previousValue,
String newValue,
ThresholdStatus currentStatus,
Threshold threshold)
Generate new status on threshold value change
|
ThresholdStatus |
getTargetStatus() |
protected abstract Number |
getValueAsNumber(String aValue)
Returns the value of the producer as number.
|
abstract String |
getValueAsString()
Returns the value as string for alert generation.
|
String |
toString() |
public BarrierPassGuard(ThresholdStatus aTargetStatus, GuardedDirection aDirection)
public ThresholdStatus getNewStatusOnUpdate(String previousValue, String newValue, ThresholdStatus currentStatus, Threshold threshold)
ThresholdConditionGuardgetNewStatusOnUpdate in interface ThresholdConditionGuardpreviousValue - value before change.newValue - value after change.currentStatus - current status.threshold - the threshold object.public abstract String getValueAsString()
protected abstract Number getValueAsNumber(String aValue)
protected abstract Number getBarrierValueAsNumber()
public ThresholdStatus getTargetStatus()
Copyright © 2010-2017 anotheria.net. All Rights Reserved.