public class LezContext
extends org.liris.smartgov.simulator.urban.osm.environment.OsmContext
| Modifier and Type | Field and Description |
|---|---|
java.util.Map<java.lang.String,Round> |
ongoingRounds |
| Constructor and Description |
|---|
LezContext(java.lang.String configFile,
boolean politic) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,Establishment> |
getEstablishments() |
boolean |
getPolitic() |
static <T extends java.lang.Enum<?>> |
randomEnum(java.lang.Class<T> clazz)
Returns a random value for an enumeration
|
void |
reload()
Reload agents and rounds
|
void |
resetConfiguration()
Reset configuration to a state with all vehicles allowed and no surveillance
|
void |
resetVariables(boolean fastReset)
Reset pollution variables, but also local perceptions of neighborhoods
|
void |
setCompletelyRandomConfiguration()
Create new completely random configuration
|
void |
setEstablishments(java.util.Map<java.lang.String,Establishment> establishments) |
void |
setPartiallyRandomConfiguration()
Creates a new random configuration but all neighborhood have the same criterias and the same surveillance
|
clear, getSinkNodes, getSourceNodesbuildGraph, getGraphpublic java.util.Map<java.lang.String,Round> ongoingRounds
public LezContext(java.lang.String configFile,
boolean politic)
configFile - the file with all the paths to needed filespolitic - whether or not we have to launch political layerpublic boolean getPolitic()
public java.util.Map<java.lang.String,Establishment> getEstablishments()
public void setEstablishments(java.util.Map<java.lang.String,Establishment> establishments)
public void reload()
public void resetVariables(boolean fastReset)
fastReset - whether or not we want to reset arcs's pollution (long to do)public void resetConfiguration()
public void setCompletelyRandomConfiguration()
public void setPartiallyRandomConfiguration()
public static <T extends java.lang.Enum<?>> T randomEnum(java.lang.Class<T> clazz)
clazz - class of the enumeration