Class BusHub
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.coachshuttlegathering.domain.BusHub
-
- All Implemented Interfaces:
StopOrHub
public class BusHub extends AbstractPersistable implements StopOrHub
-
-
Field Summary
Fields Modifier and Type Field Description protected RoadLocationlocationprotected Stringnameprotected List<Shuttle>transferShuttleList-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description BusHub()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoadLocationgetLocation()StringgetName()List<Shuttle>getTransferShuttleList()IntegergetTransportTimeToHub()booleanisVisitedByCoach()voidsetLocation(RoadLocation location)voidsetName(String name)voidsetTransferShuttleList(List<Shuttle> transferShuttleList)StringtoString()-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
-
-
-
Field Detail
-
name
protected String name
-
location
protected RoadLocation location
-
-
Method Detail
-
setName
public void setName(String name)
-
getLocation
public RoadLocation getLocation()
- Specified by:
getLocationin interfaceStopOrHub- Returns:
- never null
-
setLocation
public void setLocation(RoadLocation location)
-
getTransferShuttleList
public List<Shuttle> getTransferShuttleList()
- Specified by:
getTransferShuttleListin interfaceStopOrHub
-
setTransferShuttleList
public void setTransferShuttleList(List<Shuttle> transferShuttleList)
- Specified by:
setTransferShuttleListin interfaceStopOrHub
-
getTransportTimeToHub
public Integer getTransportTimeToHub()
- Specified by:
getTransportTimeToHubin interfaceStopOrHub
-
isVisitedByCoach
public boolean isVisitedByCoach()
- Specified by:
isVisitedByCoachin interfaceStopOrHub
-
toString
public String toString()
- Overrides:
toStringin classAbstractPersistable
-
-