Class DLMatrixReader
java.lang.Object
repast.simphony.context.space.graph.DLMatrixReader
- All Implemented Interfaces:
NetworkMatrixReader
Matrix reader for UCINET dl format files. This will only read
square matrices whose rows and columns refer to the same nodes.
- Version:
- $Revision: 1.5 $ $Date: 2004/11/03 19:51:00 $
- Author:
- Nick Collier
-
Constructor Summary
ConstructorDescriptionDLMatrixReader
(InputStream stream) Creates a DlRedaer to read from the specified InputStream.DLMatrixReader
(String filename) Creates a DlReader to read the specified file. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the reader.Returns a list of the read AdjacencyMatrices.
-
Constructor Details
-
DLMatrixReader
Creates a DlReader to read the specified file.- Parameters:
filename
- the name of the file to read (in dl format)- Throws:
IOException
- if the file cannot be read.
-
DLMatrixReader
Creates a DlRedaer to read from the specified InputStream.- Parameters:
stream
- the InputStream to read from.
-
-
Method Details
-
getMatrices
Returns a list of the read AdjacencyMatrices.- Specified by:
getMatrices
in interfaceNetworkMatrixReader
- Returns:
- a list of the read AdjacencyMatrices.
- Throws:
IOException
- if there is an error while attempting to read the matrices
-
close
public void close()Closes the reader.- Specified by:
close
in interfaceNetworkMatrixReader
-