as2fm.scxml_converter.scxml_entries.scxml_executable_entries.ScxmlAssign

class as2fm.scxml_converter.scxml_entries.scxml_executable_entries.ScxmlAssign(location: str, expr: str | BtGetValueInputPort)

Bases: ScxmlBase

This class represents a variable assignment.

__init__(location: str, expr: str | BtGetValueInputPort)

Methods

__init__(location, expr)

as_plain_scxml(_)

Convert the object to its plain SCXML version.

as_xml()

Convert the object to an XML element.

check_valid_ros_instantiations(_)

Check if the ros instantiations have been declared.

check_validity()

Check if the object is valid.

from_xml_tree(xml_tree)

Create a ScxmlAssign object from an XML tree.

get_body()

Get the body of the object.

get_data_model()

Get the data model of the object.

get_expr()

Get the expression to assign.

get_id()

Get the ID of the object.

get_location()

Get the location to assign.

get_states()

Get the states of the object.

get_tag_name()

Get the tag name of the XML element.

instantiate_bt_events(_, __)

This functionality is not needed in this class.

set_callback_type(cb_type)

Set the cb type for this assignment.

update_bt_ports_values(bt_ports_handler)

Update the values of potential entries making use of BT ports.

as_plain_scxml(_) ScxmlAssign

Convert the object to its plain SCXML version.

as_xml() Element

Convert the object to an XML element.

check_valid_ros_instantiations(_) bool

Check if the ros instantiations have been declared.

check_validity() bool

Check if the object is valid.

static from_xml_tree(xml_tree: Element) ScxmlAssign

Create a ScxmlAssign object from an XML tree.

Parameters:
  • xml_tree – The XML tree to create the object from.

  • cb_type – The kind of callback executing this SCXML entry.

get_body()

Get the body of the object.

get_data_model()

Get the data model of the object.

get_expr() str | BtGetValueInputPort

Get the expression to assign.

get_id() str

Get the ID of the object.

get_location() str

Get the location to assign.

get_states()

Get the states of the object.

static get_tag_name() str

Get the tag name of the XML element.

instantiate_bt_events(_, __) ScxmlAssign

This functionality is not needed in this class.

set_callback_type(cb_type: CallbackType) None

Set the cb type for this assignment.

update_bt_ports_values(bt_ports_handler: BtPortsHandler) None

Update the values of potential entries making use of BT ports.