Triveni

triveni
Class Predicate

java.lang.Object
  |
  +--triveni.Predicate

public abstract class Predicate
extends java.lang.Object
implements java.lang.Cloneable

A predicate on an event, that is, a function from an event to boolean. The user should override execute to provide the code of the predicate. The user should also override clone if the predicate has state containing reference variables.

See Also:
Switch, If, Valuator

Constructor Summary
Predicate()
           
 
Method Summary
 java.lang.Object clone()
           
abstract  boolean execute(LabeledEvent event)
          This method provides the code of the predicate.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Predicate

public Predicate()
Method Detail

execute

public abstract boolean execute(LabeledEvent event)
This method provides the code of the predicate. It should be overridden by subclasses.
Parameters:
event - the current event.

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

Triveni

http://www.cs.luc.edu/triveni/