java.lang.Object
com.globalretailtech.pos.events.PosEvent
com.globalretailtech.pos.events.LookupItem
- public class LookupItem
- extends PosEvent
Simulates an item lookup by creating an EjItem then engaging that class with
the value from the input. If the input line is less than 8 (MAX_PLU_LEN) digits
use the plu else lookup the sku directly.
|
Constructor Summary |
LookupItem()
Simple constructor for dynamic load |
MAX_PLU_LEN
public static final int MAX_PLU_LEN
- See Also:
- Constant Field Values
eventname
private static java.lang.String eventname
LookupItem
public LookupItem()
- Simple constructor for dynamic load
engage
public void engage(int value)
- If the input line is a certain length test to see if it
exists as an item in the PLU file. Note: a 1-to-1 PLU
to SKU map must be set up. Note: this should be connected
to a filter instead of the hard-coded MAX_PLU_LEN. Otherwise
Assume the PLU is coming from the input line, again Note: a 1-to-1 PLU
to SKU map must be set up.
- Specified by:
engage in class PosEvent
validTransition
public boolean validTransition(java.lang.String event)
- Validate transistions state
- Specified by:
validTransition in class PosEvent
clear
public void clear()
- Clear key implementation for this class
- Specified by:
clear in class PosEvent
toString
public java.lang.String toString()
- Return staic name.
- Overrides:
toString in class PosEvent
eventName
public static java.lang.String eventName()
- Return staic name.