technical methods for specifying requirements
Download
Skip this Video
Download Presentation
Technical Methods for Specifying Requirements

Loading in 2 Seconds...

play fullscreen
1 / 11

Technical Methods for Specifying Requirements - PowerPoint PPT Presentation


  • 69 Views
  • Uploaded on

Technical Methods for Specifying Requirements. When to Use Technical Methods.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Technical Methods for Specifying Requirements' - nika


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
when to use technical methods
When to Use Technical Methods
  • If the description of the requirement is too complex for natural language and if you cannot afford to have the specification misunderstood, you should consider writing or augmenting that portion of the requirements set with a “technical methods” approach.
examples of technical methods
Examples of Technical Methods
  • Pseudocode
  • Finite state machines
  • Decision tables and decision trees
  • Activity diagrams (flowcharts)
  • Entity-relationship models
  • And many more
pseudocode
Pseudocode
  • Imperative sentences with a single verb and a single object.
  • A limited set, typically not more that 40-50, of “action-oriented” verbs from which the sentences must be constructed.
  • Decisions represented with a formal IF-ELSE-ENDIF structure.
  • Iterative activities represented with DO-WHILE or FOR-NEXT structures.
pseudocode example
Pseudocode Example

The algorithm for calculating deferred-service revenue earned for any month is:

Set Sum(x)=0

FOR each customer x

IF customer purchased paid support

AND (Current month) >= (2 months after ship date))

AND (Current month) <= (14 months after ship date))

THEN Sum(x)=Sum(x) + (amount customer paid)/12

END

finite state machines
Finite State Machines
  • Sometimes it is convenient to regard the system as a hypothetical machine that can be in only one of a given number of states at any specific time.
  • In response to an input (from the user or an external source) the machine changes state and carries out some action and/or generates an output.
  • Both the output and the next state can be determined solely based on understanding the current state and the event that caused the transition.
example of a state transition diagram
Example of a State Transition Diagram

Light burned out

Even Lit

Even Lit/ LOUT

Off

Off

OFF

On

Count

Count

1 sec

1 sec

Off

Off

Odd Lit

Odd Lit/ LOUT

Light burned out

decision tables and decision trees
Decision Tables and Decision Trees
  • When a requirement deals with a combination of inputs and different combinations of those inputs lead to different behaviors or outputs, decision tables or decision trees can be helpful.
activity diagrams
Activity Diagrams
  • Flowcharts and UML Activity Diagrams are understandable by most people.
  • They present the same information that can be given in pseudo code, but they show it visually.
entity relationship diagrams
Entity-Relationship Diagrams
  • They are useful for showing the relationships among data within the system.
  • ERDs focus on the external behaviors of the system.
  • They can be difficult for nontechnical readers to understand.
ad