Difference between revisions of "Package Structure for a reader project"

From RifidiWiki

Jump to: navigation, search
Line 1: Line 1:
 
[[category:developerDoc]][[category:emulatorDoc]]
 
[[category:developerDoc]][[category:emulatorDoc]]
Coming soon
+
 
 +
Please refer to [[Create a new reader project | this document]] to figure out how to create a new reader project in eclipse
 +
 
 +
This page enumerates the very basic packages that a reader will need to have and the important files in each one.  Complex readers will have more packages than these, but this is a bare minimum.  These packages correspond with what you will need to program in [[Reader_Development_Stages#Stage_2_Reader_Core_Implementation| stage 2 of reader creation]].
 +
==org.rifidi.emulator.reader.READERNAME==
 +
This package just contains the osgi activator.  It should be created for you automatically when you create the project.  You shouldn't have to modify it.
 +
==org.rifidi.emualtor.reader.READERNAME.command.exception==
 +
This package contains a file that handles exceptions that occur in the parsing and execution of reader commands.
 +
*[[READERNAMEExceptionHanlder.java]]
 +
==org.rifidi.emualtor.reader.READERNAME.commandhandler==
 +
This package contains one or more files that handle incoming reader messages.  Normally commands can be divided into general categories.  For example, with the LLRP reader, there are a set of commands that deal with ROSPec messages (such as ADD_ROSPEC, ENABLE_ROSPEC, etc.) and a separate set of commands that deal with AccessSpec messages (such as ADD_ACCESSSPEC, ENABLE_ACCESSSPEC).  So for the LLRP reader, there is one file called 'LLRPReaderOperationControl.java' that contains the handler methods for ROSpec commands and  a file called 'LLRPAccessControl.java' that contains the handler methods for AccessSpec commands. 
 +
*[[READERNAME_CATEGORY_Handler.java]]
 +
==org.rifidi.emualtor.reader.READERNAME.formatter==
 +
==org.rifidi.emualtor.reader.READERNAME.module==
 +
==org.rifidi.emualtor.reader.READERNAME.tagbuffer==

Revision as of 22:38, 30 January 2008


Please refer to this document to figure out how to create a new reader project in eclipse

This page enumerates the very basic packages that a reader will need to have and the important files in each one. Complex readers will have more packages than these, but this is a bare minimum. These packages correspond with what you will need to program in stage 2 of reader creation.

org.rifidi.emulator.reader.READERNAME

This package just contains the osgi activator. It should be created for you automatically when you create the project. You shouldn't have to modify it.

org.rifidi.emualtor.reader.READERNAME.command.exception

This package contains a file that handles exceptions that occur in the parsing and execution of reader commands.

org.rifidi.emualtor.reader.READERNAME.commandhandler

This package contains one or more files that handle incoming reader messages. Normally commands can be divided into general categories. For example, with the LLRP reader, there are a set of commands that deal with ROSPec messages (such as ADD_ROSPEC, ENABLE_ROSPEC, etc.) and a separate set of commands that deal with AccessSpec messages (such as ADD_ACCESSSPEC, ENABLE_ACCESSSPEC). So for the LLRP reader, there is one file called 'LLRPReaderOperationControl.java' that contains the handler methods for ROSpec commands and a file called 'LLRPAccessControl.java' that contains the handler methods for AccessSpec commands.

org.rifidi.emualtor.reader.READERNAME.formatter

org.rifidi.emualtor.reader.READERNAME.module

org.rifidi.emualtor.reader.READERNAME.tagbuffer

Personal tools