DSRG.VKB
Class Condition_index

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--DSRG.VKB.Condition_index

public class Condition_index
extends java.util.Vector
implements java.io.Serializable

A vector stores all the conditions.

See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData, serialVersionUID
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Condition_index()
          Default constructor of Condition_index.
Condition_index(java.util.Vector v)
          Construct a Condition_index from Vector
 
Method Summary
 boolean contains(Join_Condition jc)
          Test if the Condition_Index contains a specific Join_Condition.
 Condition_index deepClone()
          DeepClone a Condition_index
 java.util.Vector getCondComponents(Relation rel)
          Get all Condition Components of one Relation
 java.util.Vector getCondComponents(java.lang.String attr_name)
          Get Condition Components affected by specific Attribute.
 java.util.Vector getConditions(java.lang.String attr_name)
          Get Conditions affected by specific Attribute.
 java.util.Vector getJoinConditions(Relation rel1, Relation rel2)
          Get Join Conditions between two specific Relations.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, ensureCapacityHelper, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

Condition_index

public Condition_index()
Default constructor of Condition_index.

Condition_index

public Condition_index(java.util.Vector v)
Construct a Condition_index from Vector
Method Detail

getCondComponents

public java.util.Vector getCondComponents(Relation rel)
Get all Condition Components of one Relation
Parameters:
rel - Reference of the relation.
Returns:
Vector of Condition Components of such Relation or empty Vector

getCondComponents

public java.util.Vector getCondComponents(java.lang.String attr_name)
Get Condition Components affected by specific Attribute.
Parameters:
attr_name - attribute name in format "IS.R.A"
Returns:
if there is any, return a vector of c-comp; otherwise return null.

getConditions

public java.util.Vector getConditions(java.lang.String attr_name)
Get Conditions affected by specific Attribute.
Parameters:
attr_name - attribute name in format "IS.R.A"
Returns:
if there is any, return a vector; otherwise return null.

getJoinConditions

public java.util.Vector getJoinConditions(Relation rel1,
                                          Relation rel2)
Get Join Conditions between two specific Relations.
Parameters:
rel1 - name of one of two relations.
rel2 - name of the other relations.
Returns:
if there is any, return a vector; otherwise return an empty vector.

contains

public boolean contains(Join_Condition jc)
Test if the Condition_Index contains a specific Join_Condition. Here, we don't compare the reference, we will compare the content. We will use the equals function of Join_Condition to test if two JCs are same. ( current, the equal function cannot test the order. )

deepClone

public Condition_index deepClone()
DeepClone a Condition_index