prefuse.data.expression
Class XorPredicate

java.lang.Object
  extended by prefuse.data.expression.AbstractExpression
      extended by prefuse.data.expression.AbstractPredicate
          extended by prefuse.data.expression.CompositePredicate
              extended by prefuse.data.expression.XorPredicate
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, ExpressionListener, Expression, Predicate

public class XorPredicate
extends CompositePredicate

Predicate representing an "xor" clause of sub-predicates.

Author:
jeffrey heer

Field Summary
 
Fields inherited from class prefuse.data.expression.CompositePredicate
m_clauses
 
Constructor Summary
XorPredicate(Predicate... predicates)
          Create a new XorPredicate.
 
Method Summary
 boolean getBoolean(Tuple<?> t)
          By default, throws an UnsupportedOperationException.
 java.lang.String toString()
           
 
Methods inherited from class prefuse.data.expression.CompositePredicate
add, addChildListeners, clear, clone, get, getSubPredicate, remove, removeChildListeners, set, set, size, toString, visit
 
Methods inherited from class prefuse.data.expression.AbstractPredicate
get, getType
 
Methods inherited from class prefuse.data.expression.AbstractExpression
addExpressionListener, expressionChanged, fireExpressionChange, getDouble, getFloat, getInt, getLong, hasListeners, removeExpressionListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface prefuse.data.expression.Expression
addExpressionListener, getDouble, getFloat, getInt, getLong, removeExpressionListener
 

Constructor Detail

XorPredicate

public XorPredicate(Predicate... predicates)
Create a new XorPredicate.

Parameters:
predicates - the clauses of this predicate
Method Detail

getBoolean

public boolean getBoolean(Tuple<?> t)
Description copied from class: AbstractExpression
By default, throws an UnsupportedOperationException.

Specified by:
getBoolean in interface Expression
Overrides:
getBoolean in class AbstractExpression
Parameters:
t - the input Tuple
Returns:
the Expression return value, as a boolean
See Also:
Expression.getBoolean(prefuse.data.Tuple)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2008 Regents of the University of California