Esempio n. 1
0
    def nodes(self):
        """
        Return a list of cached Node resources this Map contains.
        :return: A list of Node resources.
        :rtype: list

        :raise: UndefinedFieldError if this resource's internal cache has not been initialized.
        """
        if self._edges is not None:
            return self._nodes
        else:
            raise exceptions.UndefinedFieldError(
                "You must call refresh() before this can be updated.")
Esempio n. 2
0
    def survey_poses(self):
        """Return a list of cached SurveyPose resources this Map contains.

        :return: A list of SurveyPose resources.
        :rtype: :class:`~__builtin__.list`

        :raise UndefinedFieldError: if this resource's internal cache has not been initialized.
        """
        if self._survey_poses is not None:
            return self._survey_poses
        else:
            raise exceptions.UndefinedFieldError(
                "You must call refresh() before this can be updated.")