Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ package MySeooc
import ScoreReq

ScoreReq.FailureMode FM_001 {
guideword = ScoreReq.GuideWord.LossOfFunction
guideword = [ScoreReq.GuideWord.LossOfFunction]
description = "Key-value store returns stale data after power loss"
failureeffect = "Incorrect system state at startup"
safety = ScoreReq.Asil.B
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package SampleLibrary
import ScoreReq

ScoreReq.FailureMode SampleFailureMode{
guideword = ScoreReq.GuideWord.LossOfFunction
guideword = [ScoreReq.GuideWord.LossOfFunction]
description = "SampleFailureMode takes over the world"
failureeffect = "The world as we know it will end"
version = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ enum Status {
///////////////////////////////

abstract type Requirement "Base type for all S-CORE requirements." {
description "The normative requirement text. Must express an obligation (shall/should)."
description "Detailed description of this element."
Markup_String
version "Monotonically increasing version counter. Increment on every content change."
Integer
Expand Down Expand Up @@ -145,15 +145,13 @@ enum GuideWord "HAZOP-style guide words used to categorize failure mode." {

}

type FailureMode "A potential failure of a system function, described using a HAZOP guide word." extends ScoreReq.RequirementSafety {
guideword "HAZOP guide word classifying the nature of this failure."
GuideWord
type FailureMode "A potential failure of a system function, described using one or more HAZOP guide words." extends ScoreReq.RequirementSafety {
guideword "One or more HAZOP guide words classifying the nature of this failure."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand why we should allow multiple guidewords? and if we really want to allow multiple, we should name it guidewords

GuideWord[1 .. *]
failureeffect "Description of the consequence of this failure mode on the system or its users."
String
rationale "Explanation of why this failure mode is considered relevant."
optional String
potentialcause "Description of the root cause or triggering condition for this failure mode."
optional String
interface "The system interface or signal that is affected by this failure mode."
optional String
}
Expand Down Expand Up @@ -181,22 +179,3 @@ type AoU "Assumption of Use — a safety-relevant condition that a caller must f

// abstract type StdReq extends Requirement {
// }


///////////////////////////////
// Checks
///////////////////////////////

checks Requirement {

not matches(description, "(shall|should)"),
warning "The description must include (shall|should)",
description

}

checks AssumedSystemReq {

rationale != null implies len(rationale) >= 5, "rationale too short"

}
Loading