org.fosstrak.ale.server
Class Report

java.lang.Object
  extended by org.fosstrak.ale.server.Report

public class Report
extends java.lang.Object

This class represents a report. It filters and groups tags, add them to the report and build ec reports.

Author:
regli, sawielan

Constructor Summary
Report(org.fosstrak.ale.xsd.ale.epcglobal.ECReportSpec reportSpec, EventCycle currentEventCycle)
          Constructor set parameters, read specifiaction and initializes patterns.
 
Method Summary
 void addTag(Tag tag)
          This method adds a tag to the report.
 void addTag(org.fosstrak.reader.rprm.core.msg.notification.TagType tag)
          this method is for compatibility reasons such that eg ReportTest is not broken.
 org.fosstrak.ale.xsd.ale.epcglobal.ECReport getECReport()
          This method returns the new ec report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Report

public Report(org.fosstrak.ale.xsd.ale.epcglobal.ECReportSpec reportSpec,
              EventCycle currentEventCycle)
       throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
Constructor set parameters, read specifiaction and initializes patterns.

Parameters:
reportSpec - defines how the report should be generated
currentEventCycle - this report belongs to
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - if an implementation exception occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
Method Detail

addTag

public void addTag(Tag tag)
            throws org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse,
                   org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
This method adds a tag to the report.

Parameters:
tag - to add
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationException - if the tag is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - if an implementation exception occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

addTag

public void addTag(org.fosstrak.reader.rprm.core.msg.notification.TagType tag)
            throws org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse,
                   org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
this method is for compatibility reasons such that eg ReportTest is not broken.

Parameters:
tag - to add
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationException - if the tag is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - if an implementation exception occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

getECReport

public org.fosstrak.ale.xsd.ale.epcglobal.ECReport getECReport()
                                                        throws org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse,
                                                               org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
This method returns the new ec report.

Returns:
ec report
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationException - if a tag is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - if an implementation exception occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse


Copyright © 2009. All Rights Reserved.