Skip to contents

S3 extension classes for MizerParams and MizerSim that enable S3 dispatch for extension-specific methods.

Details

The class names are ordinary entries in the object's S3 class vector. All reef-specific data lives in other_params(params) or in component parameters (see setComponent()).

Objects of class mizerReef are created by newReefParams(). Objects of class mizerReefSim are returned automatically by project() when called on a mizerReef params object.

No class declaration is needed. newReefParams() records the extension on the object with mizer::recordExtension() and then calls mizer::coerceToExtensionClass().