|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.network.DlReader
public class DlReader
Matrix reader for UCINET dl format files. This will only read square matrices whose rows and columns refer to the same nodes.
| Constructor Summary | |
|---|---|
DlReader(java.io.InputStream stream)
Creates a DlRedaer to read from the specified InputStream. |
|
DlReader(java.lang.String filename)
Creates a DlReader to read the specified file. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the reader. |
java.util.Vector |
getMatrices()
Deprecated. use getMatrices(int matrixType) instead. |
java.util.Vector |
getMatrices(int matrixType)
Gets the matrix or matrices from the dl formatted file as a Vector of AdjancencyMatrices. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DlReader(java.lang.String filename)
filename - the name of the file to read (in dl format)public DlReader(java.io.InputStream stream)
stream - the InputStream to read from.| Method Detail |
|---|
public java.util.Vector getMatrices()
throws java.io.IOException
getMatrices(int matrixType) instead.
getMatrices in interface NetworkMatrixReaderjava.io.IOException
public java.util.Vector getMatrices(int matrixType)
throws java.io.IOException
The matrixType parameter refers to the size of the matrix elements, the ij values. A matrix of type of NetworkConstants.BINARY contains on 0 or 1 as elements. A matrix of type of NetworkConstants.SMALL contains values of -127 - 127 as elements. And a matrix of type NetworkConstants.LARGE contains anything else. Choose the type appropriate to the values in the matrix you are importing.
getMatrices in interface NetworkMatrixReadermatrixType - 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
java.io.IOExceptionpublic void close()
close in interface NetworkMatrixReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||