as2fm.scxml_converter.scxml_entries.scxml_bt_base.BtGenericStatusSend
- class as2fm.scxml_converter.scxml_entries.scxml_bt_base.BtGenericStatusSend
 Bases:
ScxmlSendSend a generic response to a BT parent node.
- __init__()
 Construct a new ScxmlSend object.
- Parameters:
 event – The name of the event sent when executing this entry.
params – The parameters to send as part of the event.
target_automaton – The target automaton for this send event.
Methods
__init__()Construct a new ScxmlSend object.
append_param(param)as_plain_scxml(struct_declarations, ...)Convert the object to its plain SCXML version.
as_xml()Convert the object to an XML element.
Check if the ros instantiations have been declared.
Check if the object is valid.
from_xml_tree(xml_tree, custom_data_types, ...)External interface to create a ScxmlBase object from an XML tree.
from_xml_tree_impl(xml_tree, _)Create a ScxmlSend object from an XML tree.
generate_bt_event_name(instance_id)Generate the plain scxml event associated to the BT Transition instance_id.
get_body()Get the body of the object.
Get the container with custom data types.
Get the event to send.
get_id()Get the ID of the object.
Get the parameters to send.
Get the tag name of the XML element.
Get the target automata associated to this send event.
Get the xml_element this object was made from.
We do not expect reading from BT Ports here.
instantiate_bt_events(instance_id, _)Instantiate the behavior tree events in the send action, if available.
Check if the object is compatible with the plain SCXML standard.
Replace all string literals in the contained expressions.
set_callback_type(cb_type)Set the cb type for this entry and its children.
set_custom_data_types(custom_data_types)Save container with custom data types.
set_target_automaton(target_automaton)Set the target automata associated to this send event.
set_xml_origin(xml_origin)Set the xml_element this object was made from.
update_bt_ports_values(bt_ports_handler)Update the values of potential entries making use of BT ports.
- as_plain_scxml(struct_declarations: ScxmlStructDeclarationsContainer, ros_declarations: ScxmlRosDeclarationsContainer) List[ScxmlSend]
 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.
- classmethod from_xml_tree(xml_tree: _Element, custom_data_types: Dict[str, StructDefinition], **kwargs) Self
 External interface to create a ScxmlBase object from an XML tree.
- classmethod from_xml_tree_impl(xml_tree: _Element, _: Dict[str, StructDefinition]) BtGenericStatusSend
 Create a ScxmlSend 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.
- classmethod generate_bt_event_name(instance_id: int)
 Generate the plain scxml event associated to the BT Transition instance_id.
- get_body()
 Get the body of the object.
- get_custom_data_types() Dict[str, StructDefinition]
 Get the container with custom data types.
- get_event() str
 Get the event to send.
- get_id() str
 Get the ID of the object.
- get_params() List[ScxmlParam]
 Get the parameters to send.
- classmethod get_tag_name()
 Get the tag name of the XML element.
- get_target_automaton() str | None
 Get the target automata associated to this send event.
- get_xml_origin() _Element | None
 Get the xml_element this object was made from.
- has_bt_blackboard_input(_) bool
 We do not expect reading from BT Ports here. Return False!
- instantiate_bt_events(instance_id: int, _) List[ScxmlAssign | ScxmlIf | ScxmlSend]
 Instantiate the behavior tree events in the send action, if available.
- is_plain_scxml() bool
 Check if the object is compatible with the plain SCXML standard.
- replace_strings_types_with_integer_arrays() ScxmlSend
 Replace all string literals in the contained expressions.
- set_callback_type(cb_type: CallbackType) None
 Set the cb type for this entry and its children.
- set_custom_data_types(custom_data_types: Dict[str, StructDefinition])
 Save container with custom data types.
- set_target_automaton(target_automaton: str) None
 Set the target automata associated to this send event.
- set_xml_origin(xml_origin: _Element)
 Set the xml_element this object was made from.
- update_bt_ports_values(bt_ports_handler: BtPortsHandler)
 Update the values of potential entries making use of BT ports.