org.vizzini.ai.logic
Class SentenceFactory

java.lang.Object
  extended by org.vizzini.ai.logic.SentenceFactory

public class SentenceFactory
extends Object

Provides a factory for sentences in the logic system.

Since:
v0.2
Version:
v0.2
Author:
Jeffrey M. Thompson

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 IComplexSentenceobject of the correct type.
 IComplexSentence create(ISentence left, String connectiveString, ISentence right)
          Construct an IComplexSentenceobject of the correct type.
 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 IComplexSentenceobject of the correct type.
 IComplexSentence create(String description, ISentence left, String connectiveString, ISentence right)
          Construct an IComplexSentenceobject of the correct type.
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

TRUE

public static final IAtomicSentence TRUE
Provides a true sentence in the logic system.

Since:
v0.2

FALSE

public static final IAtomicSentence FALSE
Provides a false sentence in the logic system.

Since:
v0.2
Method Detail

getInstance

public static SentenceFactory getInstance()
Return the singleton instance.

Since:
v0.2

create

public IBinaryAtomicSentence create(IArgument left,
                                    String operatorString,
                                    IArgument right)
Construct an IBinaryAtomicSentence object of the correct type.

Since:
v0.2

create

public IBinaryAtomicSentence create(IArgument left,
                                    OperatorType operator,
                                    IArgument right)
Construct an IBinaryAtomicSentence object of the correct type.

Since:
v0.2

create

public IComplexSentence create(ISentence left,
                               String connectiveString,
                               ISentence right)
Construct an IComplexSentenceobject of the correct type.

Since:
v0.2

create

public IComplexSentence create(ISentence left,
                               ConnectiveType connectiveType,
                               ISentence right)
Construct an IComplexSentenceobject of the correct type.

Since:
v0.2

create

public IComplexSentence create(String description,
                               ISentence left,
                               String connectiveString,
                               ISentence right)
Construct an IComplexSentenceobject of the correct type.

Since:
v0.2

create

public IBinaryAtomicSentence create(String description,
                                    IArgument left,
                                    String operatorString,
                                    IArgument right)
Construct an IBinaryAtomicSentence object of the correct type.

Since:
v0.2

create

public IBinaryAtomicSentence create(String description,
                                    IArgument left,
                                    OperatorType operator,
                                    IArgument right)
Construct an IBinaryAtomicSentence object of the correct type.

Since:
v0.2

create

public IComplexSentence create(String description,
                               ISentence left,
                               ConnectiveType connectiveType,
                               ISentence right)
Construct an IComplexSentenceobject of the correct type.

Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02