Skip to contents

Basic object for engine, all other engines inherit from here.

Public fields

engine

The class name of the engine.

name

The name of the engine

data

Any data or parameters necessary to make this engine work.

Methods


Method new()

Initializes the object and creates an empty list

Usage

Engine$new(engine, name)

Arguments

engine

The class name of the engine.

name

The name of the engine

Returns

NULL


Method print()

Print the Engine name

Usage

Engine$print()

Returns

A message on screen


Method show()

Aliases that calls print.

Usage

Engine$show()

Returns

A message on screen


Method get_class()

Get class description

Usage

Engine$get_class()

Returns

A character with the class as saved in engine


Method get_data()

Get specific data from this engine

Usage

Engine$get_data(x)

Arguments

x

A respecified data to be added to the engine.

Returns

A list with the data.


Method list_data()

List all data

Usage

Engine$list_data()

Returns

A character vector of the data entries.


Method set_data()

Set data for this engine

Usage

Engine$set_data(x, value)

Arguments

x

A character with the name or id of this dataset.

value

A new list of parameters.

Returns

Invisible


Method get_self()

Dummy function to get self object

Usage

Engine$get_self()

Returns

This object


Method clone()

The objects of this class are cloneable with this method.

Usage

Engine$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.