public class Round
extends java.lang.Object
Notice that this class does not represent the actual path that the agent could follow in the city graph : is just represents the establishment list that it must deliver.
Constructor and Description |
---|
Round(Establishment origin,
java.util.List<Establishment> establishments,
org.liris.smartgov.simulator.core.simulation.time.Date departure,
double initialWeight)
Round constructor.
|
Modifier and Type | Method and Description |
---|---|
org.liris.smartgov.simulator.core.simulation.time.Date |
getDeparture() |
java.util.List<Establishment> |
getEstablishments()
Returns establishments delivered by this round, in order.
|
double |
getInitialWeight()
Returns the round initial merchandises weight
|
java.util.List<org.liris.smartgov.simulator.urban.osm.environment.graph.OsmNode> |
getNodes()
Can be used to compute a node list representation of the round.
|
Establishment |
getOrigin()
Returns the round origin, used as start and final point of the
round.
|
java.lang.String |
toString() |
public Round(Establishment origin, java.util.List<Establishment> establishments, org.liris.smartgov.simulator.core.simulation.time.Date departure, double initialWeight)
origin
- origin establishment : beginning and end of the roundestablishments
- establishments to deliver : does not include
origin establishmentdeparture
- departure dateinitialWeight
- might be used to represent the volume of the
deliverypublic Establishment getOrigin()
public java.util.List<Establishment> getEstablishments()
public org.liris.smartgov.simulator.core.simulation.time.Date getDeparture()
public double getInitialWeight()
public java.util.List<org.liris.smartgov.simulator.urban.osm.environment.graph.OsmNode> getNodes()
Nodes return are establishments' closest osm nodes
. Starts with origin, includes
establishments to deliver, and finishes with the origin.
public java.lang.String toString()
toString
in class java.lang.Object