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, setId
protected 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 BusOrStop
getLocation
in interface StopOrHub
public 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 BusOrStop
public void setNextStop(BusStop nextStop)
setNextStop
in interface BusOrStop
public void setBus(Bus bus)
public List<Shuttle> getTransferShuttleList()
getTransferShuttleList
in interface StopOrHub
public void setTransferShuttleList(List<Shuttle> transferShuttleList)
setTransferShuttleList
in interface StopOrHub
public Integer getTransportTimeToHub()
getTransportTimeToHub
in interface StopOrHub
public void setTransportTimeToHub(Integer transportTimeToHub)
public int getDistanceFromPreviousCost()
public int getDistanceFrom(BusOrStop busOrStop)
public int getDistanceToDestinationCost(StopOrHub destination)
public boolean isVisitedByCoach()
isVisitedByCoach
in interface StopOrHub
public Integer getTransportTimeRemainder()
public String getTransportLabel()
public String toString()
toString
in class AbstractPersistable
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.