MATSIM
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.matsim.pt.transitSchedule.api.TransitScheduleWriter Class Reference
Inheritance diagram for org.matsim.pt.transitSchedule.api.TransitScheduleWriter:
Inheritance graph
[legend]

Public Member Functions

 TransitScheduleWriter (final TransitSchedule schedule)
 
 TransitScheduleWriter (final CoordinateTransformation transformation, final TransitSchedule schedule)
 
void writeFile (final String filename) throws UncheckedIOException
 
void writeFileV1 (final String filename) throws UncheckedIOException
 
void writeFileV2 (final String filename) throws UncheckedIOException
 

Private Attributes

final TransitSchedule schedule
 
final CoordinateTransformation transformation
 

Static Private Attributes

static final Logger log = LogManager.getLogger( TransitScheduleWriter.class )
 

Detailed Description

Writes TransitSchedules to file in one of the supported file formats.

Author
mrieser

Definition at line 40 of file TransitScheduleWriter.java.

Constructor & Destructor Documentation

◆ TransitScheduleWriter() [1/2]

org.matsim.pt.transitSchedule.api.TransitScheduleWriter.TransitScheduleWriter ( final TransitSchedule  schedule)

Definition at line 46 of file TransitScheduleWriter.java.

References org.matsim.pt.transitSchedule.api.TransitScheduleWriter.schedule.

46  {
47  this( new IdentityTransformation() , schedule );
48  }

◆ TransitScheduleWriter() [2/2]

org.matsim.pt.transitSchedule.api.TransitScheduleWriter.TransitScheduleWriter ( final CoordinateTransformation  transformation,
final TransitSchedule  schedule 
)

Member Function Documentation

◆ writeFile()

void org.matsim.pt.transitSchedule.api.TransitScheduleWriter.writeFile ( final String  filename) throws UncheckedIOException

Writes the transit schedule to the specified file in the most current file format (currently V2).

Parameters
filename
Exceptions
UncheckedIOException
See also
writeFileV2(String)

Definition at line 65 of file TransitScheduleWriter.java.

References org.matsim.pt.transitSchedule.api.TransitScheduleWriter.writeFileV2().

65  {
66  writeFileV2(filename);
67  }
Here is the call graph for this function:

◆ writeFileV1()

void org.matsim.pt.transitSchedule.api.TransitScheduleWriter.writeFileV1 ( final String  filename) throws UncheckedIOException

Writes the transit schedule to the specified file in the file format specified by transitSchedule_v1.dtd

Parameters
filename
Exceptions
UncheckedIOException

Definition at line 76 of file TransitScheduleWriter.java.

References org.matsim.core.gbl.Gbl.aboutToWrite(), and org.matsim.pt.transitSchedule.TransitScheduleWriterV1.write().

76  {
77  log.info( Gbl.aboutToWrite("transit schedule", filename) ) ;
78  new TransitScheduleWriterV1(this.transformation, this.schedule).write(filename);
79  }
Here is the call graph for this function:

◆ writeFileV2()

void org.matsim.pt.transitSchedule.api.TransitScheduleWriter.writeFileV2 ( final String  filename) throws UncheckedIOException

Writes the transit schedule to the specified file in the file format specified by transitSchedule_v2.dtd

Parameters
filename
Exceptions
UncheckedIOException

Definition at line 88 of file TransitScheduleWriter.java.

References org.matsim.core.gbl.Gbl.aboutToWrite(), and org.matsim.pt.transitSchedule.TransitScheduleWriterV2.write().

Referenced by org.matsim.pt.transitSchedule.api.TransitScheduleWriter.writeFile().

88  {
89  log.info( Gbl.aboutToWrite( "transit schedule" , filename ) ) ;
90  new TransitScheduleWriterV2(this.transformation, this.schedule).write(filename);
91  }
Here is the call graph for this function:

Member Data Documentation

◆ log

final Logger org.matsim.pt.transitSchedule.api.TransitScheduleWriter.log = LogManager.getLogger( TransitScheduleWriter.class )
staticprivate

Definition at line 41 of file TransitScheduleWriter.java.

◆ schedule

final TransitSchedule org.matsim.pt.transitSchedule.api.TransitScheduleWriter.schedule
private

◆ transformation

final CoordinateTransformation org.matsim.pt.transitSchedule.api.TransitScheduleWriter.transformation
private

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