public abstract class GIntervalAbstract extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GIntervalAbstract.GStatus
Enumerate defining the condition of the value being check.
|
static class |
GIntervalAbstract.Rule
Enumerates to define the comportement of the range limits, if INCLUSIVE the test is done using "<=" or
">=", if EXCLUSIVE the test is done using "<" or ">".
|
Constructor and Description |
---|
GIntervalAbstract()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract GIntervalAbstract.Rule |
getMaxRule()
Get the rule applying to the absolute maximum.
|
protected abstract Object |
getMaxValue()
Get the absolute maximum value of the ok maximum and warning maximum.
|
abstract String |
getMessage()
Get the message describing the interval checks.
|
protected abstract GIntervalAbstract.Rule |
getMinRule()
Get the rule applying to the absolute minimum.
|
protected abstract Object |
getMinValue()
Get the absolute minimum value of the ok minimum and warning minimum.
|
abstract boolean |
overlaps(GIntervalAbstract interval)
Check the overlapping with another interval.
|
abstract GIntervalAbstract.GStatus |
testRange(Object object)
Check the value against the interval.
|
abstract void |
updateMessage(GUnit currentUnit,
GIntervalFormatAbstract formatter)
Update the interval message using the unit, and format provided.
|
public abstract boolean overlaps(GIntervalAbstract interval)
interval
- to verify the overlapping.protected abstract Object getMinValue()
protected abstract Object getMaxValue()
protected abstract GIntervalAbstract.Rule getMaxRule()
protected abstract GIntervalAbstract.Rule getMinRule()
public abstract GIntervalAbstract.GStatus testRange(Object object)
object
- value to check.public abstract String getMessage()
public abstract void updateMessage(GUnit currentUnit, GIntervalFormatAbstract formatter)
currentUnit
- the unit to use to convert the interval limits.formatter
- Necessary data to format the message (normal/scientific format and fractional digits)Copyright © 2024. All rights reserved.