|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bea.rfid.workflow.epcis.AggregationReconciler
public class AggregationReconciler
Compares an aggregation with its manifest (expected elements in an aggregation). The comparison result is based on the properties, like percentage children match required, specified on the reconciler instance.
This implementation assumes single threaded operation and is not synchronized. If multiple threads access this concurrently, it must be synchronized externally.
| Field Summary | |
|---|---|
static String |
EPC_ID_PATTERN_PREFIX
|
static String |
EPC_ID_URI_PREFIX
|
static String |
EPC_RAW_URI_PREFIX
|
static String |
EPC_TAG_PATTERN_PREFIX
|
static String |
EPC_TAG_URI_PREFIX
|
| Constructor Summary | |
|---|---|
AggregationReconciler(double childPercentageMatch,
boolean allowExtraChildren,
boolean matchEPCParent,
boolean matchNonEPCParent)
Constructor. |
|
| Method Summary | |
|---|---|
double |
getChildPercentMatch()
Returns the percentage of child entries that must be found to produce an output of true for children matched result. |
boolean |
isAllowExtraChildren()
Returns boolean value that indicates if extra children in input aggregation should result in matched children value of false. |
boolean |
isMatchEPCParent()
Returns true if parent value in aggregation should be compared when the expected parent is an EPC value. |
boolean |
isMatchNonEPCParent()
Returns true if parent value in aggregation should be compared when the expected parent is not an EPC value. |
ReconciliationResult |
reconcile(com.connecterra.epcis.api.AggregationEvent aggregation,
Manifest manifest)
Reconciles the given aggregation with the given manifest and returns the result. |
void |
setAllowExtraChildren(boolean allowExtraChildren)
Specifies if extra child entries in input aggregations should be ignored and produce matched children output of value true. |
void |
setChildPercentMatch(double childPercentMatch)
Specifies the percentage of child entries that must be found to produce an output of true for children matched result. |
void |
setMatchEPCParent(boolean matchEPCParent)
Specifies if the parent value in aggregations should be compared when the expected parent is an EPC. |
void |
setMatchNonEPCParent(boolean matchNonEPCParent)
Specifies if the parent value in aggregations should be compared when the expected parent is not an EPC. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EPC_ID_PATTERN_PREFIX
public static final String EPC_TAG_PATTERN_PREFIX
public static final String EPC_ID_URI_PREFIX
public static final String EPC_TAG_URI_PREFIX
public static final String EPC_RAW_URI_PREFIX
| Constructor Detail |
|---|
public AggregationReconciler(double childPercentageMatch,
boolean allowExtraChildren,
boolean matchEPCParent,
boolean matchNonEPCParent)
childPercentageMatch - double specifying what percentage of children
must be matched to produce true output for matched children resultallowExtraChildren - if this is true, extra children tag will still produce
true output for matched children result. If this is false, detection of
extra children will produce false output for matched children result.matchEPCParent - specifies if parent must be matched when the expected parent
is an EPC URImatchNonEPCParent - specifies if parent must be matched when the expected parent
is not an EPC value| Method Detail |
|---|
public ReconciliationResult reconcile(com.connecterra.epcis.api.AggregationEvent aggregation,
Manifest manifest)
throws com.connecterra.ale.epc.EPCException,
URISyntaxException,
com.connecterra.epcis.api.EPCISException,
com.connecterra.ale.epc.EPCDecodeException
aggregation - aggregation event that must be matchedmanifest - manifest to match the aggreation with
com.connecterra.ale.epc.EPCException - if the manifest or aggregation contains invalid EPC values
URISyntaxException - if the manifest or aggregation contains invalid URIs
com.connecterra.ale.epc.EPCDecodeException - if the manifest or aggregation contains EPCs with incorrect
fields
com.connecterra.epcis.api.EPCISException - if the input aggregation event is not validpublic boolean isAllowExtraChildren()
public void setAllowExtraChildren(boolean allowExtraChildren)
allowExtraChildren - specify true if extra child entries is not considered an
error and should produce output of true for matched children; false otherwise.public boolean isMatchEPCParent()
public void setMatchEPCParent(boolean matchEPCParent)
matchEPCParent - specify true if parent value must be compared when expected
parent is an EPC; false otherwisepublic boolean isMatchNonEPCParent()
public void setMatchNonEPCParent(boolean matchNonEPCParent)
matchNonEPCParent - specify true if parent value must be compared when expected
parent is not an EPC; false otherwisepublic double getChildPercentMatch()
public void setChildPercentMatch(double childPercentMatch)
childPercentMatch - the percentage of child entries that must be found to
produce an output of true for children matched result
|
Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||