(self, prefix_root=None, as_list=False)
The prefix for identifiers belonging to this scope.

    Args:
      prefix_root: (optional) A `NameScope` object to be treated as root
        for the purpose of calculating the prefix. If `None` then no prefix
        is produced.
      as_list: (optional) A boolean, if `True` return the list of prefix
        components. If `False`, return the full prefix string separated by
        `mjcf.constants.PREFIX_SEPARATOR`.

    Returns:
      The prefix string.
The prefix for identifiers belonging to this scope.
The prefix for identifiers belonging to this scope .
def full_prefix(self, prefix_root=None, as_list=False):
    """The prefix for identifiers belonging to this scope.

    Args:
      prefix_root: (optional) A `NameScope` object to be treated as root
        for the purpose of calculating the prefix. If `None` then no prefix
        is produced.
      as_list: (optional) A boolean, if `True` return the list of prefix
        components. If `False`, return the full prefix string separated by
        `mjcf.constants.PREFIX_SEPARATOR`.

    Returns:
      The prefix string.
    """
    prefix_root = prefix_root or self
    if prefix_root != self and self._parent:
      prefix_list = self._parent.full_prefix(prefix_root, as_list=True)
      prefix_list.append(self._name)
    else:
      prefix_list = []
    if as_list:
      return prefix_list
    else:
      if prefix_list:
        prefix_list.append('')
      return constants.PREFIX_SEPARATOR.join(prefix_list)
def full_prefix ( self , prefix_root = None , as_list = False ) : prefix_root = prefix_root or self if prefix_root != self and self . _parent : prefix_list = self . _parent . full_prefix ( prefix_root , as_list = True ) prefix_list . append ( self . _name ) else : prefix_list = [ ] if as_list : return prefix_list else : if prefix_list : prefix_list . append ( '' ) return constants . PREFIX_SEPARATOR . join ( prefix_list )