|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ai.logic.ArgumentFactory
public class ArgumentFactory
Provides a factory for arguments in the logic system. Arguments are used in constructing sentences.
Method Summary | |
---|---|
IArgument |
create(ArgumentType argType,
Object value)
Construct an IArgument object of the correct type. |
IArgument |
create(Object value)
Construct an IArgument object of the correct type. |
IArgument |
create(String argTypeString,
Object value)
Construct an IArgument object of the correct type. |
static ArgumentFactory |
getInstance()
Return the singleton instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ArgumentFactory getInstance()
public IArgument create(Object value)
IArgument
object of the correct type.
value
- The literal argument value.public IArgument create(String argTypeString, Object value)
IArgument
object of the correct type.
argTypeString
- Argument type string.value
- Argument value.public IArgument create(ArgumentType argType, Object value)
IArgument
object of the correct type.
argType
- Argument type.value
- Argument value.
|
||||||||||
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 |