org.vizzini.ai.logic
Class ArgumentFactory

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

public class ArgumentFactory
extends Object

Provides a factory for arguments in the logic system. Arguments are used in constructing sentences.

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

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

getInstance

public static ArgumentFactory getInstance()
Return the singleton instance.

Since:
v0.2

create

public IArgument create(Object value)
Construct an IArgument object of the correct type.

Parameters:
value - The literal argument value.
Since:
v0.2

create

public IArgument create(String argTypeString,
                        Object value)
Construct an IArgument object of the correct type.

Parameters:
argTypeString - Argument type string.
value - Argument value.
Since:
v0.2

create

public IArgument create(ArgumentType argType,
                        Object value)
Construct an IArgument object of the correct type.

Parameters:
argType - Argument type.
value - Argument value.
Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02