1 / 38

Illinois Institute of Technology

Illinois Institute of Technology. CS487 Software Engineering Requirements II- part B Instructor David Lash. Example of Modality and Cardinality. Example of ERD. Creating ERDs.

lars-franks
Download Presentation

Illinois Institute of Technology

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Illinois Institute of Technology CS487 Software Engineering Requirements II- part B Instructor David Lash

  2. Example of Modality and Cardinality

  3. Example of ERD

  4. Creating ERDs • Take each “things” (e.g., car, contact list) mentioned in requirements and ask about relationships to other things • Object-relationship pairs and therefore identified • Explore the carinality and modality of that relationship • Repeat for each object identified • Review the objects and establish attributes • Form the ERD and review

  5. ERD II example - Homesafe • Enables homeowner (HW) to config security system (SS),during install • HS monitors all sensors connected to SS • HS interacts with HW via Keypad on cntl panel (CP) • CP is used to program system • Each sensor (SEN)is assigned a # and type • A master passwd is programmed, Tel number are input for dialing on Sensor event (SEN) • on SEN event, alarm invoked & SS dials phone number, and gives info to (MS) monitoring Service • CP has keyboard input stuff

  6. ERD II example - Homesafe

  7. ERD II example - Derived Relationships • SS monitors sensor • SS enables/disables sensor • SS tests sensor • SS program sensor • Attributes of Sensor has type, internal id, zone location, alarm level

  8. ERD II example - Homesafe

  9. High-Level Modeling Tools • System Modeling • System Context Diagram • Partitioning • Data Modeling • Entity-Relation - Data objects and their relationships • Information flow diagrams • Data flow diagrams - how data transforms in system- how functions transform data • Control Specifications • State diagrams - how system behaves as result of external events .

  10. Data Flow Diagrams ( Information Flow ) • A graphical technique that depicts information flow and the transforms that are applied as data moves from input to output. • Input can be sensor, human operator, web page input, hardware • Transformation can be logical comparison, numerical algorithm, graphic algorithm, • Output can be LED, web page, report, effect on hardware

  11. Data Flow Diagram (Divide Operation) Level 0 DF (fundamental) diagram represents system with 1 bubble

  12. Data Flow Diagram(Symbols) Process (Data Transformation) External Entity (I/O Src/Dest) Data Store (all or part of the information store) External Thing System External Thing External Thing

  13. Data Flow Diagram (Data Flows or Connectors)

  14. Level 0 Data Flow Input Data

  15. Level 0 Data Flow

  16. Level 0 Data Flow (Interactive System)

  17. Data Flow Diagram (Divide Operation)

  18. Level 1 - Data Flow (Major Process Operators)

  19. Guidelines for building a Data Flow Diagram 1. Show the first level (level 0) as a single process with all of its external inputs and outputs sources. 2. Primary input and output should be carefully noted. 3. Refinement begins by isolating candidate processes. 4. All data flows and symbols should be labeled with meaningful names. 5. Information flow continuity must be maintained. (within the refinement) 6. One bubble at a time is expanded. 7. Record all components in the data dictionary.

  20. Level N Data Flow (Detailed Process to Transform)

  21. Data-Flow Example R.S. Pressman, Ph.D. Software Engineering: A Practitioner’s Approach. McGraw-Hill, New York, New York. 1997. p. 377

  22. Level 1 - introduce process and data store R.S. Pressman, Ph.D. Software Engineering: A Practitioner’s Approach. McGraw-Hill, New York, New York. 1997. p. 378

  23. Level 2 - Show more detail for each level 1 process (monitor sensors) R.S. Pressman, Ph.D. Software Engineering: A Practitioner’s Approach. McGraw-Hill, New York, New York. 1997. p. 379

  24. Behavioral Modeling • Behavior is the observable effects of an event, including its results. • Control flow diagramming • An extension to data flow diagramming • Adds events to the data model • State transition diagrams • More traditional behavior model. • Useful for a variety of applications.

  25. State Diagram • A state diagram illustrates how the system moves from state to state. For example • monitoring state -> alarm state -> monitoring state (homesafe) • What events trigger the change in state? • Sense danger, reset alarm • A state diagram shows the state machine • State Machine • A behavior that specifies the sequences of states an object goes through during its lifetime in response to events, together with its responses to those events

  26. What is the scientific base for state-machine? Conservation of Momentum Law When the resultant external force acting on a system is zero, the total momentum of the system remains constant.

  27. What are the components of a state machine? • States • Any observable mode of behavior. • A condition or situation during the life of an object during which it satisfies some condition, performs some activity or waits for some event. • Description is contained in a data dictionary. Name

  28. What are the components of a state machine? • Transitions • A relationship between two states indicating that an object in the first state will perform certain actions and enter the second state when a specified event occurs and specified conditions are satisfied. (Event & Conditions)

  29. Types of state transition diagrams • Action on transition • Actions are performed on event transition • On the diagram that is where the actions are defined. • Events, Conditions and Actions are described in the data dictionary. (Event & Conditions): Action(s)

  30. Example of action on transition

  31. Types of state-transition diagrams. • Action on state entry • Actions are performed when a state is entered. • Transitions carry optional data and not actions. • States, events, conditions and data are described in the data dictionary. State Name (Event & Condition): Data Action(s)

  32. Parser Example • Given a text (stored on a file) consisting of words separated by SPACE characters or by CR (new line) characters, a program is supposed to read the text and suppress all extra SPACE characters according to the following rules: • Words should be separated only by one SPACE character, • Between a word and CR character there should be no SPACE character, • New line cannot start with a SPACE character, • Program terminates on EOF (End of File) character.

  33. Example • Processing States • New Line. Last character was a CR or beginning of process. • Word. Last character is not a space or CR. • Space. Last character is a space. • End-of-file.

  34. Example • Events (must be account for in each state) • End-of-file indicator • NL Character • Space Character • Text Characters

  35. Example • Actions • Read Next • Store Word • Set Error • List Stored Words

  36. State Diagram Example

  37. Analysis Modeling • Software models must represent: • the information that the sftwr acts on • the function that enable action • and overall system behavior • Requirements Models Roles: • Understand the information, function, behavior and information in the system • Focal Point for the review - Avoids lots of wrds help deal with complexity of problem • Become foundation for design process

  38. High-Level Modeling Tools • System Modeling • System Context Diagram • Partitioning • Data Modeling • Entity-Relation - Data objects and their relationships • Information flow diagrams • Data flow diagrams - how data transforms in system- how functions transform data • Control Specifications • State diagrams - how system behaves as result of external events.

More Related