SSHA Subsystem Hazard Analysis
SSHA Subsystem Hazard Analysis
Leveson − 185
Requirements
Subsystem Hazard Analysis (SSHA)
c
Leveson − 186
Requirements
Requirements Topics
Intent Specifications
Analyzing Requirements
c
Leveson − 188
Requirements
Intent Specifications
Based on
Research in how experts solve problems
Basic principles of system engineering
Goals
Enhance communication and review
Capture domain knowledge and design rationale
Integrate safety information into decision−making
environment
Provide traceability from requirements to design to code
For verification and validation
To support change and upgrade process
c
Leveson − 189
Requirements
7 levels:
Represent different views of system (not refinement)
From different perspectives
To support different types of reasoning
c
Leveson − 190
Requirements
Part−Whole
Refinement
Verification
Environment Operator System Validation
Level 0: Program
Management
(Management View)
Level 1: System
Purpose
(Customer View)
Level 4: Design
Representation (Component Designer View)
Level 5: Physical
Representation (Component Implementer View)
Level 6: System
Operations (Operations View)
c
Leveson − 191
Requirements
c
Leveson − 193
Requirements
Measured
Sensors variables Process
inputs
Human
Supervisor Automated
Controller Controlled Disturbances
Model of Controls
Process
Process
Model of
Displays Process
Model of
Automation
Process
Actuators outputs
Controlled
variables
c
Leveson − 194
Example of a State Machine Model Requirements
Water
Reading at set point / level
Close drain pipe high
Reading at setpoint /
Turn off pump Water High reading /
level at
setpoint Open drain pipe
c
Leveson − 195
Requirements
cruise control
turned on /
initialize cc Cruise
Cruise Control On
and in
Control Standby increase speed commanded /
Off Mode send command to throttle
to increase at X rate
Maintaining
Speed
c
Leveson − 197
Requirements
Blackbox specifications
Start from a "blackbox" statement of software behavior:
Includes externally visible behavior only
Internal design decisions are not included.
Simplifies the specification and review by system experts
Specify:
Outputs
Triggers for outputs (externally observable conditions or
events)
(not just inputs, e.g., may want to trigger an output
on the passage of time)
c
Leveson − 198
Requirements
Measured
Sensors variables Process
inputs
Automated
Controller Controlled
Disturbances
Process
Model of
Process
Process
Actuators outputs
Controlled
variables
c
Leveson − 199
Requirements
I/O
c
Leveson − 201
Requirements
The maximum time the computer waits before the first input
must be specified.
Criteria:
All information from the sensors should be used somewhere in the
specification.
Legal output values that are never produced should be checked for
potential specification incompleteness.
c
Leveson − 203
Requirements
c
Leveson − 205
Requirements
Nondeterminism Criterion
The behavior of the requirements should be deterministic
(only one possible transition out of a state is applicable at
any time).
X>0
X<2
c
Leveson − 207
Requirements
All inputs must be fully bounded in time and the proper behavior
specified in case the limits are violated.
For the largest interval in which both input and output loads
are assumed and specified, the absorption rate of the output
environment must equal or exceed the input arrival rate.
c
.
Leveson − 209
Requirements
Human−Computer Interface Criteria
c
Leveson − 211
Requirements
Latency Criteria
Latency is the time interval during which receipt of new information
cannot change an output even though it arrives prior to output.
Examples:
There should be an input that the software can use to detect the
effect of any output on the process.
c
Leveson − 213
Requirements
Path Criteria
Paths between states are uniquely defined by the sequence of
trigger events along the path.
REACHABILITY
Required states must be reachable from initial state.
Hazardous states must not be reachable.
REVERSIBILITY
PREEMPTION
c
Leveson − 215
Requirements
Soft and hard failure modes should be eliminated for all hazard
reducing outputs.
Hazard increasing outputs should have both soft and hard failure
modes.
Multiple paths should be provided for state changes that maintain
safety.
Multiple inputs or triggers should be required for paths from safe
to hazardous states.
c
Leveson − 216
Requirements
SpecTRM
Specification Tools and Requirements Methodology
c
Leveson − 217
Requirements
Complete
Can specify everything need to specify
Analyzable
Executable
Formal (mathematical) foundation
Includes human actions
Assists in finding incompleteness
c
Leveson − 218
SpecTRM−RL Requirements
c
Leveson − 219
Requirements
Environment
Sensor
Measured Variable 1
Measured Variable 2
Controller
Control
Control Input CONTROL INFERRED SYSTEM STATE Command Controlled
Supervisor MODES Device
Display Output
CONTROL
Paddles Wheel
MODES
Deployed Deployed
Wait Not deployed Not deployed Torque
Detumble Unknown Unknown Coils
Spinup
Reorient Orbit Optical System
Mission Deploy Wheel
Ops Day Tracking
Acquire Momentum
Night Not tracking
Deploy Paddles Wheel
Unknown Unknown
Orbit Day
Orbit Night
Ground Command
Control Mode
In detumble mode, the wheel actuator shall be controlled such that the wheel maintains the velocity it had upon
entering the mode, and the magnetic moment along the Y axis shall be controlled to minimize the angular velocity
about the X and Z axes.
OR
Control Mode Wait T
Detumble T T
Spinup T T
Ground Control T
State Values Time since entered wait >= 10 sec T
Time since entered detumble < 100 sec T F
xz momentum error > xz momentum error threshold T T T
Time since entered spinup >= 100 sec T T
Paddles in−state deployed F
Optical system in−state tracking F
Time since entered ground control >= 10 sec T
c
Leveson − 221
Requirements
Requirements Analysis
Completeness
c
Leveson − 222
Requirements
Completeness Analysis
Output Command
Name
Destination:
Acceptable Values:
Units:
Granularity:
Exception Handling:
Hazardous Values:
Timing Behavior:
Initiation Delay:
Completion Deadline:
Output Capacity Assumptions:
Load:
Min time between outputs:
Max time between outputs:
Hazardous timing behavior:
Exception−Handling:
Feedback Information:
Variables:
Values:
Relationship:
Min. time (latency):
Max. time:
Exception Handling:
Reversed By:
Comments:
References:
DEFINITION
= ...
c
Leveson − 224
Requirements
Input Value
DEFINITION
= Obsolete
c
Leveson − 226
Requirements
Easily changed
. .
c
Leveson − 227
Requirements
c
Leveson − 228
Requirements
Interactive Visualizations
Pictures or diagrams allowing direct manipulation to
learn more about the thing represented