pymasep.application.connected_sub_app_info

Classes

ConnectedSubAppInfo

Information of a sub application connected to another one.

Module Contents

class pymasep.application.connected_sub_app_info.ConnectedSubAppInfo(sub_app_id, role, msg_queue=None, agent_fname=None)

Information of a sub application connected to another one.

Parameters:
  • sub_app_id (str) – the id of the connected sub app.

  • role (str) – the role of the connected sub app. See ROLE_* bellow for more information.

  • msg_queue (queue.Queue) – the queue to send messages (in the case of intra process sub app).

  • agent_fname (str) – the agent fullname managed by the sub app (for interface connected sup app, None otherwise).

ROLE_NONE = 'None'

No role. Testing only

ROLE_OBSERVER = 'Observer'

The connected sub app is an Interface as observer. No action cannot be send to engine.

ROLE_ACTOR = 'Actor'

The connected sub app is an Interface as actor. Engine will take into account the action send.

ROLE_SERVER = 'Server'

The connected sub app is the engine

id: str

the id of the connected sub app

role: str

The role of the connected sub app

queue: queue.Queue

The queue to send message (for the case of intra process sub app)

agent_fname

The agent fullname managed by the sub app (for interface)

last_info_sent

data about sent information to this sub_app by the engine