|
MATSIM
|
Public Member Functions | |
| VisumMatrixWriter (final Matrix matrix) | |
| void | setIds (final Set< String > ids) |
| void | writeFile (final String filename) |
Writes a single matrix in a VISUM-compatible format to file. Can be used e.g. for OD-matrices.
Definition at line 40 of file VisumMatrixWriter.java.
| org.matsim.visum.VisumMatrixWriter.VisumMatrixWriter | ( | final Matrix | matrix | ) |
Definition at line 47 of file VisumMatrixWriter.java.
References org.matsim.matrices.Matrix.getFromLocations(), and org.matsim.matrices.Matrix.getToLocations().

| void org.matsim.visum.VisumMatrixWriter.setIds | ( | final Set< String > | ids | ) |
| ids | Set of ids to use as row- and column-header in the matrix |
sets the row- and column-header used when writing the matrix. If the ids are not set explicitly, the ids in the matrix are used.
useful, if the matrix is sparse and not all possible rows and columns contain values, but should still be written out in the matrix containing only zeros.
Definition at line 64 of file VisumMatrixWriter.java.
| void org.matsim.visum.VisumMatrixWriter.writeFile | ( | final String | filename | ) |
Definition at line 68 of file VisumMatrixWriter.java.
References org.matsim.matrices.Matrix.getEntry(), and org.matsim.matrices.Entry.getValue().

1.8.13