pops.ale.epc.spec.grouping
Class GroupPattern

java.lang.Object
  extended by pops.ale.epc.spec.grouping.GroupPattern

public class GroupPattern
extends java.lang.Object


Field Summary
protected  java.lang.String pattern
          Wrapped pattern String.
 
Constructor Summary
GroupPattern()
           
 
Method Summary
static boolean areDisjoint(GroupPattern gPattA, GroupPattern gPattB)
          Disjointness of two patterns test.
static void dump(GroupPattern gPatt)
           
 java.lang.String[] getFields()
           
 int getNumFields()
           
 EncScheme getType()
           
 UriRepresentation getUriRepresentation()
          Getter for uriRepresentation
static void main(java.lang.String[] args)
           
static boolean matches(Epc epc, GroupPattern patternGroup)
           
 void setGroupUri(java.lang.String groupUri)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pattern

protected java.lang.String pattern
Wrapped pattern String. By reference.

Constructor Detail

GroupPattern

public GroupPattern()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
string representation of the object : the URI

getType

public EncScheme getType()

getNumFields

public int getNumFields()

getFields

public java.lang.String[] getFields()

getUriRepresentation

public UriRepresentation getUriRepresentation()
Getter for uriRepresentation

Returns:
the uriRepresentation

setGroupUri

public void setGroupUri(java.lang.String groupUri)

matches

public static boolean matches(Epc epc,
                              GroupPattern patternGroup)

areDisjoint

public static boolean areDisjoint(GroupPattern gPattA,
                                  GroupPattern gPattB)
Disjointness of two patterns test. It is defined as follows :
Let Pat_i and Pat_j be two pattern URIs, written as a series of fields as follows:
 Pat_i = urn:epc:pat:type_i:field_i_1.field_i_2.field_i_3...
 Pat_j = urn:epc:pat:type_j:field_j_1.field_j_2.field_j_3... 
Then Pat_i and Pat_j are disjoint if:

Parameters:
gPattA - Group pattern left
gPattB - Group pattern right
Returns:
true if disjoint, false otherwise

dump

public static void dump(GroupPattern gPatt)

main

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