LapplyExecutionState-class: Class '"LapplyExecutionState"'

Description Extends Fields Methods Author(s) See Also Examples

Description

An instance of this class reflects the entire lifetime of a dynamic parallelization.

Extends

All reference classes extend and inherit methods from "envRefClass".

Fields

sequenceNos:

For each ramp-up, information of the Apply sequence number where parallelization starts and stops is stored together with nesting depth. This allows the Apply functions to switch to proper states. Each object on this stack represents a range of Apply calls.

rampUp:

Ramp-up curser.

freezerClass:

Name of the freezer class to be used.

freezers:

Freezer objects for the different ramp-ups.

Methods

setFreezers(value):

Accessor method for freezers slot.

getFreezers():

Accessor method for freezers slot.

setFreezerClass(value):

Accessor method for freezerClass slot.

getFreezerClass():

Accessor method for freezerClass slot.

setRampUp(value):

Accessor method for rampUp slot.

getRampUp():

Accessor method for rampUp slot.

setSequenceNos(value):

Accessor method for sequenceNos slot.

getSequenceNos():

Accessor method for sequenceNos slot.

currentFreezer():

Topmost freezer object on the freezer stack.

adjustCursor(state):

Assign new value to topmost list from sequenceNos (during probing).

isLastRampUp():

Is the ramp-up curser located in the last ramp-up seen so far?

skipToRampDown(state):

In order to reach the last ramp-up (ramp-down) should we skip the given state?

checkAgainstState(state):

Is the given state located in the top-most range of the sequenceNos stack.

rampUpForeFront():

How many ramp-ups have been seen so far?

resetCursor():

Reset variable rampUp to one. This prepares for a re-execution of the function.

incCursor():

Indicate the switch to the next ramp-up.

currentSentinel():

Return last object from the sequencNos stack.

pushSequenceForRampUp(sequenceNo, depth):

Indicate the visiting of Apply call at sequence number sequenceNo and depth depth. The method automatically updates the sequenceNos stack to record Apply calls with maximal depth and accumulates calls at equal depth into a start/stop range.

addSentinel():

Create a new element on the sequenceNos stack.

initialize(freezerClass, ...):

Initialize the object.

Author(s)

Stefan Böhringer

Maintainer: Stefan Böhringer <r-packages@s-boehringer.org>

See Also

LapplyFreezer-class, LapplyState-class

Examples

1
showClass("LapplyExecutionState")

parallelize.dynamic documentation built on May 2, 2019, 3:45 a.m.