net.sourceforge.nite.search
Class NodeCondition

java.lang.Object
  extended by net.sourceforge.nite.search.SimpleNode
      extended by net.sourceforge.nite.search.NodeCondition
All Implemented Interfaces:
Node

public class NodeCondition
extends SimpleNode

Generated by the JavaCC tool JJTree.


Field Summary
static int ATTRIBUTE
           
static int CENTER
           
static int CONTACT_WITH
           
static int DOMINANCE
           
static int DOMINANCE_WITH_DISTANCE
           
static int DURATION
           
static int END
           
static int EQ
           
static int EQUAL
           
static int EQV
           
static int GE
           
static int GT
           
 boolean hasBeenNegated
           
static int ID
           
static int INCLUDES
           
static int INEQUAL
           
 boolean isGroup
           
 boolean isNegated
           
static int LE
           
static int LEFT_ALIGNED_WITH
           
static int LT
           
static int NE
           
static int NEV
           
static int NOTREGEX
           
static int OVERLAPS_LEFT
           
static int OVERLAPS_WITH
           
static int POINTER
           
static int POINTER_WITH_ROLE
           
static int PRECEDENCE
           
static int PRECEDES
           
static int REGEX
           
static int RIGHT_ALIGNED_WITH
           
static int SAME_EXTENT_AS
           
static int START
           
static int SUBDOM
           
static int SUBDOM_WITH_ROLE
           
static int TEST
           
static int TEXT
           
static int TIMED
           
static int TYPE_IS
           
static int VALUE
           
 
Fields inherited from class net.sourceforge.nite.search.SimpleNode
image
 
Constructor Summary
NodeCondition(int id)
           
NodeCondition(net.sourceforge.nite.search.Parser p, int id)
           
NodeCondition(java.lang.String variable, java.util.List types)
           
 
Method Summary
 boolean ask(java.lang.Object[] tuple, SearchableCorpus corpus)
           
 java.lang.String getAVar()
           
 java.lang.String getBVar()
           
 int getDistance()
           
 int getType()
           
 void negate()
          Called by Parser and NodeLogical.negateDNF() via NodeLogical.makeDNF() via Parser
 java.lang.String setA(int type, java.lang.String value)
           
 java.lang.String setAVar(java.lang.String name)
           
 java.lang.String setB(int type, java.lang.String value)
           
 java.lang.String setBVar(java.lang.String name)
           
 void setDistance(java.lang.String distance)
           
 void setPattern(java.lang.String p)
           
 void setRole(java.lang.String name)
           
 void setTuple(java.lang.String[] variableNames)
           
 void setType(int type)
           
 java.lang.String toString()
          Override the SimpleNode method to also show whether the Condition is negated, whether it is a group condition, and to elaborate the type of relation and its variables.
 
Methods inherited from class net.sourceforge.nite.search.SimpleNode
dump, getChildren, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isGroup

public boolean isGroup

isNegated

public boolean isNegated

hasBeenNegated

public boolean hasBeenNegated

TEST

public static final int TEST
See Also:
Constant Field Values

EQ

public static final int EQ
See Also:
Constant Field Values

EQV

public static final int EQV
See Also:
Constant Field Values

NE

public static final int NE
See Also:
Constant Field Values

NEV

public static final int NEV
See Also:
Constant Field Values

GE

public static final int GE
See Also:
Constant Field Values

LE

public static final int LE
See Also:
Constant Field Values

GT

public static final int GT
See Also:
Constant Field Values

LT

public static final int LT
See Also:
Constant Field Values

REGEX

public static final int REGEX
See Also:
Constant Field Values

NOTREGEX

public static final int NOTREGEX
See Also:
Constant Field Values

EQUAL

public static final int EQUAL
See Also:
Constant Field Values

INEQUAL

public static final int INEQUAL
See Also:
Constant Field Values

DOMINANCE

public static final int DOMINANCE
See Also:
Constant Field Values

DOMINANCE_WITH_DISTANCE

public static final int DOMINANCE_WITH_DISTANCE
See Also:
Constant Field Values

PRECEDENCE

public static final int PRECEDENCE
See Also:
Constant Field Values

POINTER

public static final int POINTER
See Also:
Constant Field Values

POINTER_WITH_ROLE

public static final int POINTER_WITH_ROLE
See Also:
Constant Field Values

SUBDOM

public static final int SUBDOM
See Also:
Constant Field Values

SUBDOM_WITH_ROLE

public static final int SUBDOM_WITH_ROLE
See Also:
Constant Field Values

TIMED

public static final int TIMED
See Also:
Constant Field Values

OVERLAPS_LEFT

public static final int OVERLAPS_LEFT
See Also:
Constant Field Values

LEFT_ALIGNED_WITH

public static final int LEFT_ALIGNED_WITH
See Also:
Constant Field Values

RIGHT_ALIGNED_WITH

public static final int RIGHT_ALIGNED_WITH
See Also:
Constant Field Values

INCLUDES

public static final int INCLUDES
See Also:
Constant Field Values

SAME_EXTENT_AS

public static final int SAME_EXTENT_AS
See Also:
Constant Field Values

OVERLAPS_WITH

public static final int OVERLAPS_WITH
See Also:
Constant Field Values

CONTACT_WITH

public static final int CONTACT_WITH
See Also:
Constant Field Values

PRECEDES

public static final int PRECEDES
See Also:
Constant Field Values

TYPE_IS

public static final int TYPE_IS
See Also:
Constant Field Values

VALUE

public static final int VALUE
See Also:
Constant Field Values

ATTRIBUTE

public static final int ATTRIBUTE
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

START

public static final int START
See Also:
Constant Field Values

END

public static final int END
See Also:
Constant Field Values

DURATION

public static final int DURATION
See Also:
Constant Field Values

CENTER

public static final int CENTER
See Also:
Constant Field Values

ID

public static final int ID
See Also:
Constant Field Values
Constructor Detail

NodeCondition

public NodeCondition(int id)

NodeCondition

public NodeCondition(net.sourceforge.nite.search.Parser p,
                     int id)

NodeCondition

public NodeCondition(java.lang.String variable,
                     java.util.List types)
Method Detail

negate

public void negate()
Called by Parser and NodeLogical.negateDNF() via NodeLogical.makeDNF() via Parser


setRole

public void setRole(java.lang.String name)

setAVar

public java.lang.String setAVar(java.lang.String name)

setBVar

public java.lang.String setBVar(java.lang.String name)

getAVar

public java.lang.String getAVar()

getBVar

public java.lang.String getBVar()

setPattern

public void setPattern(java.lang.String p)

setDistance

public void setDistance(java.lang.String distance)

getDistance

public int getDistance()

setTuple

public void setTuple(java.lang.String[] variableNames)

getType

public int getType()

setType

public void setType(int type)

setA

public java.lang.String setA(int type,
                             java.lang.String value)

setB

public java.lang.String setB(int type,
                             java.lang.String value)

ask

public boolean ask(java.lang.Object[] tuple,
                   SearchableCorpus corpus)

toString

public java.lang.String toString()
Override the SimpleNode method to also show whether the Condition is negated, whether it is a group condition, and to elaborate the type of relation and its variables.

Overrides:
toString in class SimpleNode