gov.sandia.cognition.text.topic
Class ProbabilisticLatentSemanticAnalysis.StatusPrinter

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.algorithm.event.AbstractIterativeAlgorithmListener
          extended by gov.sandia.cognition.text.topic.ProbabilisticLatentSemanticAnalysis.StatusPrinter
All Implemented Interfaces:
IterativeAlgorithmListener, CloneableSerializable, Serializable, Cloneable
Enclosing class:
ProbabilisticLatentSemanticAnalysis

public static class ProbabilisticLatentSemanticAnalysis.StatusPrinter
extends AbstractIterativeAlgorithmListener

Prints out the status of the probabilistic latent semantic analysis algorithm. Can be useful for debugging and other purposes.

See Also:
Serialized Form

Field Summary
protected  PrintStream out
          The stream to write the status to.
 
Constructor Summary
ProbabilisticLatentSemanticAnalysis.StatusPrinter()
          Creates a new StatusPrinter writing to System.out.
ProbabilisticLatentSemanticAnalysis.StatusPrinter(PrintStream out)
          Creates a new StatusPrinter writing to the given stream.
 
Method Summary
 void stepEnded(IterativeAlgorithm algorithm)
          This method is called when the algorithm has ended a step of its execution.
 void stepStarted(IterativeAlgorithm algorithm)
          This method is called when the algorithm has started a step in its execution.
 
Methods inherited from class gov.sandia.cognition.algorithm.event.AbstractIterativeAlgorithmListener
algorithmEnded, algorithmStarted
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected PrintStream out
The stream to write the status to.

Constructor Detail

ProbabilisticLatentSemanticAnalysis.StatusPrinter

public ProbabilisticLatentSemanticAnalysis.StatusPrinter()
Creates a new StatusPrinter writing to System.out.


ProbabilisticLatentSemanticAnalysis.StatusPrinter

public ProbabilisticLatentSemanticAnalysis.StatusPrinter(PrintStream out)
Creates a new StatusPrinter writing to the given stream.

Parameters:
out - The print stream to write status to.
Method Detail

stepStarted

public void stepStarted(IterativeAlgorithm algorithm)
Description copied from interface: IterativeAlgorithmListener
This method is called when the algorithm has started a step in its execution.

Specified by:
stepStarted in interface IterativeAlgorithmListener
Overrides:
stepStarted in class AbstractIterativeAlgorithmListener
Parameters:
algorithm - The algorithm that has started another step of its execution.

stepEnded

public void stepEnded(IterativeAlgorithm algorithm)
Description copied from interface: IterativeAlgorithmListener
This method is called when the algorithm has ended a step of its execution.

Specified by:
stepEnded in interface IterativeAlgorithmListener
Overrides:
stepEnded in class AbstractIterativeAlgorithmListener
Parameters:
algorithm - The algorithm that has ended another step of its execution.