RePast
v. 2.0

uchicago.src.sim.network
Class ExcelMatrixReader

java.lang.Object
  |
  +--uchicago.src.sim.network.ExcelMatrixReader
All Implemented Interfaces:
NetworkMatrixReader

public class ExcelMatrixReader
extends Object
implements NetworkMatrixReader


Constructor Summary
ExcelMatrixReader(String filename)
           
 
Method Summary
 void close()
          Closes the reader.
 Vector getMatrices()
          Returns a vector of AdjacencyMatrices.
 Vector getMatrices(int matrixType)
          Returns a vector of AdjacencyMatrices.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelMatrixReader

public ExcelMatrixReader(String filename)
Method Detail

getMatrices

public Vector getMatrices()
                   throws IOException
Description copied from interface: NetworkMatrixReader
Returns a vector of AdjacencyMatrices.

Specified by:
getMatrices in interface NetworkMatrixReader
IOException

getMatrices

public Vector getMatrices(int matrixType)
                   throws IOException
Description copied from interface: NetworkMatrixReader
Returns a vector of AdjacencyMatrices.

Specified by:
getMatrices in interface NetworkMatrixReader
Parameters:
matrixType - the type of the matrix. type refers to the size of the matrix elements (ij values) and can be one of NetworkConstants.BINARY, NetworkConstants.LARGE, NetworkConstants.SMALL
IOException

main

public static void main(String[] args)

close

public void close()
Description copied from interface: NetworkMatrixReader
Closes the reader.

Specified by:
close in interface NetworkMatrixReader

RePast
v. 2.0

Bug reports and feature requests to RePast