slacm.instance module

Created on Sep 19, 2020

@author: esdev

class slacm.instance.Instance(parent, model)[source]

Bases: object

Class to represent a component instance

finalize()[source]

Executhe the ‘finalize’ phase of component initialization by instructing the component thread.

getActor()[source]

Returns the parent actor object

get_netInfo()[source]

Returns the network information object

get_next_index()[source]

Returns the next port index

is_local(message)[source]

Returns True if the message is ‘host local’ for the parent actor.

load()[source]

Load the component implementation code, or retrieve it from the cache.

property modules

Dictionary to maintain the loaded modules.

recvResp()[source]

Receive response from the component thread

sendCommand(arg)[source]

Send a command to the component thread

setup()[source]

Execute the ‘setup’ phase of component initialization. Create command socket, launch component thread, and instruct it to execute the ‘setup’.

start()[source]

Instruct the component thread to run user code.

stop()[source]

Instruct the component thread to stop running user code and terminate.