public class BusStop extends AbstractPersistable implements BusOrStop, StopOrHub
| Modifier and Type | Field and Description |
|---|---|
protected Bus |
bus |
protected RoadLocation |
location |
protected String |
name |
protected BusStop |
nextStop |
protected int |
passengerQuantity |
protected BusOrStop |
previousBusOrStop |
protected List<Shuttle> |
transferShuttleList |
protected int |
transportTimeLimit |
protected Integer |
transportTimeToHub |
id| Constructor and Description |
|---|
BusStop() |
| Modifier and Type | Method and Description |
|---|---|
Bus |
getBus() |
int |
getDistanceFrom(BusOrStop busOrStop) |
int |
getDistanceFromPreviousCost() |
int |
getDistanceToDestinationCost(StopOrHub destination) |
RoadLocation |
getLocation() |
String |
getName() |
BusStop |
getNextStop() |
int |
getPassengerQuantity() |
BusOrStop |
getPreviousBusOrStop() |
List<Shuttle> |
getTransferShuttleList() |
String |
getTransportLabel() |
int |
getTransportTimeLimit() |
Integer |
getTransportTimeRemainder() |
Integer |
getTransportTimeToHub() |
boolean |
isVisitedByCoach() |
void |
setBus(Bus bus) |
void |
setLocation(RoadLocation location) |
void |
setName(String name) |
void |
setNextStop(BusStop nextStop) |
void |
setPassengerQuantity(int passengerQuantity) |
void |
setPreviousBusOrStop(BusOrStop previousBusOrStop) |
void |
setTransferShuttleList(List<Shuttle> transferShuttleList) |
void |
setTransportTimeLimit(int transportTimeLimit) |
void |
setTransportTimeToHub(Integer transportTimeToHub) |
String |
toString() |
compareTo, getId, setIdprotected String name
protected RoadLocation location
protected int passengerQuantity
protected int transportTimeLimit
protected BusOrStop previousBusOrStop
protected BusStop nextStop
protected Bus bus
protected Integer transportTimeToHub
public void setName(String name)
public RoadLocation getLocation()
getLocation in interface BusOrStopgetLocation in interface StopOrHubpublic void setLocation(RoadLocation location)
public int getPassengerQuantity()
public void setPassengerQuantity(int passengerQuantity)
public int getTransportTimeLimit()
public void setTransportTimeLimit(int transportTimeLimit)
public BusOrStop getPreviousBusOrStop()
public void setPreviousBusOrStop(BusOrStop previousBusOrStop)
public BusStop getNextStop()
getNextStop in interface BusOrStoppublic void setNextStop(BusStop nextStop)
setNextStop in interface BusOrStoppublic void setBus(Bus bus)
public List<Shuttle> getTransferShuttleList()
getTransferShuttleList in interface StopOrHubpublic void setTransferShuttleList(List<Shuttle> transferShuttleList)
setTransferShuttleList in interface StopOrHubpublic Integer getTransportTimeToHub()
getTransportTimeToHub in interface StopOrHubpublic void setTransportTimeToHub(Integer transportTimeToHub)
public int getDistanceFromPreviousCost()
public int getDistanceFrom(BusOrStop busOrStop)
public int getDistanceToDestinationCost(StopOrHub destination)
public boolean isVisitedByCoach()
isVisitedByCoach in interface StopOrHubpublic Integer getTransportTimeRemainder()
public String getTransportLabel()
public String toString()
toString in class AbstractPersistableCopyright © 2006–2015 JBoss by Red Hat. All rights reserved.