org.vizzini.ai.logic
Class AtomicSentenceGT
java.lang.Object
org.vizzini.util.AbstractBean
org.vizzini.ai.logic.AbstractSentence
org.vizzini.ai.logic.AbstractAtomicSentence
org.vizzini.ai.logic.AbstractBinaryAtomicSentence
org.vizzini.ai.logic.AtomicSentenceGT
- All Implemented Interfaces:
- Cloneable, IAtomicSentence, IBinaryAtomicSentence, ISentence
public class AtomicSentenceGT
- extends AbstractBinaryAtomicSentence
Provides a binary atomic sentence using greater than. The flag
useForwardLogic allows this class to also be used as less-than-or-equals.
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)
AtomicSentenceGT
protected AtomicSentenceGT(IArgument left,
IArgument right,
boolean useForwardLogic)
- Construct this object with the given parameters.
- Parameters:
left
- Left argument.right
- Right argument.useForwardLogic
- Flag indicating whether to use forward logic.- Since:
- v0.2
evaluate
public boolean evaluate(Object contextItem)
throws LogicException
- Return true if this sentence, in the context of the given object,
evaluates to true.
- Parameters:
contextItem
- Item in whose context to evaluate this sentence.
- Throws:
LogicException
- Since:
- v0.2
getOperator
public OperatorType getOperator()
- Return the operator.
- Since:
- v0.2
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |