org.vizzini.ai.logic
Interface IFilter

All Superinterfaces:
Cloneable
All Known Implementing Classes:
Filter

public interface IFilter
extends Cloneable

Defines methods required by filters in the logic system.

Since:
v0.2
Version:
v0.2
Author:
Jeffrey M. Thompson

Method Summary
 Object clone()
          Return a clone of this instance.
 List fails(List objects)
          Return the subset of the given list of objects which fail this filter.
 boolean fails(Object object)
          Return true if the given object fails this filter.
 boolean failsAll(List objects)
          Return true if all the objects in the given list fail this filter.
 boolean failsOne(List objects)
          Return true if at least one of the objects in the given list fail this filter.
 String getName()
           
 ISentence getSentence()
           
 List passes(List objects)
          Return the subset of the given list of objects which pass this filter.
 boolean passes(Object object)
          Return true if the given object passes this filter.
 boolean passesAll(List objects)
          Return true if all the objects in the given list pass this filter.
 boolean passesOne(List objects)
          Return true if at least one of the objects in the given list pass this filter.
 void setName(String name)
           
 void setSentence(ISentence sentence)
           
 String toString()
          Return a string representation of this object.
 

Method Detail

clone

Object clone()
Return a clone of this instance.

Since:
v0.2

fails

boolean fails(Object object)
Return true if the given object fails this filter.

Since:
v0.2

fails

List fails(List objects)
Return the subset of the given list of objects which fail this filter.

Since:
v0.2

failsAll

boolean failsAll(List objects)
Return true if all the objects in the given list fail this filter.

Since:
v0.2

failsOne

boolean failsOne(List objects)
Return true if at least one of the objects in the given list fail this filter.

Since:
v0.2

getName

String getName()
Returns:
Return name.

getSentence

ISentence getSentence()
Returns:
Return sentence.
Since:
v0.2

passes

boolean passes(Object object)
Return true if the given object passes this filter.

Since:
v0.2

passes

List passes(List objects)
Return the subset of the given list of objects which pass this filter.

Since:
v0.2

passesAll

boolean passesAll(List objects)
Return true if all the objects in the given list pass this filter.

Since:
v0.2

passesOne

boolean passesOne(List objects)
Return true if at least one of the objects in the given list pass this filter.

Since:
v0.2

setName

void setName(String name)
Parameters:
name - The name to set.

setSentence

void setSentence(ISentence sentence)
Parameters:
sentence - The sentence to set.
Since:
v0.2

toString

String toString()
Return a string representation of this object.

Overrides:
toString in class Object
Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02