public class ActiveTechnology extends Technology
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id
Identifier of the last item recognized by the active technology
|
cachingManager, exactly, keyWhiteList, matcher, name
Constructor and Description |
---|
ActiveTechnology(java.lang.String name)
Creates an active technology.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,SignalInformation> |
getSignalData()
Delivers the state of the active technology.
|
void |
idDetected(java.lang.String id)
Technology recognizes a new item. idGone has to be called to reset it.
|
void |
idDetected(java.lang.String id,
long duration)
Technology recognizes a new item and will reset it after a given time.
|
void |
idGone()
Resets the identifier.
|
equals, filterSignalData, getName, hashCode, init, isExactly, map, match, providesExactlyPosition, restoreCachingManager, restoreDefaultMatcher, setCachingManager, setExactly, setMatcher, stopScanning
protected java.lang.String id
public ActiveTechnology(java.lang.String name)
name
- name of the technology (will be persisted)public java.util.Map<java.lang.String,SignalInformation> getSignalData()
getSignalData
in class Technology
public void idDetected(java.lang.String id)
id
- identifier of the itempublic void idDetected(java.lang.String id, long duration)
id
- identifier of the itemduration
- duration in milliseconds, after this time the identifier will be resettedpublic void idGone()