cs.arizona.tau.xml.temporalconstraint
Class TransitionConstraint

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

public class TransitionConstraint
extends Constraint

The TransitionConstraint sub-class extending Constraint

Author:
ruizhang

Field Summary
static int VALUEEVOLUTION
          Value Evolution mode
static int VALUEPAIR
          Value Pair mode
 
Constructor Summary
TransitionConstraint(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 direction)
          Constructing the TransitionConstraint instance in the value-evolution mode, with its specific attribute, which is direction.
TransitionConstraint(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.util.Vector<cs.arizona.tau.xml.temporalconstraint.ValuePair> value_pairs)
          Constructing the TransitionConstraint instance in the value-pair mode, with its specific attribute, which is direction.
 
Method Summary
static boolean CheckTransitionConstraint(org.w3c.dom.Document temporal_doc, java.util.Vector<Constraint> constraints)
          Checking constraint 6.4 the TransitionConstraint constraint for both the value-evolution and value-pair cases.
 java.lang.String getDirection()
           
 int getMode()
           
 java.util.TreeSet<java.lang.String> getValuePairSet()
           
 
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
 

Field Detail

VALUEEVOLUTION

public static int VALUEEVOLUTION
Value Evolution mode


VALUEPAIR

public static int VALUEPAIR
Value Pair mode

Constructor Detail

TransitionConstraint

public TransitionConstraint(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 direction)
Constructing the TransitionConstraint instance in the value-evolution mode, with its specific attribute, which is direction.

Parameters:
name -
dimension -
selector -
field -
evaluation_window -
slide_size -
applicability -
direction - the value evolution direction

TransitionConstraint

public TransitionConstraint(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.util.Vector<cs.arizona.tau.xml.temporalconstraint.ValuePair> value_pairs)
Constructing the TransitionConstraint instance in the value-pair mode, with its specific attribute, which is direction.

Parameters:
name -
dimension -
selector -
field -
evaluation_window -
slide_size -
applicability -
value_pairs - the set of possible value pairs
Method Detail

getDirection

public java.lang.String getDirection()

getValuePairSet

public java.util.TreeSet<java.lang.String> getValuePairSet()

getMode

public int getMode()

CheckTransitionConstraint

public static boolean CheckTransitionConstraint(org.w3c.dom.Document temporal_doc,
                                                java.util.Vector<Constraint> constraints)
Checking constraint 6.4 the TransitionConstraint constraint for both the value-evolution and value-pair cases.

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