public class LezScenario extends PollutionScenario
Modifier and Type | Class and Description |
---|---|
static class |
LezScenario.NoLezDeliveries |
Modifier and Type | Field and Description |
---|---|
static org.liris.smartgov.simulator.urban.osm.environment.graph.tags.Highway[] |
forbiddenClosestNodeHighways
Establishments won't be delivered in those highways, even
if they can be used in trajectories.
|
static java.lang.String |
name
LezDeliveries
|
random
Constructor and Description |
---|
LezScenario(Environment environment)
DeliveriesScenario constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends org.liris.smartgov.simulator.core.agent.core.Agent<?>> |
buildAgents(org.liris.smartgov.simulator.core.environment.SmartGovContext context) |
java.util.Collection<? extends org.liris.smartgov.simulator.core.agent.core.Agent<?>> |
buildAgents(org.liris.smartgov.simulator.core.environment.SmartGovContext context,
boolean reload)
Build all the agents of the simulation
|
static int |
getNbAgents() |
java.util.Map<java.lang.String,Establishment> |
loadEstablishments(org.liris.smartgov.simulator.core.environment.SmartGovContext context,
CopertParser parser)
Load the establishments : the closest OSM node, the vehicles, the personalities of the agents
|
void |
reloadWorld(org.liris.smartgov.simulator.core.environment.SmartGovContext context) |
static void |
setNbAgents(int nbAgents) |
getCopertParser, getEnvironment, resetRandom
public static final java.lang.String name
public static final org.liris.smartgov.simulator.urban.osm.environment.graph.tags.Highway[] forbiddenClosestNodeHighways
Highway.MOTORWAY
Highway.MOTORWAY_LINK
Highway.TRUNK
Highway.TRUNK_LINK
Highway.LIVING_STREET
Highway.SERVICE
Living streets and service ways are not used, because their usage to often bring situations with dead ends.
public LezScenario(Environment environment)
environment
- the whole environment for this scenariopublic static int getNbAgents()
public static void setNbAgents(int nbAgents)
public void reloadWorld(org.liris.smartgov.simulator.core.environment.SmartGovContext context)
reloadWorld
in class PollutionScenario
public java.util.Map<java.lang.String,Establishment> loadEstablishments(org.liris.smartgov.simulator.core.environment.SmartGovContext context, CopertParser parser)
context
- current contextparser
- parser to load vehicle featurespublic java.util.Collection<? extends org.liris.smartgov.simulator.core.agent.core.Agent<?>> buildAgents(org.liris.smartgov.simulator.core.environment.SmartGovContext context, boolean reload)
context
- current contextreload
- says if it is the first time they are builtpublic java.util.Collection<? extends org.liris.smartgov.simulator.core.agent.core.Agent<?>> buildAgents(org.liris.smartgov.simulator.core.environment.SmartGovContext context)
buildAgents
in class org.liris.smartgov.simulator.core.scenario.Scenario