cs.arizona.tau.xml.temporalconstraint
Class IdentityConstraint

java.lang.Object
  extended by cs.arizona.tau.xml.temporalconstraint.Constraint
      extended by cs.arizona.tau.xml.temporalconstraint.IdentityConstraint

public class IdentityConstraint
extends Constraint

The IdentityConstraint sub-class extending Constraint

Author:
ruizhang

Constructor Summary
IdentityConstraint(java.lang.String name, java.lang.String dimension, java.lang.String selector, java.lang.String field, int evaluation_window, int slide_size, Applicability applicability, java.lang.String scope, java.lang.String conventional_identifier, int null_count_min, int null_count_max)
          Constructing the IndentyConstraint instance with its specific attributes, which are scope, conventional_identifier, null_count_min and null_count_max.
 
Method Summary
static boolean CheckNonSeqKey(org.w3c.dom.Document temporal_doc, java.util.Vector<Constraint> constraints)
          Checking constraint 6.1 (2) the NonSeqKey constraint
static boolean CheckNonSeqUnique(org.w3c.dom.Document temporal_doc, java.util.Vector<Constraint> constraints)
          Checking constraint 6.1 (1) the NonSeqUnique constraint
static boolean CheckUniqueNullRestricted(org.w3c.dom.Document temporal_doc, java.util.Vector<Constraint> constraints)
          Checking constraint 6.1 (3) the UniqueNullRestricted constraint
 int getNullCountMax()
           
 int getNullCountMin()
           
 java.lang.String getScope()
           
 
Methods inherited from class cs.arizona.tau.xml.temporalconstraint.Constraint
getApplicability, getDimension, getEvaluationWindow, getField, getName, getSelector, getSlideSize, LoadEvaluationWindow, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentityConstraint

public IdentityConstraint(java.lang.String name,
                          java.lang.String dimension,
                          java.lang.String selector,
                          java.lang.String field,
                          int evaluation_window,
                          int slide_size,
                          Applicability applicability,
                          java.lang.String scope,
                          java.lang.String conventional_identifier,
                          int null_count_min,
                          int null_count_max)
Constructing the IndentyConstraint instance with its specific attributes, which are scope, conventional_identifier, null_count_min and null_count_max.

Parameters:
name -
dimension -
selector -
field -
evaluation_window -
slide_size -
applicability -
scope -
conventional_identifier -
null_count_min -
null_count_max -
Method Detail

getScope

public java.lang.String getScope()

getNullCountMin

public int getNullCountMin()

getNullCountMax

public int getNullCountMax()

CheckNonSeqUnique

public static boolean CheckNonSeqUnique(org.w3c.dom.Document temporal_doc,
                                        java.util.Vector<Constraint> constraints)
Checking constraint 6.1 (1) the NonSeqUnique constraint

Parameters:
temporal_doc - the temporal document
constraints - the list of defined NonSeqUnique constraints

CheckNonSeqKey

public static boolean CheckNonSeqKey(org.w3c.dom.Document temporal_doc,
                                     java.util.Vector<Constraint> constraints)
Checking constraint 6.1 (2) the NonSeqKey constraint

Parameters:
temporal_doc - the temporal document
constraints - the list of defined NonSeqKey constraints

CheckUniqueNullRestricted

public static boolean CheckUniqueNullRestricted(org.w3c.dom.Document temporal_doc,
                                                java.util.Vector<Constraint> constraints)
Checking constraint 6.1 (3) the UniqueNullRestricted constraint

Parameters:
temporal_doc - the temporal document
constraints - the list of defined UniqueNullRestricted constraints