ModuleInterface: Module Interface

Description Usage Format Contracted Methods Private See Also

Description

Defines a contract of implementation for any module based class, i.e. a class that extends this interface. This class cannot be instantiated directly as it is abstract.

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Contracted Methods

clearOutputCache()

Clears out the cached output of the associated module.

getFuncObj()

Gets the base R function object that is called when the associated module's execution is started.

getInput()

Gets a named logical vector where the names are the possible inputs into a module and the values indicate if an input is required.

getOutput()

Gets the output of the associated module.

hasCompleted()

Indicates if the associated module's execution has completed.

startExecution(argsList)

Starts the execution of the associated module with argsList as arguments.

getName()
  • Gets the name of this function.

  • Returns: character string that is the name of this module.

setName(arg)

Set the name of the module. Considers arg of length 1 of character type.

setModuleStartTime()

Set the current system time as the time when the execution of the associated module was initiated.

getModuleStartTime()

Get the time when the execution of the associated module was initiated.

setModuleEndTime()

Set the current system time as the time when the execution of the associated module was completed

getModuleEndTime()

Get the time when the execution of the associated module was completed.

setExecutionStatus(arg)

Set the status of execution - whether it was successfully completed or not. arg indicates a logical vector of length 1.

getExecutionStatus()

Get the status of execution - whether it was successfully completed or not.

getExecutionTimings()
  • The list of timings indicating the module name, start-time and end-time.

  • ReturnsA list with: name, startTime & endTime of the associated module was initiated.

Private

moduleStartTime

The time when the execution of the associated module was initiated.

moduleEndTime

The time when the execution of the associated module was completed

successfulExecution

A logical vector of length 1 that indicates whether the module was successfully executed. It could take the following values:

  • NULLModule Execution incomplete.

  • FALSEExecution Failed.

  • TRUESuccessful execution.

See Also

is.Module


UptakeOpenSource/updraft documentation built on Oct. 17, 2019, 3:31 p.m.