YOMEDIA
ADSENSE
Chương 9: Modeling What Could Go Wrong: Risk Analysis on Goal Models
75
lượt xem 5
download
lượt xem 5
download
Download
Vui lòng tải xuống để xem tài liệu đầy đủ
Completeness is highly desirable for missioncritical goals, Obstacle analysis may help elicit relevant domain properties...
AMBIENT/
Chủ đề:
Bình luận(0) Đăng nhập để gửi bình luận!
Nội dung Text: Chương 9: Modeling What Could Go Wrong: Risk Analysis on Goal Models
- Building System Models for RE Chapter 9 Modeling What Could Go Wrong: Risk Analysis on Goal Models www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons
- Building models for RE Chap.8: Goals Chap.9: Risks why ? how ? Chap.10: Conceptual objects Chap.11: Agents who ? on what? www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 2
- Risk analysis as seen in Chapter 3 Risk = uncertain factor whose occurrence may result in loss of satisfaction of corresponding objective – has likelihood & consequences (each having likelihood, severity) Poor risk management is a major cause of software failure Early risk analysis at RE time: Risk Risk Risk control identification assessment checklists, qualitative, explore countermeasures component inspection, (tactics), quantitative risk trees select best as new reqs www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 3
- Risk analysis can be anchored on goal models www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 4
- Risk analysis on goal models: outline Goal obstruction by obstacles – What are obstacles? – Completeness of a set of obstacles – Obstacle categories Modeling obstacles – Obstacle diagrams – Obstacle refinement – Bottomup propagation of obstructions in goal ANDrefinements – Annotating obstacle diagrams Obstacle analysis for a more robust goal model – Identifying obstacles – Evaluating obstacles – Resolving obstacles in a modified goal model www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 5
- What are obstacles ? Motivation: goals in refinement graph are often too ideal, likely to be violated under abnormal conditions (unintentional or intentional agent behaviors) Obstacle = condition on system for violation of corresponding assertion (generally a goal) • {O, Dom } |= not G obstruction • {O, Dom } |≠ false domain consistency • O can be satisfied by some system behavior feasibility e.g. G: TrainStoppedAtBlockSignal If StopSignal If Dom: If TrainStopsAtStopSignal then DriverResponsive If then O: DriverUnresponsive For behavioral goal: existential property capturing unadmissible behavior (negative scenario) www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 6
- Completeness of a set of obstacles Ideally, a set of obstacles to G should be complete {not O1,..., not On, Dom } |= G domain completeness e.g. If not DriverUnresponsive and not BrakeSystemDown and StopSignal If not and not and then TrainStoppedAtBlockSignal then Completeness is highly desirable for missioncritical goals ... ... but bounded by what we know about the domain ! Obstacle analysis may help elicit relevant domain properties www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 7
- Obstacle categories for heuristic identification Correspond to goal categories & their refinement ... Hazard obstacles obstruct Safety goals Threat obstacles obstruct Security goals – Disclosure, Corruption, DenialOfService, ... Inaccuracy obstacles obstruct Accuracy goals Misinformation obstacles obstruct Information goals – NonInformation, WrongInformation, TooLateInformation, ... Dissatisfaction obstacles obstruct Satisfaction goals – NonSatisfaction, PartialSatisfaction, TooLateSatisfaction, ... Unusability obstacles obstruct Usability goals Goal ... Functional goal Non-functional goal Satis faction Inform ation Stim -Respons e Quality of service Com pliance Architectural Developm ent Accuracy Maintainability Safety Security Reliability Performance Interface Installation Distribution Cost Deadline Variability Cos t User Device Software C o n f i d e n t ia l i t y Integrity Availability Tim e Space interaction interaction interoperability Us a b i l i t y Convenience www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 8
- Risk analysis on goal models: outline Goal obstruction by obstacles – What are obstacles? – Completeness of a set of obstacles – Obstacle categories Modeling obstacles – Obstacle diagrams – Obstacle refinement – Bottomup propagation of obstructions in goal ANDrefinements – Annotating obstacle diagrams Obstacle analysis for a more robust goal model – Identifying obstacles – Evaluating obstacles – Resolving obstacles in a modified goal model www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 9
- Obstacle diagrams as AND/OR refinement trees Anchored on leafgoals in goal model (unlike risk trees) – root = not G – obstacle ANDrefinement, ORrefinement: same semantics as goals – leaf obstacles: feasibility, likelihood, resolution easier to determine TrainStoppedAtBlockEntry If StopSignal obstruction r oot obstacle StopSignal And Not TrainStoppedAtBlockEntry O R-refinement … obstacle Signal NotVisible DriverUnresponsive BrakeSystemDown r esolution countermeasure goal ResponsivenessCheck SentRegularly www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 10
- Obstacle diagrams as AND/OR refinement trees (2) MobilizedAmbulance AtIncidentInTime MobilizedAmbulance Not AtIncidentInTime … AmbulanceStopped AmbulanceLost TrafficDeviation AND-refinement … AmbulanceCrew In-carGPS NotInFamiliarArea NotWorking www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 11
- Obstacle refinement ANDrefinement of obstacle O should be ... – complete: {subO1,..., subOn, Dom } |= O – consistent: {subO1,..., subOn, Dom } |≠ false – minimal: {subO1,..., subOj-1, subOj+1 , ..., subOn, Dom } |= O ORrefinement of obstacle O should be ... – entailments: {subOi, Dom } |= O – domainconsistent: {subOi, Dom } |≠ false – domaincomplete: {not subO1,..., not subOn, Dom } |= not O – disjoint: {subOi, subOj, Dom } |= false If subOi ORrefines O and O obstructs G then subOi obstructs G www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 12
- Obstructions propagate bottomup in goal ANDrefinement trees Cf. De Morgan’s law: not (G1 and G2) equivalent to not G1 or not G2 not G G propagated ob struction G1 G2 not G1 not G2 => Severity of consequences of an obstacle can be assessed in terms of higherlevel goals obstructed www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 13
- Annotating obstacle diagrams DriverUnresponsive annotation Obstacle DriverUnresponsive precise definition Def Situation of a train driver failing to react to a command and take appropriate action according to that command [ FormalSpec ... in temporal logic for analysis, not in this chapter ... ] not [ Category Hazard ] [ Likelihood likely ] [ Criticality catastrophic] features www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 14
- Risk analysis on goal models: outline Goal obstruction by obstacles – What are obstacles? – Completeness of a set of obstacles – Obstacle categories Modeling obstacles – Obstacle diagrams – Obstacle refinement – Bottomup propagation of obstructions in goal ANDrefinements – Annotating obstacle diagrams Obstacle analysis for a more robust goal model – Identifying obstacles – Evaluating obstacles – Resolving obstacles in a modified goal model www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 15
- Obstacle analysis for increased system robustness Anticipate obstacles ... ⇒ more realistic goals, new goals as countermeasures to abnormal conditions ⇒ more complete, realistic goal model Obstacle analysis: For selected goals in the goal model ... – identify as many obstacles to it as possible; – assess their likelihood & severity; – resolve them according to likelihood & severity => new goals as countermeasures in the goal model www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 16
- Obstacle analysis and goal model elaboration are intertwined data dependency Goal model elaboration Obstacle Obstacle Obstacle assessment identification resolution Goalobstacle analysis loop terminates when remaining obstacles can be tolerated – unlikely or acceptable consequences Which goals to consider in the goal model? – leafgoals (requirements or expectations): easier to refine what is wanted than what is not wanted (+ uppropagation in goal model) – based on annotated Priority & Category (Hazard, Security, ...) www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 17
- Identifying obstacles For obstacle to selected assertion G (goal, hypothesis, suspect dom prop) ... negate G; {=> root obstacle} find AND/OR refinements of not G in view of valid domain properties ... {according to desired extensiveness} ... until reaching obstruction preconditions whose feasibility, likelihood, severity, resolvability is easy to assess = goalanchored construction of risktree Obstacle Obstacle Obstacle identification assessment resolution www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 18
- Identifying obstacles: tautologybased refinement Goal negation as root => use tautologies to drive refinements e.g. not (A and B) amounts to not A or not B and or not not (A or B) amounts to not A and not B or and not not (if A then B) amounts to A and not B then and not not (A iff B) amounts to (A and not B) or (not A and B) iff and not or and => complete ORrefinements when orconnective gets in www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 19
- Identifying obstacles by tautologybased refinement MotorReversed Iff MovingOnRunway MovingOnRunway MotorReversed Iff WheelsTurning Iff WheelsTurning www.wileyeurope .com/college/van lamsweerde Chap.9: Risk Analysis on Goal Models © 2009 John Wiley and Sons 20
ADSENSE
CÓ THỂ BẠN MUỐN DOWNLOAD
Thêm tài liệu vào bộ sưu tập có sẵn:
Báo xấu
LAVA
AANETWORK
TRỢ GIÚP
HỖ TRỢ KHÁCH HÀNG
Chịu trách nhiệm nội dung:
Nguyễn Công Hà - Giám đốc Công ty TNHH TÀI LIỆU TRỰC TUYẾN VI NA
LIÊN HỆ
Địa chỉ: P402, 54A Nơ Trang Long, Phường 14, Q.Bình Thạnh, TP.HCM
Hotline: 093 303 0098
Email: support@tailieu.vn