|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.AbstractBean
org.vizzini.ai.logic.AbstractSentence
org.vizzini.ai.logic.AbstractAtomicSentence
org.vizzini.ai.logic.AbstractBinaryAtomicSentence
public abstract class AbstractBinaryAtomicSentence
Provides base functionality for binary atomic sentences in the logic system. A binary atomic sentence consists of a left argument, an operator, and a right argument. The sentence evaluates to true or false in the context of a given item.
Field Summary | |
---|---|
protected static int |
COMPARISON_UNKNOWN
Constant indicating the comparison was impossible to determine. |
Fields inherited from class org.vizzini.util.AbstractBean |
---|
IGNORE_PROPERTIES |
Constructor Summary | |
---|---|
protected |
AbstractBinaryAtomicSentence(IArgument left,
IArgument right,
boolean useForwardLogic)
Construct this object. |
Method Summary | |
---|---|
Object |
clone()
Return a clone of this instance. |
protected static int |
compareTo(Object left,
Object right)
Return an integer which indicates the comparison relationship. left < right : -1, left == right : 0, left > right : 1. |
IArgument |
getLeft()
Return the left side argument. |
IArgument |
getRight()
Return the right side argument. |
boolean |
isUseForwardLogic()
|
protected static Object |
promoteString(Class newClass,
String object)
Promote the given string to the given class, if possible. |
protected static Boolean |
promoteStringToBoolean(String object)
Promote the given string to Boolean, if possible. |
protected void |
setLeft(IArgument left)
|
protected void |
setRight(IArgument right)
|
protected void |
setUseForwardLogic(boolean useForwardLogic)
|
Methods inherited from class org.vizzini.ai.logic.AbstractSentence |
---|
getDescription, setDescription |
Methods inherited from class org.vizzini.util.AbstractBean |
---|
appendArray, appendCollection, appendList, appendMap, compareBooleans, compareObjects, equals, getIgnoreProperties, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.vizzini.ai.logic.IBinaryAtomicSentence |
---|
getOperator |
Methods inherited from interface org.vizzini.ai.logic.ISentence |
---|
evaluate, getDescription, setDescription |
Field Detail |
---|
protected static final int COMPARISON_UNKNOWN
Constructor Detail |
---|
protected AbstractBinaryAtomicSentence(IArgument left, IArgument right, boolean useForwardLogic)
Method Detail |
---|
public Object clone()
clone
in interface ISentence
clone
in class AbstractSentence
public IArgument getLeft()
getLeft
in interface IBinaryAtomicSentence
public IArgument getRight()
getRight
in interface IBinaryAtomicSentence
public boolean isUseForwardLogic()
protected static int compareTo(Object left, Object right)
protected static Object promoteString(Class newClass, String object)
protected static Boolean promoteStringToBoolean(String object)
protected void setLeft(IArgument left)
left
- The left to set.protected void setRight(IArgument right)
right
- The right to set.protected void setUseForwardLogic(boolean useForwardLogic)
useForwardLogic
- The useForwardLogic to set.
|
||||||||||
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 |