com.hp.hpl.jena.graph.query
Class ExpressionSet

java.lang.Object
  extended bycom.hp.hpl.jena.graph.query.ExpressionSet

public class ExpressionSet
extends java.lang.Object

ExpressionSet: represent a set of (boolean) expressions ANDed together.

Author:
kers

Constructor Summary
ExpressionSet()
          Initialise an expression set with no members.
 
Method Summary
 ExpressionSet add(Expression e)
          Answer this expressionset after e has been anded into it.
 boolean evalBool(VariableValues vv)
          Evaluate this expression set, delivering true iff no member of the set evaluates to false.
 boolean isComplex()
          Answer true iff this ExpressionSet is non-trivial (ie non-empty).
 java.util.Iterator iterator()
          Answer an iterator over all the Expressions in this ExpressionSet.
 ValuatorSet prepare(VariableIndexes vi)
          Answer a ValuatorSet which contains exactly the valuators for each Expression in this ExpressionSet, prepared against the VariableIndexes vi.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpressionSet

public ExpressionSet()
Initialise an expression set with no members.

Method Detail

add

public ExpressionSet add(Expression e)
Answer this expressionset after e has been anded into it.

Parameters:
e - the expression to and into the set
Returns:
this ExpressionSet

isComplex

public boolean isComplex()
Answer true iff this ExpressionSet is non-trivial (ie non-empty).


evalBool

public boolean evalBool(VariableValues vv)
Evaluate this expression set, delivering true iff no member of the set evaluates to false.

Parameters:
vv - the mapping from variables to values
Returns:
true iff no member evaluates to false

prepare

public ValuatorSet prepare(VariableIndexes vi)
Answer a ValuatorSet which contains exactly the valuators for each Expression in this ExpressionSet, prepared against the VariableIndexes vi.


iterator

public java.util.Iterator iterator()
Answer an iterator over all the Expressions in this ExpressionSet.


toString

public java.lang.String toString()


Copyright © 2000-2003 Hewlett-Packard. All Rights Reserved.