it.unipd.dei.ims.nestor.experiment.primitives
Class ArrayBasedInverseNSMContentQueryOperations

java.lang.Object
  extended by it.unipd.dei.ims.nestor.experiment.primitives.ArrayBasedInverseNSMContentQueryOperations

public class ArrayBasedInverseNSMContentQueryOperations
extends java.lang.Object

This class defines the INS-M (IDS) primitives using an array-based data structure.

Author:
Gianmaria Silvello

Constructor Summary
ArrayBasedInverseNSMContentQueryOperations()
           
 
Method Summary
static java.lang.String[] ancestorElements(int[][] elements, java.lang.String[] content, int set)
          Returns the ancestors content of the given set.
static int[] childrenElements(int[][] directSubsets, int[][] supersets, int[][] elements, int set)
          Returns the children integer values of the given set.
static java.lang.String[] childrenElements(int[][] directSubsets, int[][] supersets, int[][] elements, java.lang.String[] content, int set)
          Returns the children content of the given set.
static int[] descendantElements(int[][] directSubsets, int[][] supersets, int[][] elements, int set)
          Returns the descendants content of the given set.
static java.lang.String[] descendantElements(int[][] directSubsets, int[][] supersets, int[][] elements, java.lang.String[] content, int set)
          Returns the descendants content of the given set.
static int[] parentElements(int[][] directSubsets, int[][] supersets, int[][] elements, int set)
           
static java.lang.String[] parentElements(int[][] directSubsets, int[][] supersets, int[][] elements, java.lang.String[] content, int set)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayBasedInverseNSMContentQueryOperations

public ArrayBasedInverseNSMContentQueryOperations()
Method Detail

ancestorElements

public static java.lang.String[] ancestorElements(int[][] elements,
                                                  java.lang.String[] content,
                                                  int set)
Returns the ancestors content of the given set.

Parameters:
elements - the matrix of the elements.
content - the array with the content strings.
set - the given set identified by an integer value.
Returns:
The content of the ancestors.

descendantElements

public static int[] descendantElements(int[][] directSubsets,
                                       int[][] supersets,
                                       int[][] elements,
                                       int set)
Returns the descendants content of the given set.

Parameters:
elements - the matrix of the elements.
content - the array with the content strings.
set - the given set identified by an integer value.
Returns:
The integer values of the descendants.

descendantElements

public static java.lang.String[] descendantElements(int[][] directSubsets,
                                                    int[][] supersets,
                                                    int[][] elements,
                                                    java.lang.String[] content,
                                                    int set)
Returns the descendants content of the given set.

Parameters:
elements - the matrix of the elements.
content - the array with the content strings.
set - the given set identified by an integer value.
Returns:
The content of the descendants.

childrenElements

public static int[] childrenElements(int[][] directSubsets,
                                     int[][] supersets,
                                     int[][] elements,
                                     int set)
Returns the children integer values of the given set.

Parameters:
elements - the matrix of the elements.
content - the array with the content strings.
set - the given set identified by an integer value.
Returns:
The integer values of the descendants.

childrenElements

public static java.lang.String[] childrenElements(int[][] directSubsets,
                                                  int[][] supersets,
                                                  int[][] elements,
                                                  java.lang.String[] content,
                                                  int set)
Returns the children content of the given set.

Parameters:
elements - the matrix of the elements.
content - the array with the content strings.
set - the given set identified by an integer value.
Returns:
The content of the descendants.

parentElements

public static int[] parentElements(int[][] directSubsets,
                                   int[][] supersets,
                                   int[][] elements,
                                   int set)

parentElements

public static java.lang.String[] parentElements(int[][] directSubsets,
                                                int[][] supersets,
                                                int[][] elements,
                                                java.lang.String[] content,
                                                int set)