Learn R Programming

distcomp (version 1.3-3)

executeMethod: Given the id of a serialized object, invoke a method on the object with arguments

Description

The function executeMethod is really the heart of distcomp. It executes an arbitrary method on an object that has been serialized to the distcomp workspace with any specified arguments. The result, which is dependent on the computation that is executed, is returned. If the object needs to save state between iterations on it, it is automatically serialized back for the ensuing iterations

Usage

executeMethod(objectId, method, ...)

Value

a result that depends on the computation being executed

Arguments

objectId

the (instance) identifier of the object on which to invoke a method

method

the name of the method to invoke

...

further arguments as appropriate for the method