|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IComplexSentence
Defines methods required by complex sentences in the logic system. A complex sentence consists of a left sentence, a connective, and a right sentence. The sentence evaluates to true or false in the context of a given item.
Method Summary | |
---|---|
ConnectiveType |
getConnective()
Return the connective. |
ISentence |
getLeft()
Return the left sentence. |
ISentence |
getRight()
Return the right sentence. |
boolean |
isChild(ISentence sentence)
Return true if the given sentence is a child of this. |
void |
replaceChild(ISentence oldChild,
ISentence newChild)
Replace the given old child sentence with the given new child sentence if there is a match. |
Methods inherited from interface org.vizzini.ai.logic.ISentence |
---|
clone, evaluate, getDescription, setDescription |
Method Detail |
---|
ConnectiveType getConnective()
ISentence getLeft()
ISentence getRight()
boolean isChild(ISentence sentence)
sentence
- Candidate child sentence. (required)void replaceChild(ISentence oldChild, ISentence newChild)
oldChild
- Old child sentence. (required)newChild
- New child sentence. (required)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |