Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space IceMaster and version 3.7.1

Znav
nextMATLAB Mapping for Operations
prevMATLAB Mapping for Exceptions

The mapping of Slice interfaces revolves around the idea that, to invoke a remote operation, you call a member function on a local class instance that is a proxy for the remote object. This makes the mapping easy and intuitive to use because making a remote procedure call is no different from making a local procedure call (apart from error semantics).

...

An empty array denotes the null proxy. The null proxy is a dedicated value that indicates that a proxy points "nowhere" (denotes no object)a dedicated value that indicates that a proxy points "nowhere" (denotes no object).

Ztop

Interface Inheritance in MATLAB

Inheritance relationships among Slice interfaces are maintained in the generated MATLAB classes. For example:

Code Block
languageslice
titleSlice
interface A { ... }
interface B { ... }
interface C extends A, B { ... }

The generated code for CPrx reflects the inheritance hierarchy:

Code Block
languagematlab
titleMATLAB
classdef CPrx < APrx & BPrx
    ...
end

Given a proxy for C, a client can invoke any operation defined for interface C, as well as any operation inherited from C's base interfaces.

Ztop
Anchor
ObjectPrx
ObjectPrx

...

Znav
nextMATLAB Mapping for Operations
prevMATLAB Mapping for Exceptions