|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fosstrak.hal.impl.feig.FeigCOMController
public class FeigCOMController
Constructor Summary | |
---|---|
FeigCOMController(java.lang.String halName,
java.lang.String propFile)
|
Method Summary | |
---|---|
void |
addAsynchronousIdentifyListener(AsynchronousIdentifyListener listener)
Adds an asynchronous identify listener. |
java.lang.String[] |
getAllParameterNames()
(non-Javadoc) |
java.lang.String |
getHALName()
Returns the HAL name. |
protected java.util.Vector<InventoryItem> |
getInventory()
Throws RFIDException if error occurs. |
java.lang.String |
getParameter(java.lang.String param)
(non-Javadoc) |
java.lang.String[] |
getReadPointNames()
(non-Javadoc) |
int |
getReadPointNoiseLevel(java.lang.String readPointName,
boolean normalize)
Returns the current noise level observed at a certain read point. |
int |
getReadPointPowerLevel(java.lang.String readPointName,
boolean normalize)
Returns the current transmit power level of a certain read point. |
java.lang.String[] |
getSupportedTransponderTypes()
|
Observation[] |
identify(java.lang.String[] readPointNames)
(non-Javadoc) |
void |
initialize()
Initialize the reader hardware. |
protected void |
initReader(int comPort,
java.lang.String baudRate,
java.lang.String frame)
initializes the reader. |
boolean |
isAsynchronousIdentifyRunning()
Checks whether asynchronous identify is running. |
boolean |
isReadPointReady(java.lang.String readPointName)
Checks whether a read point is ready (i.e. it has been started up). |
void |
kill(java.lang.String readPointName,
java.lang.String id,
java.lang.String[] passwords)
Kills the specified tag, if in range. |
protected void |
populateSystemInformation(java.util.Vector<InventoryItem> inventory)
|
UnsignedByteArray |
readBytes(java.lang.String readPointName,
java.lang.String id,
int memoryBank,
int offset,
int length,
java.lang.String[] passwords)
(non-Javadoc) |
void |
removeAsynchronousIdentifyListener(AsynchronousIdentifyListener listener)
removes an asynchronous identify listener. |
void |
reset()
(non-Javadoc) |
boolean |
selectChannel(int address,
int channel)
|
boolean |
selectReadpoint(java.lang.String readPointName)
|
void |
setParameter(java.lang.String param,
java.lang.String value)
(non-Javadoc) |
void |
shutDownReadPoint(java.lang.String readPointName)
Shuts down a read point. |
void |
startAsynchronousIdentify(java.lang.String[] readPointNames,
Trigger trigger)
Identifies the tags in a reader's field in a continuous way that operates asynchronously. |
void |
startUpReadPoint(java.lang.String readPointName)
Starts up a read point. |
void |
stopAsynchronousIdentify()
Stops the asynchronous identification for a specific listener. |
boolean |
supportsAsynchronousIdentify()
Checks whether this HAL controller implementation supports the startAsynchronousIdentify() ,
stopAsynchronousIdentify() , isAsynchronousIdentifyRunning() ,
addAsynchronousIdentifyListener() and removeAsynchronousIdentifyListener()
methods. |
boolean |
supportsGetReadPointNoiseLevel()
Checks whether this HAL controller implementation supports the getReadPointNoiseLevel() method. |
boolean |
supportsGetReadPointPowerLevel()
Checks whether this HAL controller implementation supports the getReadPointPowerLevel() method. |
boolean |
supportsIsReadPointReady()
Checks whether this HAL controller implementation supports the isReadPointReady() method. |
boolean |
supportsKill()
Checks whether this HAL controller implementation supports the kill() method. |
boolean |
supportsParameters()
(non-Javadoc) |
boolean |
supportsReadBytes()
Checks whether this HAL controller implementation supports the readBytes() method. |
boolean |
supportsReset()
(non-Javadoc) |
boolean |
supportsShutDownReadPoint()
Checks whether this HAL controller implementation supports the shutDownReadPoint() method. |
boolean |
supportsStartUpReadPoint()
Checks whether this HAL controller implementation supports the startUpReadPoint() method. |
boolean |
supportsWriteBytes()
Checks whether this HAL controller implementation supports the writeBytes() method. |
boolean |
supportsWriteId()
(non-Javadoc) |
void |
writeBytes(java.lang.String readPointName,
java.lang.String id,
int memoryBank,
int offset,
UnsignedByteArray data,
java.lang.String[] passwords)
(non-Javadoc) |
void |
writeId(java.lang.String readPointName,
java.lang.String id,
java.lang.String[] passwords)
(non-Javadoc) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeigCOMController(java.lang.String halName, java.lang.String propFile)
halName
- Method Detail |
---|
public void initialize() throws HardwareException
HardwareException
public Observation[] identify(java.lang.String[] readPointNames) throws HardwareException
identify
in interface HardwareAbstraction
readPointNames
- Array that contains the names of all read points to be scanned
Observation
object
HardwareException
HardwareAbstraction.identify(java.lang.String[])
public java.lang.String[] getReadPointNames()
getReadPointNames
in interface HardwareAbstraction
HardwareAbstraction.getReadPointNames()
public UnsignedByteArray readBytes(java.lang.String readPointName, java.lang.String id, int memoryBank, int offset, int length, java.lang.String[] passwords) throws HardwareException, UnsupportedOperationException
readBytes
in interface HardwareAbstraction
readPointName
- The name of the read point on which the read attempt will be doneid
- ID of the tag from which the data will be readmemoryBank
- The number of the memory bank of the dataoffset
- The offset of the data in byteslength
- The number of bytes to be readpasswords
- An optional list of one or more passwords (or lock code)
HardwareException
UnsupportedOperationException
HardwareAbstraction.readBytes(java.lang.String,
java.lang.String, int, int, int, java.lang.String[])
public void writeBytes(java.lang.String readPointName, java.lang.String id, int memoryBank, int offset, UnsignedByteArray data, java.lang.String[] passwords) throws HardwareException, UnsupportedOperationException
writeBytes
in interface HardwareAbstraction
readPointName
- The name of the read point on which the write attempt will be doneid
- ID of the tag to which the data will be writtenmemoryBank
- The number of the memory bank of the dataoffset
- The offset of the data in bytesdata
- The byte data to be written to the tagpasswords
- An optional list of one or more passwords (or lock code)
HardwareException
UnsupportedOperationException
HardwareAbstraction.writeBytes(java.lang.String,
java.lang.String, int, int, UnsignedByteArray, java.lang.String[])
public void writeId(java.lang.String readPointName, java.lang.String id, java.lang.String[] passwords) throws HardwareException, UnsupportedOperationException
writeId
in interface HardwareAbstraction
readPointName
- The name of the read point on which the write attempt will be doneid
- the new ID for the tagpasswords
- an optional list of one or more passwords (or lock code)
HardwareException
UnsupportedOperationException
HardwareAbstraction.writeId(java.lang.String,
java.lang.String, java.lang.String[])
public boolean supportsWriteId()
supportsWriteId
in interface HardwareAbstraction
HardwareAbstraction.supportsWriteId()
public void reset() throws HardwareException
reset
in interface HardwareAbstraction
HardwareException
HardwareAbstraction.reset()
public boolean supportsReset()
supportsReset
in interface HardwareAbstraction
HardwareAbstraction.supportsReset()
public void setParameter(java.lang.String param, java.lang.String value) throws HardwareException
setParameter
in interface HardwareAbstraction
param
- The parameter namevalue
- The parameter value
HardwareException
HardwareAbstraction.setParameter(java.lang.String,
java.lang.String)
public java.lang.String getParameter(java.lang.String param) throws HardwareException
getParameter
in interface HardwareAbstraction
param
- The parameter name to be read
HardwareException
HardwareAbstraction.getParameter(java.lang.String)
public boolean supportsParameters()
supportsParameters
in interface HardwareAbstraction
HardwareAbstraction.supportsParameters()
public java.lang.String[] getAllParameterNames() throws HardwareException, UnsupportedOperationException
getAllParameterNames
in interface HardwareAbstraction
HardwareException
UnsupportedOperationException
HardwareAbstraction.getAllParameterNames()
protected void populateSystemInformation(java.util.Vector<InventoryItem> inventory) throws HardwareException
HardwareException
protected java.util.Vector<InventoryItem> getInventory() throws HardwareException
HardwareException
protected void initReader(int comPort, java.lang.String baudRate, java.lang.String frame) throws HardwareException
comPort
- the port number the reader is connected to.baudRate
- the baud rate used for communication with the readerframe
- a frame constisting of databit, parity and stopbit
RFIDException
- if the port is not found, the frame is not supported, an
io-error occurs...
HardwareException
public java.lang.String getHALName()
HardwareAbstraction
getHALName
in interface HardwareAbstraction
public boolean supportsReadBytes()
HardwareAbstraction
readBytes()
method.
supportsReadBytes
in interface HardwareAbstraction
public boolean supportsWriteBytes()
HardwareAbstraction
writeBytes()
method.
supportsWriteBytes
in interface HardwareAbstraction
public void startAsynchronousIdentify(java.lang.String[] readPointNames, Trigger trigger) throws HardwareException, UnsupportedOperationException
HardwareAbstraction
readPointNames
should contain only one read point.
startAsynchronousIdentify
in interface HardwareAbstraction
readPointNames
- Assay that contains the names of all read points to be scannedtrigger
- The trigger that indicates the type of asynchronous identify
HardwareException
UnsupportedOperationException
public void stopAsynchronousIdentify() throws HardwareException, UnsupportedOperationException
HardwareAbstraction
stopAsynchronousIdentify
in interface HardwareAbstraction
HardwareException
UnsupportedOperationException
public boolean isAsynchronousIdentifyRunning() throws HardwareException, UnsupportedOperationException
HardwareAbstraction
isAsynchronousIdentifyRunning
in interface HardwareAbstraction
HardwareException
UnsupportedOperationException
public void addAsynchronousIdentifyListener(AsynchronousIdentifyListener listener) throws HardwareException, UnsupportedOperationException
HardwareAbstraction
addAsynchronousIdentifyListener
in interface HardwareAbstraction
HardwareException
UnsupportedOperationException
public void removeAsynchronousIdentifyListener(AsynchronousIdentifyListener listener) throws HardwareException, UnsupportedOperationException
HardwareAbstraction
removeAsynchronousIdentifyListener
in interface HardwareAbstraction
HardwareException
UnsupportedOperationException
public boolean supportsAsynchronousIdentify()
HardwareAbstraction
startAsynchronousIdentify()
,
stopAsynchronousIdentify()
, isAsynchronousIdentifyRunning()
,
addAsynchronousIdentifyListener()
and removeAsynchronousIdentifyListener()
methods.
supportsAsynchronousIdentify
in interface HardwareAbstraction
public boolean isReadPointReady(java.lang.String readPointName)
HardwareAbstraction
isReadPointReady
in interface HardwareAbstraction
readPointName
- The name of the read point
true
it the antenna is ready,
false
otherwisepublic boolean supportsIsReadPointReady()
HardwareAbstraction
isReadPointReady()
method.
supportsIsReadPointReady
in interface HardwareAbstraction
public void kill(java.lang.String readPointName, java.lang.String id, java.lang.String[] passwords) throws HardwareException, UnsupportedOperationException
HardwareAbstraction
kill
in interface HardwareAbstraction
readPointName
- the name of the read point on which the kill attempt will be doneid
- id of the tag that will be killedpasswords
- an optional list of one or more passwords (or lock code)
HardwareException
UnsupportedOperationException
public void shutDownReadPoint(java.lang.String readPointName)
HardwareAbstraction
shutDownReadPoint
in interface HardwareAbstraction
readPointName
- The name of the read pointpublic boolean supportsShutDownReadPoint()
HardwareAbstraction
shutDownReadPoint()
method.
supportsShutDownReadPoint
in interface HardwareAbstraction
public void startUpReadPoint(java.lang.String readPointName)
HardwareAbstraction
startUpReadPoint
in interface HardwareAbstraction
readPointName
- The name of the read pointpublic boolean supportsStartUpReadPoint()
HardwareAbstraction
startUpReadPoint()
method.
supportsStartUpReadPoint
in interface HardwareAbstraction
public boolean supportsKill()
HardwareAbstraction
kill()
method.
supportsKill
in interface HardwareAbstraction
public int getReadPointNoiseLevel(java.lang.String readPointName, boolean normalize)
HardwareAbstraction
getReadPointNoiseLevel
in interface HardwareAbstraction
readPointName
- The name of the read pointnormalize
- Specifies whether the noise level should be returned in a
normalized form (i.e. in a range from 0 to 255)
public boolean supportsGetReadPointNoiseLevel()
HardwareAbstraction
getReadPointNoiseLevel()
method.
supportsGetReadPointNoiseLevel
in interface HardwareAbstraction
public int getReadPointPowerLevel(java.lang.String readPointName, boolean normalize)
HardwareAbstraction
getReadPointPowerLevel
in interface HardwareAbstraction
readPointName
- The name of the read pointnormalize
- Specifies whether the power level should be returned in a normalized form (i.e. in a range from 0 to 255)
public boolean supportsGetReadPointPowerLevel()
HardwareAbstraction
getReadPointPowerLevel()
method.
supportsGetReadPointPowerLevel
in interface HardwareAbstraction
public boolean selectReadpoint(java.lang.String readPointName)
public boolean selectChannel(int address, int channel) throws HardwareException
selectChannel
in interface FeigController
HardwareException
public java.lang.String[] getSupportedTransponderTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |