Class ExtXmlRampDS
- All Implemented Interfaces:
IReportingDS
,IRampDS
- Since:
- 6.2
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExtXmlRampDS
(IInitializationReport report, IXmlNode node) -
Method Summary
Modifier and TypeMethodDescriptiondouble
This method returns the lower partial of the ramp definition.double
This method returns the lower range of the ramp definition.getName()
This method returns the (unique) name of the match function.double
This method returns the upper partial of the ramp definition.double
This method returns the upper range of the ramp definition.boolean
The absolute flag indicates how the partial and range numbers should be interpreted.boolean
The left-only flag indicates whether only the left slope of the ramp exists.boolean
This method returns a boolean indicating if this ramp match function will be used to match numbers of date values.boolean
See left-only for some documentation.Methods inherited from class com.aquima.interactions.ds.ReportingDS
addMessage, getCategory, getReport
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Constructor Details
-
ExtXmlRampDS
-
-
Method Details
-
getName
Description copied from interface:IRampDS
This method returns the (unique) name of the match function. -
isNumberRamp
public boolean isNumberRamp()Description copied from interface:IRampDS
This method returns a boolean indicating if this ramp match function will be used to match numbers of date values.- Specified by:
isNumberRamp
in interfaceIRampDS
- Returns:
- Boolean indicating if the ramp will be used to match numbers.
-
getLowerPartial
public double getLowerPartial()Description copied from interface:IRampDS
This method returns the lower partial of the ramp definition. A lower range means the left side of the ramp definition which gives a 100 percent match. While a partial means the position where the ramp gives a zero percent match.
The lower part of the ramp is where the values are lower then the norm value. Whereas the higher part of the ramp has the higher values.See also: Otherwise a percentage value see
IRampDS.isAbsoluteRamp()
- a = lower-partial
- b = lower-range
- c = upper-range
- d = upper-partial
Example: b---100%---c / | \ 0-100% | 100-0% -Inf / norm \ +Inf ----a----------|----------d---------------
- Specified by:
getLowerPartial
in interfaceIRampDS
- Returns:
- The absolute or percentage distance between the norm value. Therefore the returned value cannot be negative.
-
getLowerRange
public double getLowerRange()Description copied from interface:IRampDS
This method returns the lower range of the ramp definition. A lower range means the left side of the ramp definition which gives a 100 percent match. While a partial means the position where the ramp gives a zero percent match.
The lower part of the ramp is where the values are lower then the norm value. Whereas the higher part of the ramp has the higher values.See also: Otherwise a percentage value see
IRampDS.isAbsoluteRamp()
- a = lower-partial
- b = lower-range
- c = upper-range
- d = upper-partial
Example: b---100%---c / | \ 0-100% | 100-0% -Inf / norm \ +Inf ----a----------|----------d---------------
- Specified by:
getLowerRange
in interfaceIRampDS
- Returns:
- The absolute or percentage distance between the norm value. Therefore the returned value cannot be negative.
-
getUpperPartial
public double getUpperPartial()Description copied from interface:IRampDS
This method returns the upper partial of the ramp definition. A lower range means the left side of the ramp definition which gives a 100 percent match. While a partial means the position where the ramp gives a zero percent match.
The lower part of the ramp is where the values are lower then the norm value. Whereas the higher part of the ramp has the higher values.See also: Otherwise a percentage value see
IRampDS.isAbsoluteRamp()
- a = lower-partial
- b = lower-range
- c = upper-range
- d = upper-partial
Example: b---100%---c / | \ 0-100% | 100-0% -Inf / norm \ +Inf ----a----------|----------d---------------
- Specified by:
getUpperPartial
in interfaceIRampDS
- Returns:
- The absolute or percentage distance between the norm value. Therefore the returned value cannot be negative.
-
getUpperRange
public double getUpperRange()Description copied from interface:IRampDS
This method returns the upper range of the ramp definition. A lower range means the left side of the ramp definition which gives a 100 percent match. While a partial means the position where the ramp gives a zero percent match.
The lower part of the ramp is where the values are lower then the norm value. Whereas the higher part of the ramp has the higher values.See also: Otherwise a percentage value see
IRampDS.isAbsoluteRamp()
- a = lower-partial
- b = lower-range
- c = upper-range
- d = upper-partial
Example: b---100%---c / | \ 0-100% | 100-0% -Inf / norm \ +Inf ----a----------|----------d---------------
- Specified by:
getUpperRange
in interfaceIRampDS
- Returns:
- The absolute or percentage distance between the norm value. Therefore the returned value cannot be negative.
-
isAbsoluteRamp
public boolean isAbsoluteRamp()Description copied from interface:IRampDS
The absolute flag indicates how the partial and range numbers should be interpreted. An absolute ramp will simply use the numbers as is to calculate the ramp. A percentage ramp, will interpret the values as a percentage, and multiply them with base value to determine the shape of the ramp.- Specified by:
isAbsoluteRamp
in interfaceIRampDS
- Returns:
- boolean flag, true means absolute, false means percentage.
-
isLeftOnlyRamp
public boolean isLeftOnlyRamp()Description copied from interface:IRampDS
The left-only flag indicates whether only the left slope of the ramp exists. A ramp with only a left slope will have a top area that extends Indefinitely to the right side.
Note: Only one of the left/right-only methods may return true. Both true would mean a 'ramp' with an infinite top area.- Specified by:
isLeftOnlyRamp
in interfaceIRampDS
- Returns:
- boolean flag indicating whether only the left side has a slope.
-
isRightOnlyRamp
public boolean isRightOnlyRamp()Description copied from interface:IRampDS
See left-only for some documentation.
Note: Only one of the left/right-only methods may return true. Both true would mean a 'ramp' with an infinite top area.- Specified by:
isRightOnlyRamp
in interfaceIRampDS
- Returns:
- boolean flag indicating whether only the right side has a slope.
-