org.vizzini.ai.logic
Class ComplexSentenceIMPLIES
java.lang.Object
org.vizzini.util.AbstractBean
org.vizzini.ai.logic.AbstractSentence
org.vizzini.ai.logic.AbstractComplexSentence
org.vizzini.ai.logic.ComplexSentenceIMPLIES
- All Implemented Interfaces:
- Cloneable, IComplexSentence, ISentence
public class ComplexSentenceIMPLIES
- extends AbstractComplexSentence
Provides a complex sentence using the IMPLIES connective. Instances of this
class are obtained from SentenceFactory.create()
.
- Since:
- v0.2
- Version:
- v0.2
- Author:
- Jeffrey M. Thompson
- See Also:
SentenceFactory.create(org.vizzini.ai.logic.IArgument, java.lang.String, org.vizzini.ai.logic.IArgument)
ComplexSentenceIMPLIES
protected ComplexSentenceIMPLIES(ISentence left,
ISentence right)
- Construct this object using the given parameters.
- Parameters:
left
- Left sentence.right
- Right sentence.- Since:
- v0.2
evaluate
public boolean evaluate(Object contextItem)
throws LogicException
- Return true if this expression, using the given object, evaluates to
true.
- Parameters:
contextItem
- Context item.
- Throws:
LogicException
- Since:
- v0.2
getConnective
public ConnectiveType getConnective()
- Description copied from interface:
IComplexSentence
- Return the connective.
- Returns:
- Return connectiveType.
- Since:
- v0.2
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |