Class BusHub
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.coachshuttlegathering.domain.BusHub
-
- All Implemented Interfaces:
Serializable
,StopOrHub
public class BusHub extends AbstractPersistable implements StopOrHub
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected RoadLocation
location
protected String
name
protected 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 RoadLocation
getLocation()
String
getName()
List<Shuttle>
getTransferShuttleList()
Integer
getTransportTimeToHub()
boolean
isVisitedByCoach()
void
setLocation(RoadLocation location)
void
setName(String name)
void
setTransferShuttleList(List<Shuttle> transferShuttleList)
String
toString()
-
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:
getLocation
in interfaceStopOrHub
- Returns:
- never null
-
setLocation
public void setLocation(RoadLocation location)
-
getTransferShuttleList
public List<Shuttle> getTransferShuttleList()
- Specified by:
getTransferShuttleList
in interfaceStopOrHub
-
setTransferShuttleList
public void setTransferShuttleList(List<Shuttle> transferShuttleList)
- Specified by:
setTransferShuttleList
in interfaceStopOrHub
-
getTransportTimeToHub
public Integer getTransportTimeToHub()
- Specified by:
getTransportTimeToHub
in interfaceStopOrHub
-
isVisitedByCoach
public boolean isVisitedByCoach()
- Specified by:
isVisitedByCoach
in interfaceStopOrHub
-
toString
public String toString()
- Overrides:
toString
in classAbstractPersistable
-
-