|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ai.logic.SentenceFactory
public class SentenceFactory
Provides a factory for sentences in the logic system.
Field Summary | |
---|---|
static IAtomicSentence |
FALSE
Provides a false sentence in the logic system. |
static IAtomicSentence |
TRUE
Provides a true sentence in the logic system. |
Method Summary | |
---|---|
IBinaryAtomicSentence |
create(IArgument left,
OperatorType operator,
IArgument right)
Construct an IBinaryAtomicSentence object of the correct
type. |
IBinaryAtomicSentence |
create(IArgument left,
String operatorString,
IArgument right)
Construct an IBinaryAtomicSentence object of the correct
type. |
IComplexSentence |
create(ISentence left,
ConnectiveType connectiveType,
ISentence right)
Construct an IComplexSentence |
IComplexSentence |
create(ISentence left,
String connectiveString,
ISentence right)
Construct an IComplexSentence |
IBinaryAtomicSentence |
create(String description,
IArgument left,
OperatorType operator,
IArgument right)
Construct an IBinaryAtomicSentence object of the correct
type. |
IBinaryAtomicSentence |
create(String description,
IArgument left,
String operatorString,
IArgument right)
Construct an IBinaryAtomicSentence object of the correct
type. |
IComplexSentence |
create(String description,
ISentence left,
ConnectiveType connectiveType,
ISentence right)
Construct an IComplexSentence |
IComplexSentence |
create(String description,
ISentence left,
String connectiveString,
ISentence right)
Construct an IComplexSentence |
static SentenceFactory |
getInstance()
Return the singleton instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IAtomicSentence TRUE
public static final IAtomicSentence FALSE
Method Detail |
---|
public static SentenceFactory getInstance()
public IBinaryAtomicSentence create(IArgument left, String operatorString, IArgument right)
IBinaryAtomicSentence
object of the correct
type.
public IBinaryAtomicSentence create(IArgument left, OperatorType operator, IArgument right)
IBinaryAtomicSentence
object of the correct
type.
public IComplexSentence create(ISentence left, String connectiveString, ISentence right)
IComplexSentenceobject of the correct type.
- Since:
- v0.2
public IComplexSentence create(ISentence left, ConnectiveType connectiveType, ISentence right)
IComplexSentenceobject of the correct type.
- Since:
- v0.2
public IComplexSentence create(String description, ISentence left, String connectiveString, ISentence right)
IComplexSentenceobject of the correct type.
- Since:
- v0.2
public IBinaryAtomicSentence create(String description, IArgument left, String operatorString, IArgument right)
IBinaryAtomicSentence
object of the correct
type.
public IBinaryAtomicSentence create(String description, IArgument left, OperatorType operator, IArgument right)
IBinaryAtomicSentence
object of the correct
type.
public IComplexSentence create(String description, ISentence left, ConnectiveType connectiveType, ISentence right)
IComplexSentenceobject of the correct type.
- Since:
- v0.2
|
||||||||||
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 |