org.vizzini.ai.logic
Interface ISentence

All Superinterfaces:
Cloneable
All Known Subinterfaces:
IAtomicSentence, IBinaryAtomicSentence, IComplexSentence
All Known Implementing Classes:
AbstractAtomicSentence, AbstractBinaryAtomicSentence, AbstractComplexSentence, AbstractSentence, AtomicSentenceEQ, AtomicSentenceGT, AtomicSentenceLT, ComplexSentenceAND, ComplexSentenceIFF, ComplexSentenceIMPLIES, ComplexSentenceNOT, ComplexSentenceOR

public interface ISentence
extends Cloneable

Defines methods required by sentences in the logic system.

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

Method Summary
 Object clone()
          Return a clone of this instance.
 boolean evaluate(Object contextItem)
          Return the evaluation of this sentence in the context of the given item.
 String getDescription()
           
 void setDescription(String description)
           
 

Method Detail

clone

Object clone()
Return a clone of this instance.

Since:
v0.2

evaluate

boolean evaluate(Object contextItem)
                 throws LogicException
Return the evaluation of this sentence in the context of the given item.

Parameters:
contextItem - Item in whose context to evaluate this sentence.
Throws:
LogicException
Since:
v0.2

getDescription

String getDescription()
Returns:
Return description.
Since:
v0.2

setDescription

void setDescription(String description)
Parameters:
description - The description to set.
Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02