org.vizzini.ui.ai.logic
Class WrapperFactory

java.lang.Object
  extended by org.vizzini.ui.ai.logic.WrapperFactory

public class WrapperFactory
extends Object

Provides a factory to create wrappers for arguments, sentences, and filters in the logic system. Wrappers are used to provide a proper display string to the user interface.

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

Method Summary
 IArgumentWrapper create(IArgument argument)
          Create an argument wrapper of the correct type.
 FilterWrapper create(IFilter filter)
          Create a filter wrapper of the correct type.
 ISentenceWrapper create(ISentence sentence)
          Create a sentence wrapper of the correct type.
static WrapperFactory 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 WrapperFactory getInstance()
Return the singleton instance.

Since:
v0.2

create

public IArgumentWrapper create(IArgument argument)
Create an argument wrapper of the correct type.

Parameters:
argument - Argument.
Since:
v0.2

create

public ISentenceWrapper create(ISentence sentence)
Create a sentence wrapper of the correct type.

Parameters:
sentence - Sentence.
Since:
v0.2

create

public FilterWrapper create(IFilter filter)
Create a filter wrapper of the correct type.

Parameters:
filter - Filter.
Since:
v0.2


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