@verify_status([STATUS.LOADED])
    def check_requirements(self):
        """ Checks that all requirements are available and accessable in calvinsys """
        # Check the runtime and calvinsys execution access rights
        # Note when no credentials set no verification done
        if hasattr(self, 'sec') and not self.sec.check_security_actor_requirements(['runtime'] +
                                            (self.requires if hasattr(self, "requires") else [])):
            _log.debug("Security check on actor requirements failed")
            raise Exception('actor calvinsys security requirement not fullfilled')
        # Check availability of calvinsys subsystems
        if hasattr(self, "requires"):
            for req in self.requires:
                if not self._calvinsys.has_capability(req):
                    raise Exception("%s requires %s" % (self.id, req))
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actor/actor.py/Actor.check_requirements/original