uchicago.src.sim.network
Class ExcelFormatter

java.lang.Object
  extended by uchicago.src.sim.network.ExcelFormatter
All Implemented Interfaces:
NetworkMatrixFormatter

public class ExcelFormatter
extends java.lang.Object
implements NetworkMatrixFormatter

Formats AdjacencyMatrices into ExcelFormat.

Version:
$Revision: 1.3 $ $Date: 2004/11/03 19:51:01 $
Author:
Nick Collier

Constructor Summary
ExcelFormatter()
           
 
Method Summary
 void format(java.util.List matrixLabels, java.util.Vector matrices, java.lang.String comment)
          Formats the specified list of matrix labels, matrices and comments.
 java.lang.String getHeader()
          Gets the header information created by a previous call to format(...).
 java.util.Vector getMatrices()
          Get the matrices formatted by a previous call to format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelFormatter

public ExcelFormatter()
Method Detail

format

public void format(java.util.List matrixLabels,
                   java.util.Vector matrices,
                   java.lang.String comment)
Formats the specified list of matrix labels, matrices and comments. Subsequent calls to getHeader and getMatrices will return the results of this formatting.

Specified by:
format in interface NetworkMatrixFormatter
Parameters:
matrixLabels - the matrix labels
matrices - a Vector of AdjacencyMatrices
comment - a comment

getHeader

public java.lang.String getHeader()
Gets the header information created by a previous call to format(...).

Specified by:
getHeader in interface NetworkMatrixFormatter

getMatrices

public java.util.Vector getMatrices()
Get the matrices formatted by a previous call to format. In this case, a Vector of AdjacencyMatrices is returned.

Specified by:
getMatrices in interface NetworkMatrixFormatter