COVID19IBM: R6Class COVID19IBM

Description Super class Public fields Methods

Description

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

See Simulation for examples.

Super class

OpenABMCovid19::Environment -> COVID19IBM

Public fields

model

An instance of the Model class.

Methods

Public methods

Inherited 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.


OpenABMCovid19 documentation built on July 20, 2021, 5:08 p.m.