pops.ale.engine.com
Class IhmCom

java.lang.Object
  extended by pops.ale.engine.com.IhmCom

public class IhmCom
extends java.lang.Object

Interface with the IHM subset. The following features are provided :

Author:
rdagher

Constructor Summary
IhmCom(fr.icom.decathlon.access.fifo.EventFifo anEventFifo, int maxTags)
          Constructor
 
Method Summary
 void aggregateSGLN96(byte[] tagData)
          Adds the sgln tag to the aggregation report, and sends it to the IHM.
 void aggregateSGLN96(long companyPrefix, int locationReference)
           
 void aggregateSGTIN96(byte[] id)
          Perfoms the aggregation of gtin tag.
 void aggregateSGTIN96(long companyPrefix, int itemReference)
          Perfoms the aggregation of gtin tag.
 void flush()
          Sends gtin aggregation report on fifo.
 void init()
          Initialize aggregation process.
 void logStartupStatus(boolean status, java.lang.Exception errContext)
          Sends the start up status to the IHM.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IhmCom

public IhmCom(fr.icom.decathlon.access.fifo.EventFifo anEventFifo,
              int maxTags)
Constructor

Parameters:
anEventFifo - the fifo for sending status and aggregation info to the IHM.
maxTags - the maximum number of tags
Method Detail

init

public void init()
Initialize aggregation process. Must always be called after a flush, in order to begin a new aggregation cycle.


logStartupStatus

public void logStartupStatus(boolean status,
                             java.lang.Exception errContext)
Sends the start up status to the IHM.

Parameters:
status - flag : true for OK, false in case of error
errContext - context of error, or null if none

aggregateSGLN96

public void aggregateSGLN96(byte[] tagData)
Adds the sgln tag to the aggregation report, and sends it to the IHM.


aggregateSGLN96

public void aggregateSGLN96(long companyPrefix,
                            int locationReference)

aggregateSGTIN96

public void aggregateSGTIN96(byte[] id)
Perfoms the aggregation of gtin tag.
For each different gtin, a counter is updated.


aggregateSGTIN96

public void aggregateSGTIN96(long companyPrefix,
                             int itemReference)
Perfoms the aggregation of gtin tag.
For each different gtin, a counter is updated.


flush

public void flush()
Sends gtin aggregation report on fifo.

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception