as2fm.scxml_converter.scxml_entries.bt_utils.BtPortsHandler

class as2fm.scxml_converter.scxml_entries.bt_utils.BtPortsHandler

Bases: object

Collector for declared BT ports and their assigned value.

__init__()

Methods

__init__()

check_port_name_allowed(port_name)

Check if the port name is allowed.

declare_in_port(port_name, port_type)

Add an input port to the handler.

declare_out_port(port_name, port_type)

Add an output port to the handler.

get_in_port_value(port_name)

Get the value of an input port.

get_out_port_value(port_name)

Get the value of an output port.

get_port_value(port_name)

Get the value of a port.

in_port_exists(port_name)

Check if an input port exists.

out_port_exists(port_name)

Check if an output port exists.

set_port_value(port_name, port_value)

Set the value of a port.

static check_port_name_allowed(port_name: str) None

Check if the port name is allowed.

declare_in_port(port_name: str, port_type: str) None

Add an input port to the handler.

declare_out_port(port_name: str, port_type: str) None

Add an output port to the handler.

get_in_port_value(port_name: str) str

Get the value of an input port.

get_out_port_value(port_name: str) str

Get the value of an output port.

get_port_value(port_name: str) str

Get the value of a port.

in_port_exists(port_name: str) bool

Check if an input port exists.

out_port_exists(port_name: str) bool

Check if an output port exists.

set_port_value(port_name: str, port_value: str) None

Set the value of a port.