Preliminary documentation for Ice for MATLAB. Do not use in production applications. Refer to the space directory for other releases.

On this page:

Mapped Python Class

A Slice local interface is mapped to a Python class with the same name. For example:

Slice
module M
{
    local interface Example
    {
        ...
    }
}

is mapped to the Python class Example:

Python
class Example(object):
    ...

LocalObject in Python

All Slice local interfaces implicitly derive from LocalObject, which is mapped to the native object class in Python.

Mapping for Local Interface Inheritance in Python

Inheritance of local Slice interfaces is mapped to class inheritance in Python. For example:

Slice
module M
{
    local interface A {}
    local interface B extends A {}
    local interface C extends A {}
    local interface D extends B, C {} 
} 

is mapped to:

Python
class A(object):
    ...
class B(A):
    ...
class C(A):
    ...
class D(B, C):
    ...

  • No labels