public abstract class ExclusionTechnology extends Technology
Modifier and Type | Field and Description |
---|---|
protected double |
allowedDelta
Allowed delta value to not be excluded.
|
cachingManager, exactly, keyWhiteList, matcher, name
Constructor and Description |
---|
ExclusionTechnology(java.lang.String name,
double allowedDelta)
Creates an exclusion technology.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isValueOutOfExclusionRange(java.util.Map<java.lang.String,SignalInformation> signalData,
double persistedValue)
Checks if the value is inside or outside the allowed delta vallue.
|
java.util.Map<PositionInformation,java.lang.Double> |
match(java.util.List<PositionInformation> persistedPositions)
Matches the current position with persisted position data.
|
equals, filterSignalData, getName, getSignalData, hashCode, init, isExactly, map, providesExactlyPosition, restoreCachingManager, restoreDefaultMatcher, setCachingManager, setExactly, setMatcher, stopScanning
protected double allowedDelta
public ExclusionTechnology(java.lang.String name, double allowedDelta)
name
- name of the technologyallowedDelta
- Allowed delta value to not be excluded. To get a delta value of 40 to each size, set it to 80.public java.util.Map<PositionInformation,java.lang.Double> match(java.util.List<PositionInformation> persistedPositions)
match
in class Technology
persistedPositions
- persisted position dataprotected boolean isValueOutOfExclusionRange(java.util.Map<java.lang.String,SignalInformation> signalData, double persistedValue)
signalData
- current signal datapersistedValue
- persisted value to check