MATSIM
Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes | List of all members
org.matsim.counts.CountsWriter Class Reference
Inheritance diagram for org.matsim.counts.CountsWriter:
Inheritance graph
[legend]

Public Member Functions

 CountsWriter (final Counts counts)
 
 CountsWriter (final CoordinateTransformation ct, final Counts counts)
 
final void write (final String filename)
 
final String toString ()
 
final void setPrettyPrint (boolean doPrettyPrint)
 
final void setIndentationString (String indentationString)
 
final void useCompression (final boolean useCompression)
 

Static Public Attributes

static final String DEFAULT_DTD_LOCATION = "http://www.matsim.org/files/dtd/"
 
static final String MATSIM_NAMESPACE = "http://www.matsim.org/files/dtd"
 
static final String XMLNS = "xmlns"
 
static final String DEFAULTSCHEMANAMESPACELOCATION = "http://www.w3.org/2001/XMLSchema-instance"
 

Protected Member Functions

final void setIndentationLevel (int level)
 
final void writeXmlHead () throws UncheckedIOException
 
final void writeDoctype (String rootTag, String dtdUrl) throws UncheckedIOException
 
final void writeStartTag (String tagname, List< Tuple< String, String >> attributes) throws UncheckedIOException
 
final void writeStartTag (String tagname, List< Tuple< String, String >> attributes, boolean closeElement) throws UncheckedIOException
 
final void writeStartTag (String tagname, List< Tuple< String, String >> attributes, boolean closeElement, boolean emptyLineAfter) throws UncheckedIOException
 
final void writeContent (String content, boolean allowWhitespaces) throws UncheckedIOException
 
final void writeEndTag (String tagname) throws UncheckedIOException
 
final void writeElement (String tagname, String content) throws UncheckedIOException
 
final void openFile (final String filename) throws UncheckedIOException
 
final void openOutputStream (OutputStream outputStream)
 
final void close () throws UncheckedIOException
 

Static Protected Member Functions

static Tuple< String, String > createTuple (String one, String two)
 
static Tuple< String, String > createTuple (String one, int two)
 
static Tuple< String, String > createTuple (String one, double two)
 
static Tuple< String, String > createTuple (String one, boolean two)
 
static Tuple< String, String > createTimeTuple (String one, double sec)
 

Protected Attributes

BufferedWriter writer = null
 
Boolean useCompression = null
 

Static Protected Attributes

static final String NL = "\n"
 

Private Attributes

final CoordinateTransformation ct
 
final Counts counts
 

Detailed Description

Generalized counts writer. Which delegates to specific version. Version 1 can be forced with system property MATSIM_COUNTS_VERSION=1

Definition at line 34 of file CountsWriter.java.

Constructor & Destructor Documentation

◆ CountsWriter() [1/2]

org.matsim.counts.CountsWriter.CountsWriter ( final Counts  counts)

Definition at line 39 of file CountsWriter.java.

References org.matsim.counts.CountsWriter.counts.

39  {
40  this(new IdentityTransformation(), counts);
41  }

◆ CountsWriter() [2/2]

org.matsim.counts.CountsWriter.CountsWriter ( final CoordinateTransformation  ct,
final Counts  counts 
)

Definition at line 43 of file CountsWriter.java.

References org.matsim.counts.CountsWriter.counts, and org.matsim.counts.CountsWriter.ct.

45  {
46  this.ct = ct;
47  this.counts = counts;
48  }
final CoordinateTransformation ct

Member Function Documentation

◆ write()

final void org.matsim.counts.CountsWriter.write ( final String  filename)

Implements org.matsim.core.api.internal.MatsimWriter.

Definition at line 51 of file CountsWriter.java.

51  {
52  try {
53  if (System.getProperty("MATSIM_COUNTS_VERSION", "").equalsIgnoreCase("1"))
54  new CountsWriterV1(ct, counts).write(filename);
55  else
56  new CountsWriterV2(ct, counts).write(filename);
57  } catch (IOException e) {
58  throw new RuntimeException(e);
59  }
60  }
final CoordinateTransformation ct

◆ toString()

final String org.matsim.counts.CountsWriter.toString ( )

Definition at line 63 of file CountsWriter.java.

63  {
64  return super.toString();
65  }

◆ setPrettyPrint()

final void org.matsim.core.utils.io.MatsimXmlWriter.setPrettyPrint ( boolean  doPrettyPrint)
inherited

Set the pretty print flag of the XMLWriter, see comment of flag.

Parameters
doPrettyPrint

Definition at line 74 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.MatsimXmlWriter.doPrettyPrint.

◆ setIndentationString()

final void org.matsim.core.utils.io.MatsimXmlWriter.setIndentationString ( String  indentationString)
inherited

Set the String used for indentation in the pretty print xml mode.

Parameters
indentationString

Definition at line 81 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.MatsimXmlWriter.indentationString.

◆ setIndentationLevel()

final void org.matsim.core.utils.io.MatsimXmlWriter.setIndentationLevel ( int  level)
protectedinherited

Set the indentation level of the writer for pretty print option

Parameters
level

Definition at line 90 of file MatsimXmlWriter.java.

90  {
91  this.indentationLevel = level;
92  }

◆ writeXmlHead()

final void org.matsim.core.utils.io.MatsimXmlWriter.writeXmlHead ( ) throws UncheckedIOException
protectedinherited

◆ writeDoctype()

final void org.matsim.core.utils.io.MatsimXmlWriter.writeDoctype ( String  rootTag,
String  dtdUrl 
) throws UncheckedIOException
protectedinherited

Writes the doctype declaration to the output.

Parameters
rootTagThe root tag of the written XML document.
dtdUrlThe location of the document type definition of this XML document.
Exceptions
UncheckedIOException

Definition at line 121 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.AbstractMatsimWriter.NL, and org.matsim.core.utils.io.AbstractMatsimWriter.writer.

Referenced by org.matsim.matrices.MatricesWriter.write(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.write(), org.matsim.core.config.ConfigWriter.write(), org.matsim.core.network.io.NetworkWriter.writeContent(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeData(), and org.matsim.utils.objectattributes.ObjectAttributesXmlWriter.writeFile().

121  {
122  try {
123  this.writer.write("<!DOCTYPE " + rootTag + " SYSTEM \"" + dtdUrl + "\">"+NL);
124  } catch (IOException e) {
125  throw new UncheckedIOException(e);
126  }
127  }

◆ createTuple() [1/4]

static Tuple<String, String> org.matsim.core.utils.io.MatsimXmlWriter.createTuple ( String  one,
String  two 
)
staticprotectedinherited

Convenience method to create XML Attributes written by startTag()

Definition at line 132 of file MatsimXmlWriter.java.

Referenced by org.matsim.core.utils.io.MatsimXmlWriter.createTimeTuple(), org.matsim.core.utils.io.MatsimXmlWriter.createTuple(), org.matsim.vehicles.VehicleWriterV1.writeCapacity(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeDepartures(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeDepartures(), org.matsim.vehicles.VehicleWriterV1.writeEngineInformation(), org.matsim.vehicles.VehicleWriterV1.writeFreightCapacity(), org.matsim.households.HouseholdsWriterV10.writeHeader(), org.matsim.households.HouseholdsWriterV10.writeHouseholds(), org.matsim.households.HouseholdsWriterV10.writeIncome(), org.matsim.households.HouseholdsWriterV10.writeMembers(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeMinimalTransferTimes(), org.matsim.vehicles.VehicleWriterV1.writeRootElement(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeRouteProfile(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeRouteProfile(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeTransitLine(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeTransitLine(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeTransitRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeTransitRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeTransitStops(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeTransitStops(), org.matsim.vehicles.VehicleWriterV1.writeVehicles(), and org.matsim.vehicles.VehicleWriterV1.writeVehicleTypes().

132  {
133  return new Tuple<>(one, two);
134  }

◆ createTuple() [2/4]

static Tuple<String, String> org.matsim.core.utils.io.MatsimXmlWriter.createTuple ( String  one,
int  two 
)
staticprotectedinherited

Convenience method to create XML Attributes written by startTag()

Definition at line 138 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.MatsimXmlWriter.createTuple().

138  {
139  return MatsimXmlWriter.createTuple(one, Integer.toString(two));
140  }
Here is the call graph for this function:

◆ createTuple() [3/4]

static Tuple<String, String> org.matsim.core.utils.io.MatsimXmlWriter.createTuple ( String  one,
double  two 
)
staticprotectedinherited

Convenience method to create XML Attributes written by startTag()

Definition at line 145 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.MatsimXmlWriter.createTuple().

145  {
146  if (Double.isNaN(two)) {
147  return MatsimXmlWriter.createTuple(one, "NaN");
148  }
149  if (two == Double.POSITIVE_INFINITY) {
150  return MatsimXmlWriter.createTuple(one, "INF");
151  }
152  if (two == Double.NEGATIVE_INFINITY) {
153  return MatsimXmlWriter.createTuple(one, "-INF");
154  }
155  return MatsimXmlWriter.createTuple(one, Double.toString(two));
156  }
Here is the call graph for this function:

◆ createTuple() [4/4]

static Tuple<String, String> org.matsim.core.utils.io.MatsimXmlWriter.createTuple ( String  one,
boolean  two 
)
staticprotectedinherited

Convenience method to create XML Attributes written by startTag()

Definition at line 161 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.MatsimXmlWriter.createTuple().

161  {
162  return MatsimXmlWriter.createTuple(one, Boolean.toString(two));
163  }
Here is the call graph for this function:

◆ createTimeTuple()

static Tuple<String, String> org.matsim.core.utils.io.MatsimXmlWriter.createTimeTuple ( String  one,
double  sec 
)
staticprotectedinherited

◆ writeStartTag() [1/3]

final void org.matsim.core.utils.io.MatsimXmlWriter.writeStartTag ( String  tagname,
List< Tuple< String, String >>  attributes 
) throws UncheckedIOException
protectedinherited

Writes a start tag with all attributes on the writer

Parameters
tagname
attributes
Exceptions
UncheckedIOException

Definition at line 184 of file MatsimXmlWriter.java.

Referenced by org.matsim.pt.transitSchedule.TransitScheduleWriterV1.write(), org.matsim.vehicles.VehicleWriterV1.writeCapacity(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeData(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeDepartures(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeDepartures(), org.matsim.vehicles.VehicleWriterV1.writeEngineInformation(), org.matsim.utils.objectattributes.ObjectAttributesXmlWriter.writeFile(), org.matsim.vehicles.VehicleWriterV1.writeFreightCapacity(), org.matsim.households.HouseholdsWriterV10.writeHeader(), org.matsim.households.HouseholdsWriterV10.writeHouseholds(), org.matsim.households.HouseholdsWriterV10.writeIncome(), org.matsim.households.HouseholdsWriterV10.writeMembers(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeMinimalTransferTimes(), org.matsim.vehicles.VehicleWriterV1.writeRootElement(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeRouteProfile(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeRouteProfile(), org.matsim.core.utils.io.MatsimXmlWriter.writeStartTag(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeTransitLine(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeTransitLine(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeTransitRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeTransitRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeTransitStops(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeTransitStops(), org.matsim.vehicles.VehicleWriterV1.writeVehicles(), and org.matsim.vehicles.VehicleWriterV1.writeVehicleTypes().

184  {
185  this.writeStartTag(tagname, attributes, false, false);
186  }
final void writeStartTag(String tagname, List< Tuple< String, String >> attributes)

◆ writeStartTag() [2/3]

final void org.matsim.core.utils.io.MatsimXmlWriter.writeStartTag ( String  tagname,
List< Tuple< String, String >>  attributes,
boolean  closeElement 
) throws UncheckedIOException
protectedinherited

Definition at line 188 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.MatsimXmlWriter.writeStartTag().

188  {
189  this.writeStartTag(tagname, attributes, closeElement, false);
190  }
final void writeStartTag(String tagname, List< Tuple< String, String >> attributes)
Here is the call graph for this function:

◆ writeStartTag() [3/3]

final void org.matsim.core.utils.io.MatsimXmlWriter.writeStartTag ( String  tagname,
List< Tuple< String, String >>  attributes,
boolean  closeElement,
boolean  emptyLineAfter 
) throws UncheckedIOException
protectedinherited

Definition at line 192 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.MatsimXmlWriter.indent(), org.matsim.core.utils.io.AbstractMatsimWriter.NL, and org.matsim.core.utils.io.AbstractMatsimWriter.writer.

192  {
193  try {
194  if (doPrettyPrint) {
195  this.writer.write(NL);
196  indent();
197  this.indentationLevel++;
198  }
199  this.writer.write("<" + tagname);
200  if (attributes != null) {
201  for (Tuple<String, String> t : attributes){
202  this.writer.write(" " + t.getFirst() + "=\"" + encodeAttributeValue(t.getSecond()) + "\"");
203  }
204  }
205  if (closeElement) {
206  this.writer.write("/>");
207  if (doPrettyPrint) {
208  this.indentationLevel--;
209  }
210  }
211  else {
212  this.writer.write(">");
213  }
214  if (emptyLineAfter) {
215  this.writer.write(NL);
216  }
217  } catch (IOException e) {
218  throw new UncheckedIOException(e);
219  }
220  }
Here is the call graph for this function:

◆ writeContent()

final void org.matsim.core.utils.io.MatsimXmlWriter.writeContent ( String  content,
boolean  allowWhitespaces 
) throws UncheckedIOException
protectedinherited

Definition at line 223 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.MatsimXmlWriter.indent(), org.matsim.core.utils.io.AbstractMatsimWriter.NL, and org.matsim.core.utils.io.AbstractMatsimWriter.writer.

Referenced by org.matsim.vehicles.VehicleWriterV1.writeEngineInformation(), org.matsim.utils.objectattributes.ObjectAttributesXmlWriter.writeFile(), org.matsim.households.HouseholdsWriterV10.writeIncome(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeTransitRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeTransitRoute(), and org.matsim.vehicles.VehicleWriterV1.writeVehicleTypes().

223  {
224  try {
225  if (doPrettyPrint) {
226  this.noWhitespaces = !allowWhitespaces;
227  if (!this.noWhitespaces) {
228  this.writer.write(NL);
229  this.indentationLevel++;
230  indent();
231  }
232  }
233  writer.write(encodeContent(content));
234  if (!this.noWhitespaces) {
235  this.indentationLevel--;
236  }
237  } catch (IOException e) {
238  throw new UncheckedIOException(e);
239  }
240  }
Here is the call graph for this function:

◆ writeEndTag()

final void org.matsim.core.utils.io.MatsimXmlWriter.writeEndTag ( String  tagname) throws UncheckedIOException
protectedinherited

Writes a XML end tag with the given name to the given writer instance

Parameters
tagname
Exceptions
UncheckedIOException

Definition at line 247 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.MatsimXmlWriter.indent(), org.matsim.core.utils.io.AbstractMatsimWriter.NL, and org.matsim.core.utils.io.AbstractMatsimWriter.writer.

Referenced by org.matsim.pt.transitSchedule.TransitScheduleWriterV1.write(), org.matsim.vehicles.VehicleWriterV1.writeCapacity(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeData(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeDepartures(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeDepartures(), org.matsim.vehicles.VehicleWriterV1.writeEngineInformation(), org.matsim.utils.objectattributes.ObjectAttributesXmlWriter.writeFile(), org.matsim.households.HouseholdsWriterV10.writeFile(), org.matsim.vehicles.VehicleWriterV1.writeFreightCapacity(), org.matsim.households.HouseholdsWriterV10.writeHouseholds(), org.matsim.households.HouseholdsWriterV10.writeIncome(), org.matsim.households.HouseholdsWriterV10.writeMembers(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeMinimalTransferTimes(), org.matsim.vehicles.VehicleWriterV1.writeRootElement(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeRouteProfile(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeRouteProfile(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeTransitLine(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeTransitLine(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeTransitRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeTransitRoute(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.writeTransitStops(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.writeTransitStops(), and org.matsim.vehicles.VehicleWriterV1.writeVehicleTypes().

247  {
248  try {
249  if (doPrettyPrint) {
250  this.indentationLevel--;
251  if (!this.noWhitespaces) {
252  this.writer.write(NL);
253  indent();
254  }
255  else {
256  this.noWhitespaces = false;
257  }
258  }
259  this.writer.write("</" + tagname + ">");
260  } catch (IOException e) {
261  throw new UncheckedIOException(e);
262  }
263  }
Here is the call graph for this function:

◆ writeElement()

final void org.matsim.core.utils.io.MatsimXmlWriter.writeElement ( String  tagname,
String  content 
) throws UncheckedIOException
protectedinherited

Writes an element including start and end tag on the writer

Parameters
tagname
content
Exceptions
UncheckedIOException

Definition at line 271 of file MatsimXmlWriter.java.

References org.matsim.core.utils.io.MatsimXmlWriter.indent(), org.matsim.core.utils.io.AbstractMatsimWriter.NL, and org.matsim.core.utils.io.AbstractMatsimWriter.writer.

271  {
272  //start tag
273  try {
274  if (doPrettyPrint) {
275  this.writer.write(NL);
276  indent();
277  this.indentationLevel++;
278  }
279  this.writer.write("<" + tagname + ">");
280  if (doPrettyPrint) {
281  this.indentationLevel--;
282  }
283  } catch (IOException e) {
284  throw new UncheckedIOException(e);
285  }
286 
287  //content
288  try {
289  writer.write(encodeContent(content));
290  } catch (IOException e) {
291  throw new UncheckedIOException(e);
292  }
293 
294  //end tag
295  try {
296  this.writer.write("</" + tagname + ">");
297  } catch (IOException e) {
298  throw new UncheckedIOException(e);
299  }
300  }
Here is the call graph for this function:

◆ useCompression()

final void org.matsim.core.utils.io.AbstractMatsimWriter.useCompression ( final boolean  useCompression)
inherited

Sets whether the file should be gzip-compressed or not. Must be set before the file is opened for writing. If not set explicitly, the usage of compression is defined by the ending of the filename.

Parameters
useCompression

Definition at line 58 of file AbstractMatsimWriter.java.

References org.matsim.core.utils.io.AbstractMatsimWriter.useCompression.

◆ openFile()

final void org.matsim.core.utils.io.AbstractMatsimWriter.openFile ( final String  filename) throws UncheckedIOException
protectedinherited

Opens the specified file for writing.

Parameters
filename
Exceptions
UncheckedIOException

Definition at line 68 of file AbstractMatsimWriter.java.

References org.matsim.core.utils.io.AbstractMatsimWriter.assertNotAlreadyOpen(), and org.matsim.core.utils.io.IOUtils.getBufferedWriter().

Referenced by org.matsim.matrices.MatricesWriter.write(), org.matsim.pt.transitSchedule.TransitScheduleWriterV1.write(), org.matsim.core.network.io.NetworkChangeEventsWriter.write(), org.matsim.pt.transitSchedule.TransitScheduleWriterV2.write(), org.matsim.core.config.ConfigWriter.write(), org.matsim.core.population.io.PopulationWriter.write(), org.matsim.vehicles.VehicleWriterV1.writeFile(), org.matsim.utils.objectattributes.ObjectAttributesXmlWriter.writeFile(), org.matsim.households.HouseholdsWriterV10.writeFile(), and org.matsim.core.network.io.NetworkWriter.writeFile().

68  {
70  if (this.useCompression == null) {
71  this.writer = IOUtils.getBufferedWriter(filename);
72  } else {
73  this.writer = IOUtils.getBufferedWriter(filename + ".gz");
74  }
75  }
Here is the call graph for this function:

◆ openOutputStream()

final void org.matsim.core.utils.io.AbstractMatsimWriter.openOutputStream ( OutputStream  outputStream)
protectedinherited

Uses the specified OutputStream for writing.

Definition at line 81 of file AbstractMatsimWriter.java.

References org.matsim.core.utils.io.AbstractMatsimWriter.assertNotAlreadyOpen().

Referenced by org.matsim.pt.transitSchedule.TransitScheduleWriterV2.write(), org.matsim.core.population.io.PopulationWriter.write(), and org.matsim.core.network.io.NetworkWriter.writeStream().

81  {
83  try {
84  if (this.useCompression == null || this.useCompression) {
85  this.writer = new BufferedWriter(new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
86  } else {
87  this.writer = new BufferedWriter(new OutputStreamWriter(new GZIPOutputStream(outputStream), StandardCharsets.UTF_8));
88  }
89  } catch (IOException e) {
90  throw new UncheckedIOException(e);
91  }
92  }
Here is the call graph for this function:

◆ close()

final void org.matsim.core.utils.io.AbstractMatsimWriter.close ( ) throws UncheckedIOException
protectedinherited

Member Data Documentation

◆ ct

final CoordinateTransformation org.matsim.counts.CountsWriter.ct
private

Definition at line 36 of file CountsWriter.java.

Referenced by org.matsim.counts.CountsWriter.CountsWriter().

◆ counts

final Counts org.matsim.counts.CountsWriter.counts
private

Definition at line 37 of file CountsWriter.java.

Referenced by org.matsim.counts.CountsWriter.CountsWriter().

◆ DEFAULT_DTD_LOCATION

final String org.matsim.core.utils.io.MatsimXmlWriter.DEFAULT_DTD_LOCATION = "http://www.matsim.org/files/dtd/"
staticinherited

◆ MATSIM_NAMESPACE

final String org.matsim.core.utils.io.MatsimXmlWriter.MATSIM_NAMESPACE = "http://www.matsim.org/files/dtd"
staticinherited

◆ XMLNS

final String org.matsim.core.utils.io.MatsimXmlWriter.XMLNS = "xmlns"
staticinherited

Constant for the xml namespace attribute

Definition at line 49 of file MatsimXmlWriter.java.

Referenced by org.matsim.households.HouseholdsWriterV10.writeHeader(), and org.matsim.vehicles.VehicleWriterV1.writeRootElement().

◆ DEFAULTSCHEMANAMESPACELOCATION

final String org.matsim.core.utils.io.MatsimXmlWriter.DEFAULTSCHEMANAMESPACELOCATION = "http://www.w3.org/2001/XMLSchema-instance"
staticinherited

Default location of the namespace of xml schema

Definition at line 53 of file MatsimXmlWriter.java.

Referenced by org.matsim.households.HouseholdsWriterV10.writeHeader(), and org.matsim.vehicles.VehicleWriterV1.writeRootElement().

◆ NL

final String org.matsim.core.utils.io.AbstractMatsimWriter.NL = "\n"
staticprotectedinherited

◆ writer

BufferedWriter org.matsim.core.utils.io.AbstractMatsimWriter.writer = null
protectedinherited

◆ useCompression

Boolean org.matsim.core.utils.io.AbstractMatsimWriter.useCompression = null
protectedinherited

Whether or not the output is gzip-compressed. If null, the usage of compression is decided by the filename (whether it ends with .gz or not).

Definition at line 49 of file AbstractMatsimWriter.java.

Referenced by org.matsim.core.utils.io.AbstractMatsimWriter.useCompression().


The documentation for this class was generated from the following file: