Engine Terms

From RifidiWiki

Revision as of 19:24, 8 November 2007 by Kyle (Talk | contribs)

Jump to: navigation, search

Formatter

The formatter handles any reader specific parsing that needs to be done to a raw message coming into (using the decode method) or going out of the reader (using the encode method). For an example, see Formatter.

Handler Method

A method within a reader's project that handles a specific command for a reader. For example if a Rifidi Symbol reader receives a Set System Parameter Command, the following method handles the logic for that command:
	
public CommandObject setSystemParameter(CommandObject arg, AbstractReaderSharedResources asr) {
    byte[] setSystemParam = { 0x04, 0x06, 0x27, 0x00 };
    arg.getReturnValue().add(setSystemParam);
    return arg;
}
Personal tools