transport
Class TripSection

java.lang.Object
  extended by transport.TripSection

public class TripSection
extends java.lang.Object

Elementary portion of a trip, from a given origin to a given destination, using a given line.

Author:
Christophe Jacquet

Method Summary
 Station getDestination()
          Returns the destination of the trip section
 Line getLine()
          Returns the line along which this section is located.
 Station getOrigin()
          Returns the origin of the trip section.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getOrigin

public Station getOrigin()
Returns the origin of the trip section.

Returns:
the origin station

getDestination

public Station getDestination()
Returns the destination of the trip section

Returns:
the destination station

getLine

public Line getLine()
Returns the line along which this section is located.

Returns:
the line

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object