|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscheduler.TravelPart
A travel part.
Field Summary | |
private Location |
destination
The destination of this travel part. |
private Station |
destinationStation
A station related to the destination. |
private int |
meanOfTransportation
A mean of transportation this part is to be taken by. |
private Location |
origin
The origin of this travel part. |
private Station |
originStation
A station related to the origin. |
Constructor Summary | |
TravelPart(int meanOfTransportation,
Location origin,
Location destination)
Constructor. |
Method Summary | |
Location |
GetDestination()
Gets ths destination of this travel part. |
Station |
GetDestinationStation()
Gets the destination related station. |
int |
GetMeanOfTransportation()
Gets the mean of transportations this travel part is to be taken by. |
Location |
GetOrigin()
Gets the origin of this travel part. |
Station |
GetOriginStation()
Gets the origin related station. |
TravelPart |
GetRevertedPart()
Gets the reverted travel part. |
void |
SetDestinationStation(Station station)
Sets the station related to the destination. |
void |
SetOriginStation(Station station)
Sets the station related to the origin. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int meanOfTransportation
MeanOfTransportation.AIRPLANE
,
MeanOfTransportation.BUS
,
MeanOfTransportation.TRAIN
,
MeanOfTransportation.SHIP
private Location origin
private Location destination
private Station originStation
private Station destinationStation
Constructor Detail |
public TravelPart(int meanOfTransportation, Location origin, Location destination)
meanOfTransportation
- The mean of transportation this travel part is to be taken by.origin
- The origin location of this travel part.destination
- The destination location of this travel part.MeanOfTransportation.AIRPLANE
,
MeanOfTransportation.BUS
,
MeanOfTransportation.TRAIN
,
MeanOfTransportation.SHIP
Method Detail |
public int GetMeanOfTransportation()
MeanOfTransportation.AIRPLANE
,
MeanOfTransportation.BUS
,
MeanOfTransportation.TRAIN
,
MeanOfTransportation.SHIP
public Location GetOrigin()
public Location GetDestination()
public void SetOriginStation(Station station)
station
- A station to be set.public Station GetOriginStation()
public void SetDestinationStation(Station station)
station
- A station to be set.public Station GetDestinationStation()
public TravelPart GetRevertedPart()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |