Fido Alpha 3.2

fido.grammar
Class SentenceThreadFactory

java.lang.Object
  |
  +--fido.grammar.SentenceThreadFactory

public class SentenceThreadFactory
extends java.lang.Object

Factory pattern class to create a new SentenceThread or clone an existing one.


Constructor Summary
SentenceThreadFactory()
          Creates a new Sentence Thread Factory.
 
Method Summary
 SentenceThread cloneThread(SentenceThread cthread)
          Creates a new SentenceThread object with the same values as the parameter object.
 SentenceThread createNewThread()
          Creates a new, empty SentenceThread object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SentenceThreadFactory

public SentenceThreadFactory()
Creates a new Sentence Thread Factory. This keeps track of the number created and assigns a incremented counter as the name of the thread.

See Also:
SentenceThread
Method Detail

createNewThread

public SentenceThread createNewThread()
Creates a new, empty SentenceThread object. The name of the new object is genereated by an internal one up counter.

Returns:
A new SentenceThread

cloneThread

public SentenceThread cloneThread(SentenceThread cthread)
Creates a new SentenceThread object with the same values as the parameter object. This method uses the cloneSentenceThread method of the SentenceThread class.

The name of the new object is genereated by an internal one up counter.

Returns:
A new SentenceThread
See Also:
SentenceThread.cloneSentenceThread(String)

Fido Alpha 3.2