pops.ale.epc.spec
Class ECSpec

java.lang.Object
  extended by pops.ale.epc.spec.Spec
      extended by pops.ale.epc.spec.ECSpec

public class ECSpec
extends Spec

An ECSpec describes an event cycle and one or more reports that are to be generated from it. It contains a list of logical Readers whose data are to be included in the event cycle, a specification of how the boundaries of event cycles are to be determined, and a list of specifications each of which describes a report to be generated from this event cycle.

Author:
pops, R.DAGHER

Field Summary
protected  java.lang.String[] primaryKeyFields
          (Optional) An ordered list that specifies a set of fields which together constitute the "primary key" for determining Tag uniqueness, as described below.
 
Constructor Summary
ECSpec()
          Constructor
ECSpec(java.util.Properties spec_property)
          Constructor for building spec using a Java property File
ECSpec(java.lang.String[] logicalReaders, ECBoundarySpec boundarySpec, ECReportSpec[] reportSpecs, boolean includeSpecInReports)
           
 
Method Summary
 ECBoundarySpec getBoundarySpec()
          Getter for boundarySpec
 java.lang.String[] getLogicalReaders()
          Getter for logicalReaders
 ECReportSpec[] getReportSpecs()
          Getter for reportSpecs
 boolean isIncludeSpecInReports()
          Getter for includeSpecInReports
 void loadFromProp(java.util.Properties spec_property)
          Set up fields from a Java property object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

primaryKeyFields

protected java.lang.String[] primaryKeyFields
(Optional) An ordered list that specifies a set of fields which together constitute the "primary key" for determining Tag uniqueness, as described below. Each element of the list is a fieldname. If omitted, the ALE implementation SHALL use only the epc field to determine Tag uniqueness. This gives back-compatibility with ALE 1.0.

Constructor Detail

ECSpec

public ECSpec(java.lang.String[] logicalReaders,
              ECBoundarySpec boundarySpec,
              ECReportSpec[] reportSpecs,
              boolean includeSpecInReports)
Parameters:
logicalReaders -
boundarySpec -
reportSpecs -
includeSpecInReports -

ECSpec

public ECSpec()
Constructor


ECSpec

public ECSpec(java.util.Properties spec_property)
Constructor for building spec using a Java property File

Parameters:
spec_property - Java property object containing specification data
Throws:
TBD
Method Detail

loadFromProp

public void loadFromProp(java.util.Properties spec_property)
Set up fields from a Java property object

Specified by:
loadFromProp in class Spec
Parameters:
spec_property - Java property object containing specification data

getLogicalReaders

public java.lang.String[] getLogicalReaders()
Getter for logicalReaders

Returns:
the logicalReaders

getBoundarySpec

public ECBoundarySpec getBoundarySpec()
Getter for boundarySpec

Returns:
the boundarySpec

getReportSpecs

public ECReportSpec[] getReportSpecs()
Getter for reportSpecs

Returns:
the reportSpecs

isIncludeSpecInReports

public boolean isIncludeSpecInReports()
Getter for includeSpecInReports

Returns:
the includeSpecInReports