Hi,
I am Looking for an easy way to display in a FMEA table the corresponding ASIL of the traced safety-goal of an element.
Is there a way to use OCL?
Hi Sven,
great to have you back here in the forum.
"Traced-safety-goals" are really goals with medini traces to the element?
I think that should be in OCL:
self.element.oclAsType(sysml::SysMLElement).mediniGetTracedElements(safetygoals::SafetyGoal)
That at least lists all safety goals. Now to the ASIL:
self.element.oclAsType(sysml::SysMLElement).mediniGetTracedElements(safetygoals::SafetyGoal).oclAsType(safetygoals::SafetyGoal).asil
Nice thing with OCL is that you can obtain a list of objects and access an attribute of all objects at once.
Happy Scripting
Jan
Thanks. It works fine.
Just a few remarks from my side: Usually the ASIL for the elements of the architecture would be derived by medini using a more complex algorithm by triggering "Safety-> Compute ASIL ...". This takes into account the ASIL of all the requirements allocated to the architecture elements as well as freedom of interference and independence based rules. If this is used by you, you would have to read-out the appropriate property of self.element (something like ISO26262_asil?).
Also even if you use a direct trace between a component and a Safety Goal in your models and use the script as proposed by Jan you may have to check/handle the case where multiple safety goals with different ASIL are traced to a system element ...
Eckhardt