com.ikokoon.serenity.process
Class AProcess

java.lang.Object
  extended by com.ikokoon.serenity.process.AProcess
All Implemented Interfaces:
IProcess
Direct Known Subclasses:
Accumulator, Aggregator, Cleaner, Pruner

public abstract class AProcess
extends java.lang.Object
implements IProcess

This class is the process that calls the child processes in the chain. At the end of the coverage processing, i.e. when the unit tests are finished the processes for collecting the dependency and aggregating the data are started. Each process is chained to the next. The order of the processes is somewhat important. The accumulator should run first, then the aggregator then the writer.

Since:
23.08.09
Version:
01.00
Author:
Michael Couck

Field Summary
protected  org.apache.log4j.Logger logger
          The logger for the class.
 
Constructor Summary
AProcess(IProcess parent)
          Constructor takes the parent, and the child calls the parent to add it's self to the parent.
 
Method Summary
 void execute()
          This is the method that executes the logic for the process.
 void setChild(IProcess child)
          Sets the child of this process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.apache.log4j.Logger logger
The logger for the class.

Constructor Detail

AProcess

public AProcess(IProcess parent)
Constructor takes the parent, and the child calls the parent to add it's self to the parent.

Parameters:
parent - the parent of this process
Method Detail

execute

public void execute()
This is the method that executes the logic for the process. It will be called by the parent after the parent has executed it's own logic.

Specified by:
execute in interface IProcess
Type Parameters:
T - the model object, in this case the Document object that collects all the data
Parameters:
t - the document that has all the collected data to date
See Also:
AProcess

setChild

public void setChild(IProcess child)
Sets the child of this process. Typically the child calls the parenht to set it's self as the child, in the constructor

Specified by:
setChild in interface IProcess
Parameters:
child - the child to set in the parent
See Also:
AProcess


Copyright © 2010. All Rights Reserved.