episimmer.world
- class World(config_obj, model, policy_list, agents_filename, interaction_files_list, probabilistic_interaction_files_list, locations_filename, event_files_list, one_time_event_file)[source]
Class for implementing a simulation world.
- Parameters
config_obj (episimmer.read_file.ReadConfiguration) – A dictionary containing information from the config file of the example.
model (episimmer.model.BaseModel) – Disease model specified by the user
policy_list (List[episimmer.policy.base.Policy]) – List of all the policies part of the simulation
agents_filename (str) – Name of the file that contains agents information
interaction_files_list (List[List[str]]) – List of path names of all the interactions list files
probabilistic_interaction_files_list (List[List[str]]) – List of path names of all the probabilistic interactions list files
locations_filename (str) – Name of the file that contains location information
event_files_list (List[List[str]]) – List of path names of all the events list files
one_time_event_file (Optional[str]) – File name of the one time event
- one_world()[source]
Runs a single simulation world
- Returns
State of the world at the end of a simulation, ReadAgents object, and ReadLocations object
- Return type
Tuple[Dict[str, List[int]], episimmer.read_file.ReadAgents, episimmer.read_file.ReadLocations]