|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscheduler.TravelPart
scheduler.TravelPartConnectionChunk
A class describing a piece of a real connection used to fill a travel part. A list of such chunks creates a final travel plan.
Field Summary | |
private int |
destinationStationIndex
An index of the destination station in the real connection's stations list. |
private java.util.Date |
endDate
The end date of this travel part. |
int |
extraTimeBeforeDeparture
An extra time in minutes the traveler is at the station before the departure (after the change). |
private int |
originStationIndex
An index of the origin station in the real connection's stations list. |
private Connection |
realConnection
A connection this travel part is taken by. |
private java.util.Date |
startDate
The start date of this travel part. |
Fields inherited from class scheduler.TravelPart |
|
Constructor Summary | |
TravelPartConnectionChunk(int meanOfTransportation,
Location origin,
Location destination)
Constructor. |
Method Summary | |
java.lang.Object |
clone()
Gets a copy of this connection chunk. |
int |
GetDestinationStationIndex()
Gets the index of the destination station in the real connection's stations list. |
java.util.Date |
GetEndDate()
Gets the end date of this travel part. |
int |
GetOriginStationIndex()
Gets the index of the origin station in the real connection's stations list. |
Connection |
GetRealConnection()
Gets a reference to the real connection this travel part is taken by. |
TravelPartConnectionChunk |
GetRevertedConnectionChunk()
Gets a reverted connection chunk. |
TravelPart |
GetRevertedPart()
Calls GetRevertedConnectionChunk(). |
java.util.Date |
GetStartDate()
Gets the start date of this travel part. |
void |
SetDestinationStationIndex(int destinationStationIndex)
Sets the index of the destination station in the real connection's stations list. |
void |
SetEndDate(java.util.Date endDate)
Sets the end date of this travel part. |
void |
SetOriginStationIndex(int originStationIndex)
Sets the index of the origin station in the real connection's stations list. |
void |
SetRealConnection(Connection realConnection)
Sets the reference to the real connection this travel part is taken by. |
void |
SetStartDate(java.util.Date startDate)
Sets the start date of this travel part. |
Methods inherited from class scheduler.TravelPart |
GetDestination, GetDestinationStation, GetMeanOfTransportation, GetOrigin, GetOriginStation, SetDestinationStation, SetOriginStation |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Date startDate
private java.util.Date endDate
private Connection realConnection
private int originStationIndex
private int destinationStationIndex
public int extraTimeBeforeDeparture
Constructor Detail |
public TravelPartConnectionChunk(int meanOfTransportation, Location origin, Location destination)
meanOfTransportation
- A mean of transportation.origin
- An origin location of this part of travel.destination
- A destination location of this part of travel.Method Detail |
public int GetOriginStationIndex()
public void SetOriginStationIndex(int originStationIndex)
originStationIndex
- The index of the origin station in the real connection's stations list.public int GetDestinationStationIndex()
public void SetDestinationStationIndex(int destinationStationIndex)
destinationStationIndex
- The index of the destination station in the real connection's stations list.public Connection GetRealConnection()
public void SetRealConnection(Connection realConnection)
realConnection
- A reference to the real connection part this travel part is taken by. A null value means there is no connection (in case of a walk or a taxi).public java.util.Date GetStartDate()
public void SetStartDate(java.util.Date startDate)
startDate
- A start date of this travel part. Null value means it must be computed basing on the subsequent connection chunk at the later time.public java.util.Date GetEndDate()
public void SetEndDate(java.util.Date endDate)
endDate
- An end date of this travel part. Null value means it must be computed basing on the subsequent connection chunk at the later time.public java.lang.Object clone()
public TravelPart GetRevertedPart()
GetRevertedPart
in class TravelPart
TravelPart.GetRevertedPart()
,
GetRevertedConnectionChunk()
public TravelPartConnectionChunk GetRevertedConnectionChunk()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |