pops.ale.epc.spec.grouping
Class GroupPattern
java.lang.Object
pops.ale.epc.spec.grouping.GroupPattern
public class GroupPattern
- extends java.lang.Object
Field Summary |
protected java.lang.String |
pattern
Wrapped pattern String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
pattern
protected java.lang.String pattern
- Wrapped pattern String. By reference.
GroupPattern
public GroupPattern()
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:
- type_i is not equal to type_j
- type_i = type_j but there is at least one field k for which
field_i_k and field_j_k are disjoint (cf.
areDisjoint
)
- Parameters:
gPattA
- Group pattern leftgPattB
- 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