RePast
v. 2.0

uchicago.src.sim.network
Interface NetworkMatrixFormatter

All Known Implementing Classes:
ASCIIFormatter, DlFormatter, ExcelFormatter

public interface NetworkMatrixFormatter

A formatter interface for network matrices. Defines formats for saving network matrices via a NetworkRecorder.


Method Summary
 void format(List matrixLabels, Vector matrices, String comment)
          formats the specified matrices together with the labels, and comment
 String getHeader()
          Returns the block header for the matrices formatter in comment.
 Vector getMatrices()
          Returns a Vector of appropriate Strings representing the matrices.
 

Method Detail

format

public void format(List matrixLabels,
                   Vector matrices,
                   String comment)
formats the specified matrices together with the labels, and comment

Parameters:
matrixLabels - the labels of the matrices
matrices - a Vector of AdjacencyMatrices
comment - an optional comment

getHeader

public String getHeader()
Returns the block header for the matrices formatter in comment.


getMatrices

public Vector getMatrices()
Returns a Vector of appropriate Strings representing the matrices.


RePast
v. 2.0

Bug reports and feature requests to RePast