com.xinapse.apps.perfusion
Class AbstractDynamicContrastResult

java.lang.Object
  extended by com.xinapse.dynamic.DynamicResult
      extended by com.xinapse.apps.perfusion.AbstractDynamicContrastResult

public abstract class AbstractDynamicContrastResult
extends DynamicResult

Superclass for the results of dynamic contrast analysis.


Constructor Summary
AbstractDynamicContrastResult(DynamicModel model, float[] fittedVarValues, float RMSError, float[] fittedConcTissue)
          Used by sub-class constructors.
 
Method Summary
abstract  java.lang.String getResultTitle()
          Returns a title for the type of report.
 void writeReportBody(ReportGenerator reportGenerator, AbstractDynamicWorker dynamicWorker, float[] concTissue, float[] aif)
          Writes a report using a ReportGenerator.
 
Methods inherited from class com.xinapse.dynamic.DynamicResult
getFittedCurve, getFittedVarValues, getRMSError, getVarNames, getVarUnits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDynamicContrastResult

public AbstractDynamicContrastResult(DynamicModel model,
                                     float[] fittedVarValues,
                                     float RMSError,
                                     float[] fittedConcTissue)
Used by sub-class constructors.

Parameters:
model - the DynamicModel that generated this result.
fittedVarValues - the values of the fitted/calculated variables.
RMSError - the root-mean-square error between the model and the data, if applicable.
fittedConcTissue - the concentration-time curve for the model fit.
Method Detail

writeReportBody

public void writeReportBody(ReportGenerator reportGenerator,
                            AbstractDynamicWorker dynamicWorker,
                            float[] concTissue,
                            float[] aif)
                     throws java.io.IOException,
                            com.lowagie.text.DocumentException
Writes a report using a ReportGenerator. This method adds nothing to the report - the method must be overridden if you want the report to contain more than what is common to all reports.

Parameters:
reportGenerator - the ReportGenerator.
dynamicWorker - the AbstractDynamicWorker that generated the result.
concTissue - the concentration values in the tissue.
aif - the blood plasma concentration values in the feeding artery.
Throws:
java.io.IOException - if the report cannot be generated because of an IOException.
com.lowagie.text.DocumentException - if there is a problem with inserting the information into the report.

getResultTitle

public abstract java.lang.String getResultTitle()
Returns a title for the type of report.

Specified by:
getResultTitle in class DynamicResult
Returns:
the result title.


Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.