Convert annotations to requirement objects
converts a Simulink® or a Stateflow® annotation myReq
= slreq.convertAnnotation(myAnnotation
,myDestination
)myAnnotation
into a requirement
myReq
and stores it in a destination entity
myDestination
.
converts a Simulink or a Stateflow annotation myReq
= slreq.convertAnnotation(myAnnotation
,myDestination
,Name,Value
)myAnnotation
into a requirement
myReq
and stores it in a destination entity
myDestination
using additional options specified by one or
more Name, Value
pair arguments.
% Find all annotations in a Simulink model allAnnotations = find_system('controller_Model', 'FindAll', ... 'on', 'type', 'annotation'); % Create a new requirements set newReqSet = slreq.new('myNewReqSet'); % Convert one annotation into a requirement newReq % and add it to newReqSet newReq = slreq.convertAnnotation(allAnnotations(1), ... newReqSet);