MCPcopy Create free account
hub / github.com/STIXProject/python-stix / add_course_of_action

Method add_course_of_action

stix/core/stix_package.py:159–166  ·  view source on GitHub ↗

Adds an :class:`.CourseOfAction` object to the :attr:`courses_of_action` collection.

(self, course_of_action)

Source from the content-addressed store, hash-verified

157 self.threat_actors.append(threat_actor)
158
159 def add_course_of_action(self, course_of_action):
160 """Adds an :class:`.CourseOfAction` object to the
161 :attr:`courses_of_action` collection.
162
163 """
164 if self.courses_of_action is None:
165 self.courses_of_action = CoursesOfAction()
166 self.courses_of_action.append(course_of_action)
167
168 def add_exploit_target(self, exploit_target):
169 """Adds an :class:`.ExploitTarget` object to the

Callers

nothing calls this directly

Calls 1

CoursesOfActionClass · 0.70

Tested by

no test coverage detected