Converter for R matrix to CORBA/IDL matrix
Usage
baseMatrixHandlerGenerator(this)
Arguments
this
|
the matrix to be enclosed in the resulting closure
which acts as the implicit source and target of the operations.
This objects is the equivalent of the `this' in an object oriented language
like C++ or Java.
|
Description
Create a simple closure that contains methods that implement the basic
operations of a matrix withot requiring the matrix to be explicitly required.
This is necessary in object oriented interfaces such as CORBA and Java
in which we invoke a method on an object rather than a function with the object
as the argument.Details
This is a closure mechanism that is used to implement a simple
class mechanism, with simple lookup of ``inherited methods''.Value
A closure containing a list of functions defined to implement
the basic methods of a matrix.Author(s)
Duncan Temple LangReferences
http://www.omegahat.org/CORBASee Also
.CorbaServerExamples
server <- baseMatrixHandlerGenerator(matrix(1:9,3,3))
server$nrow()
server$setElement(1,1,10.3)
server$getElement(1,1)
.CorbaServer("IDL:Omegahat/Matrix:1.0", Rmatrix=server)