FGPropertyNode

class jsbsim.FGPropertyNode

A node in a property tree.

get_attribute(attr: Attribute) bool

Check a single mode attribute for the property node.

get_double_value() float

Get the property value.

Returns:

The property value as a double.

get_fully_qualified_name() str

Get the fully qualified name of a node.

This function is very slow, so is probably useful for debugging only.

get_name() str

Get the node’s simple name as a string.

get_node(path: str, create: bool = False) SGPropertyNode | None

Get a pointer to another node by relative path.

Parameters:
  • path – The relative path from the node.

  • create – True to create the node if it doesn’t exist.

Returns:

The node, or None if it does not exist.

set_attribute(attr: Attribute, state: bool) None

Set a single mode attribute for the property node.

set_double_value(value: float) bool

Set the property value.

Parameters:

value – The new value.

Returns:

True if the assignment succeeded, False otherwise.