Learn R Programming

OpenABMCovid19 (version 1.0.1)

COVID19IBM: R6Class COVID19IBM

Description

Environment subclass representing a COVID19 outbreak as defined in the COVID19-IBM model.

See Simulation for examples.

Arguments

Super class

OpenABMCovid19::Environment -> COVID19IBM

Public fields

model

An instance of the Model class.

Methods

Public methods

Method new()

Environment subclass representing a COVID19 outbreak as defined in the COVID19-IBM model

Usage

COVID19IBM$new(model, ...)

Arguments

model

An R6 Model class instance.

...

Parameters to pass to Environment super class.

Method start_simulation()

Start a simulation.

Usage

COVID19IBM$start_simulation()

Returns

The state of the system

Method end_simulation()

End the simulation. Destroy the model.

Usage

COVID19IBM$end_simulation()

Method step()

Run the simulation through one time step.

Usage

COVID19IBM$step(action)

Arguments

action

Vector of actions. The vector should contain names from SAFE_UPDATE_PARAMS

Returns

The state of the system.