Skip to content
Loading
  • Viswanatha Swamy
    0
    A few of the elements were missing. I have fixed it. Could you please try this and let me know? Many thanks.
     
    1. xml version="1.0" encoding="UTF-8"?>  
    2. xml-stylesheet type="text/xsl" href="D:\tools\TandF_BITS.xsl"?>  
    3. <book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oasis="http://www.niso.org/standards/z39-96/ns/oasis-exchange/table" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xsi:noNamespaceSchemaLocation="http://jats.nlm.nih.gov/extensions/bits/2.0/xsd/BITS-book-oasis2.xsd">  
    4.   <book-body>  
    5.     <book-part book-part-type="chapter" id="chapter3">  
    6.       <book-part-meta>  
    7.         <title-group>  
    8.           <label>3label>  
    9.           <title>  
    10.             <target target-type="page" id="page_1">1target>Software Design  
    11.           title>  
    12.         title-group>  
    13.       book-part-meta>  
    14.       <body>  
    15.         <list list-type="bullet">  
    16.           <list-item>  
    17.             <p>Software designp>  
    18.           list-item>  
    19.           <list-item>  
    20.             <p>Abstractionp>  
    21.           list-item>  
    22.           <list-item>  
    23.             <p>Modularityp>  
    24.           list-item>  
    25.           <list-item>  
    26.             <p>Software Architecturep>  
    27.           list-item>  
    28.           <list-item>  
    29.             <p>Effective modular design – Cohesion and Couplingp>  
    30.           list-item>  
    31.           <list-item>  
    32.             <p>Architectural design and Procedural designp>  
    33.           list-item>  
    34.           <list-item>  
    35.             <p>Data flow oriented designp>  
    36.           list-item>  
    37.         list>  
    38.         <sec id="sec1_1">  
    39.           <title>Software Designtitle>  
    40.           <list llist-type="bullet">  
    41.             <list-item>  
    42.               <p>Software design encompasses the set of principles, concepts and practices that lead to the development of a high quality system or product.p>  
    43.             list-item>  
    44.             <list-item>  
    45.               <p>Design creates a representation or model of the software, but unlike the requirements model, the design model provides details about software architecture, data structures, interfaces and components that are necessary to implement the system.p>  
    46.             list-item>  
    47.             <list-item>  
    48.               <p>Software design is an iterative process through which requirements are translated into a  ‘ blue print ’ for constructing software.p>  
    49.             list-item>  
    50.           list>  
    51.         sec>  
    52.         <sec id="sec1_2">  
    53.           <title>Design Principlestitle>  
    54.           <list list-type="order">  
    55.             <list-item>  
    56.               <p>Software design should correspond to the analysis model – Design element correspond to many requirements, the design model satisfies all the requirements represented by the analysis model.p>  
    57.             list-item>  
    58.             <list-item>  
    59.               <p>Choose the right programming paradigm – A program paradigmdescribes the structure of the software system. The paradigm should be chosen keeping constraints in mind such as time, availability of resources and nature of user ” s requirements.p>  
    60.             list-item>  
    61.             <list-item>  
    62.               <p>Software design should be flexible – Software design should be flexible enough to adapt changes easily. To achieve the flexibility, the basic design concepts such as abstraction and modularity should be applied effectively.p>  
    63.             list-item>  
    64.             <list-item>  
    65.               <p>Software design should represent correspondence between the software and real – world problem – The software design should be structured in such a way that it always relates with the real-world problem.p>  
    66.             list-item>  
    67.             <list-item>  
    68.               <p>Software reuse – The software components should be designed in such a way that they can be effectively reused to increase the productivity.p>  
    69.             list-item>  
    70.           list>  
    71.         sec>  
    72.         <sec id="sec1_3">  
    73.           <title>Design Conceptstitle>  
    74.           <p>The design concepts help you to answer the following questions –p>  
    75.           <list list-type="order">  
    76.             <list-item>  
    77.               <p>What criteria can be used to partition software into individual components?p>  
    78.             list-item>  
    79.             <list-item>  
    80.               <p>How is function or data structure detail separated from a conceptual representation of the software?p>  
    81.             list-item>  
    82.             <list-item>  
    83.               <p>What uniform criteria define the technical quality of a software design?p>  
    84.             list-item>  
    85.           list>  
    86.           <p>Software design concepts that span both traditional and object-oriented software development are as follows – p>  
    87.         sec>  
    88.         <sec id="sec1_3_1">  
    89.           <title>Abstractiontitle>  
    90.           <list list-type="bullet">  
    91.             <list-item>  
    92.               <p>When you consider a modular solution to any problem, many levels of abstraction can be presented.p>  
    93.             list-item>  
    94.             <list-item>  
    95.               <p>At the highest level of abstraction, a solution is stated in broad terms and at lower levels of abstraction, a more detailed description of the solution is provided.p>  
    96.             list-item>  
    97.             <list-item>  
    98.               <p>As different levels of abstraction are developed, we have to create both procedural and data abstractions.p>  
    99.             list-item>  
    100.           list>  
    101.         sec>  
    102.         <sec id="sec1_3_2">  
    103.           <title>Procedural Abstractiontitle>  
    104.           <list list-type="bullet">  
    105.             <list-item>  
    106.               <p>A Procedural Abstraction refers to a sequence of instructions that have a specific and limited function.p>  
    107.             list-item>  
    108.             <list-item>  
    109.               <p>The name of a procedural abstraction implies these functions, butspecific details are suppressed. Example – ‘ Open for a door ’ – here open implies a long sequence of procedural steps.p>  
    110.             list-item>  
    111.           list>  
    112.         sec>  
    113.         <sec id="sec1_3_3">  
    114.           <title>Data Abstractiontitle>  
    115.           <list list-type="bullet">  
    116.             <list-item>  
    117.               <p>A Data Abstraction is a named collection of data that describes adata object.p>  
    118.             list-item>  
    119.             <list-item>  
    120.               <p>In the context of procedural abstraction open, we can define a data abstraction called door.p>  
    121.             list-item>  
    122.             <list-item>  
    123.               <p>The data abstraction for door would encompass a set of attributesthat describes the door. Example – door type, swing direction, opening mechanism etc.p>  
    124.             list-item>  
    125.           list>  
    126.         sec>  
    127.         <sec id="sec1_4">  
    128.           <title>Architecturetitle>  
    129.           <list list-type="bullet">  
    130.             <list-item>  
    131.               <p>Architecture is the structure or organization of program components (modules), the manner in which these components interact, and the structureof data that are used by the components.p>  
    132.             list-item>  
    133.             <list-item>  
    134.               <p>A set of architectural patterns enables a software engineer to solve common design problems.p>  
    135.             list-item>  
    136.           list>  
    137.         sec>  
    138.         <sec id="sec1_5">  
    139.           <title>Patternstitle>  
    140.           <list list-type="bullet">  
    141.             <list-item>  
    142.               <p>A design pattern describes a design structure that solves a particular design problem within a specific context.p>  
    143.             list-item>  
    144.             <list-item>  
    145.               <p>The design patterns are used to determinep>  
    146.             list-item>  
    147.             <list list-type="alpha-lower">  
    148.               <list-item>  
    149.                 <p>Whether the pattern is applicable to the current workp>  
    150.               list-item>.  
    151.               <list-item>  
    152.                 <p>Whether the pattern can be reusedp>  
    153.               list-item>  
    154.               <list-item>  
    155.                 <p>Whether the pattern can be serve as a guide for developing a similar but functionally or structurally different pattern.p>  
    156.               list-item>  
    157.             list>  
    158.           list>  
    159.         sec>  
    160.         <sec id="sec1_6">  
    161.           <title>Separation of Concernstitle>  
    162.           <list list-type="bullet">  
    163.             <list-item>  
    164.               <p>Separation of concerns is a design concept that suggests that anycomplex problem can be more easily handled if it is subdivided into pieces thatcan each be solved independently.p>  
    165.             list-item>  
    166.             <list-item>  
    167.               <p>A concern is a feature or behavior that is specified as part of the requirements model for the software.p>  
    168.             list-item>  
    169.           list>  
    170.         sec>  
    171.         <sec id="sec1_7">  
    172.           <title>Modularitytitle>  
    173.           <list list-type="bullet">  
    174.             <list-item>  
    175.               <p>Modularity is the most common manifestation of separation of concerns.p>  
    176.             list-item>  
    177.             <list-item>  
    178.               <p>Modularity is the single attribute of software that allows a program to be intellectually manageable.p>  
    179.             list-item>  
    180.             <list-item>  
    181.               <p>Almost all instances, you should break the design into many modules, to make understanding easier and reduce the cost required to build the software.p>  
    182.             list-item>  
    183.             <list-item>  
    184.               <p>The cost to develop an individual software module does decrease as the total number of modules increases.p>  
    185.             list-item>  
    186.             <list-item>  
    187.               <p>However, as the number of modules increases, the cost associated with integrating the modules also increases.p>  
    188.             list-item>  
    189.             <list-item>  
    190.               <p>There is a number M of modules that would result in minimum development cost, but we do not have the necessary sophistication to predict M with assurance.p>  
    191.             list-item>  
    192.             <list-item>  
    193.               <p>You should modularize, but care should be taken to stay in vicinity of M.p>  
    194.             list-item>  
    195.           list>  
    196.           <fig>  
    197.             <caption>  
    198.               <title>Modularitytitle>  
    199.             caption>  
    200.             <graphic xlink:href="Modularity.tif"/>  
    201.           fig>  
    202.         sec>  
    203.         <sec id="sec2">  
    204.           <title>Effective Modular Designtitle>  
    205.           <list list-type="bullet">  
    206.             <list-item>  
    207.               <p>When a software program is modularized, its tasks are divided into several modules based on some characteristics.p>  
    208.             list-item>  
    209.             <list-item>  
    210.               <p>Modules are set of instructions put together in order to achieve some tasks.p>  
    211.             list-item>  
    212.             <list-item>  
    213.               <p>There are measures by which the quality of a design of modules and their interaction among them can be measured.p>  
    214.             list-item>  
    215.             <list-item>  
    216.               <p>These measures are called coupling and cohesion.p>  
    217.             list-item>  
    218.           list>  
    219.         sec>  
    220.         <sec id="sec2_1">  
    221.           <title>Cohesiontitle>  
    222.           <p>Cohesion is a measure that defines the degree of intra – dependability within elements of a module. The greater the cohesion, the better is the program design.p>  
    223.           <p>There are seven types of cohesion, namely – p>  
    224.           <list list-type="bullet">  
    225.             <list-item>  
    226.               <p>Co – incidental cohesion – It is unplanned and random cohesion, which might be the result of breaking the program into smaller modules for the sake of modularization. Because it is unplanned, it may serve confusion to the programmers and is generally not-accepted.p>  
    227.             list-item>  
    228.             <list-item>  
    229.               <p>Logical cohesion – When logically categorized elements areput together into a module, it is called logical cohesion.p>  
    230.             list-item>  
    231.             <list-item>  
    232.               <p>Temporal Cohesion – When elements of module are organized such that they are processed at a similar point in time, it is called temporal cohesion.p>  
    233.             list-item>  
    234.             <list-item>  
    235.               <p>Procedural cohesion – When elements of module are grouped together, which are executed sequentially in order to perform a task, it is called procedural cohesion.p>  
    236.             list-item>  
    237.             <list-item>  
    238.               <p>Communicational cohesion – When elements of module are grouped together, which are executed sequentially and work on same data (information), it is called communicational cohesion.p>  
    239.             list-item>  
    240.             <list-item>  
    241.               <p>Sequential cohesion – When elements of module are grouped because the output of one element serves as input to another and so on, it is called sequential cohesion.p>  
    242.             list-item>  
    243.             <list-item>  
    244.               <p>Functional cohesion – It is considered to be the highest degree of cohesion, and it is highly expected. Elements of module in functional cohesion are grouped because they all contribute to a single well-defined function. It can also be reused.p>  
    245.             list-item>  
    246.           list>  
    247.         sec>  
    248.         <sec id="sec2_2">  
    249.           <title>Couplingtitle>  
    250.           <p>Coupling is a measure that defines the level of inter – dependability among modules of a program. It tells at what level the modules interfere and interact with each other. The lower the coupling, the better the program.p>  
    251.           <p>There are five types of coupling, namely – p>  
    252.           <list list-type="bullet">  
    253.             <list-item>  
    254.               <p>Content coupling – When a module can directly access or modify or refer to the content of another module, it is called content level coupling.p>  
    255.             list-item>  
    256.             <fig>  
    257.               <caption>  
    258.                 <title>Content Couplingtitle>  
    259.               caption>  
    260.               <graphic xlink:href="Content Coupling.tif"/>  
    261.             fig>  
    262.             <list-item>  
    263.               <p>Common coupling – When multiple modules have read and write access to some global data, it is called common or global coupling.p>  
    264.             list-item>  
    265.             <fig>  
    266.               <caption>  
    267.                 <title>Common Couplingtitle>  
    268.               caption>  
    269.               <graphic xlink:href="Common Coupling.tif"/>  
    270.             fig>  
    271.             <list-item>  
    272.               <p>Control coupling – Two modules are called control –coupled if one of them decides the function of the other module or changes itsflow of execution.p>  
    273.             list-item>  
    274.             <list-item>  
    275.               <p>Stamp coupling – When multiple modules share common data structure and work on different part of it, it is called stamp coupling.p>  
    276.             list-item>  
    277.             <fig>  
    278.               <caption>  
    279.                 <title>Stamp Couplingtitle>  
    280.               caption>  
    281.               <graphic xlink:href="Stamp Coupling.tif"/>  
    282.             fig>  
    283.             <list-item>  
    284.               <p>Data coupling – Data coupling is when two modules interactwith each other by means of passing data (as parameter). If a module passes data structure as parameter, then the receiving module should use all its components.p>  
    285.             list-item>  
    286.             <p>Ideally, no coupling is considered to be the best.p>  
    287.           list>  
    288.         sec>  
    289.         <sec id="sec2_3">  
    290.           <title>Architectural Designtitle>  
    291.           <p>Architectural design represents the structure of data and program componentsthat are required to build a computer – based system.p>  
    292.           <p>Architectural design begins with data design and then proceeds to the derivation of one or more representations of the architectural structure of the system.p>  
    293.           <p>The architectural design can be represented using one or more of an number of different models – p>  
    294.           <list list-type="order">  
    295.             <list-item>  
    296.               <p>Structural Models – represent architecture as an organizedcollection of program components.p>  
    297.             list-item>  
    298.             <list-item>  
    299.               <p>Framework Models – identify repeatable architectural design frameworks that are encountered in similar types of applications.p>  
    300.             list-item>  
    301.             <list-item>  
    302.               <p>Dynamic Models – address the behavioral aspects of the program architecture.p>  
    303.             list-item>  
    304.             <list-item>  
    305.               <p>Process Models – focus on the design of the business or technical process.p>  
    306.             list-item>  
    307.             <list-item>  
    308.               <p>Functional Models – represents the functional hierarchy ofa system.p>  
    309.             list-item>  
    310.             <p>A number of Architectural Description Languages (ADLs) have been developed to represent these models.p>  
    311.             <p>Software Architecture represents a structure in which some collection of components is connected by a set of defined relationships.p>  
    312.           list>  
    313.         sec>  
    314.         <sec id="sec2_3_1">  
    315.           <title>Data – Centered Architecture – title>  
    316.           <list list-type="bullet">  
    317.             <list-item>  
    318.               <p>A data store resides at the center of this architecture and is accessed frequently by other components that update, add, delete and modify data within the data store.p>  
    319.             list-item>  
    320.             <list-item>  
    321.               <p>Data – centered architecture promotes integrability, that is existing components can be changed and new components added to the architecture without concern about other clients.p>  
    322.             list-item>  
    323.             <list-item>  
    324.               <p>Client components independently execute processes.p>  
    325.             list-item>  
    326.             <fig>  
    327.               <caption>  
    328.                 <title>Data – Centered Architecturetitle>  
    329.               caption>  
    330.               <graphic xlink:href="Data – Centered Architecture.tif"/>  
    331.             fig>  
    332.           list>  
    333.         sec>  
    334.         <sec id="sec2_3_2">  
    335.           <title>Data – Flow Architecture – title>  
    336.           <list list-type="bullet">  
    337.             <list-item>  
    338.               <p>Data – flow architecture is applied when input data are to be transformed through a series of computational components into output data.p>  
    339.             list-item>  
    340.             <list-item>  
    341.               <p>A pipe and filter pattern has a set of components called filters, connected by pipes that transmit data from one component to the next.p>  
    342.             list-item>  
    343.             <list-item>  
    344.               <p>Each filter works independently on these components and the filter doesn ” t require knowledge of the working of its neighboring filters.p>  
    345.             list-item>  
    346.             <fig>  
    347.               <caption>  
    348.                 <title>Data – Flow Architecturetitle>  
    349.               caption>  
    350.               <graphic xlink:href="Data – Flow Architecture.tif"/>  
    351.             fig>  
    352.           list>  
    353.         sec>  
    354.         <sec id="sec2_3_3">  
    355.           <title>Layered Architecture – title>  
    356.           <list list-type="bullet">  
    357.             <list-item>  
    358.               <p>A number of different layers are defined, each accomplishing operations that progressively becomes closer to the machine instruction set.p>  
    359.             list-item>  
    360.             <list-item>  
    361.               <p>At the outer layer, components serve user interface operations.p>  
    362.             list-item>  
    363.             <list-item>  
    364.               <p>At the inner layer, components perform operating system interfacing.p>  
    365.             list-item>  
    366.             <list-item>  
    367.               <p>Intermediate layers provide utility services and application software functions.p>  
    368.             list-item>  
    369.             <fig>  
    370.               <caption>  
    371.                 <title>Layered Architecturetitle>  
    372.               caption>  
    373.               <graphic xlink:href="Layered Architecture.tif"/>  
    374.             fig>  
    375.             <list-item>  
    376.               <p>The software to be developed must be put into context, that is the design should define external entities like other systems, devices, people that the software interact with and the nature of interaction.p>  
    377.             list-item>  
    378.             <list-item>  
    379.               <p>Once the context is modeled and all external software interfaces have been described, you can identify a set of architectural archetypes.p>  
    380.             list-item>  
    381.             <list-item>  
    382.               <p>An archetype is an abstraction that represents one element of the system behavior.p>  
    383.             list-item>  
    384.           list>  
    385.         sec>  
    386.         <sec id="thewasmissing">  
    387.           <title>Representing the System in Context – title>  
    388.           <list list-type="alpha-lower">  
    389.             <list-item>  
    390.               <p>A software architect uses Architectural Context Diagram (ACD) to model the manner in which software interacts with entities external to its boundaries.p>  
    391.             list-item>  
    392.             <list-item>  
    393.               <p>The generic structure of the architectural context diagram containsp>  
    394.             list-item>  
    395.           list>  
    396.           <list list-type="bullet">  
    397.             <list-item>  
    398.               <p>Super – ordinate System – Those systems that uses the target system as part of some higher level processing scheme.p>  
    399.             list-item>  
    400.             <list-item>  
    401.               <p>Sub – ordinate System – Those systems that are used by the target system and provide data or processing that are necessary to complete target system functionality.p>  
    402.             list-item>  
    403.             <list-item>  
    404.               <p>Peer – level System – Those systems that interact on a peer to peer basis to produce or consume information from target system.p>  
    405.             list-item>  
    406.             <list-item>  
    407.               <p>Actor – Entities like people, deices that interact with the target system to produce or consume information that is necessary for processing.p>  
    408.             list-item>  
    409.           list>  
    410.           <fig>  
    411.             <caption>  
    412.               <title>Representing the system in contexttitle>  
    413.             caption>  
    414.             <graphic xlink:href="Representing the system in context.tif"/>  
    415.           fig>  
    416.           <list list-type="alpha-lower">  
    417.             <list-item>  
    418.               <p>The overall safeHome product controller and the internet based system both are super-ordinate to the security function.p>  
    419.             list-item>  
    420.             <list-item>  
    421.               <p>The surveillance function is a peer system and uses security function.p>  
    422.             list-item>  
    423.             <list-item>  
    424.               <p>The home – owner and control panel are actors that are both consumers and producers of information used or produced by the security function.p>  
    425.             list-item>  
    426.             <list-item>  
    427.               <p>Sensors are used by the security function.p>  
    428.             list-item>  
    429.           list>  
    430.         sec>  
    431.         <sec id="thewasmissing_1">  
    432.           <title>Defining Archetypes – title>  
    433.           <list list-type="alpha-lower">  
    434.             <list-item>  
    435.               <p>An archetype is a class or pattern that represents a core abstraction that is critical to the design of an architecture for the target system.p>  
    436.             list-item>  
    437.             <list-item>  
    438.               <p>The target system architecture is composed of these archetypes, which represents stable elements of the architecture.p>  
    439.             list-item>  
    440.             <list-item>  
    441.               <p>Archetypes can be derived by examining the analysis classes defined as part of the requirements model.p>  
    442.             list-item>  
    443.           list>  
    444.           <p>Node – Represents a cohesive collection of input and output elements.p>  
    445.           <p>Detector – An abstraction that encompasses all sensing equipment thatfeeds information into the target system.p>  
    446.           <p>Indicator – An abstraction that represents all mechanisms.p>  
    447.           <p>Controller – An abstraction that depicts the mechanisms that allows arming or disarming of a node. If controllers reside on a network they have the ability to communicate with one another.p>  
    448.           <fig>  
    449.             <caption>  
    450.               <title>Defining Archetypestitle>  
    451.             caption>  
    452.             <graphic xlink:href="Defining Archetypes.tif"/>  
    453.           fig>  
    454.         sec>  
    455.         <sec id="thewasmissing_2">  
    456.           <title>Refining the Architecture into components – title>  
    457.           <list list-type="alpha-lower">  
    458.             <list-item>  
    459.               <p>The software architecture is refined into components, the structure of the system begins to merge.p>  
    460.             list-item>  
    461.             <list-item>  
    462.               <p>The interfaces depicted in the architecture context diagram implyone or more specialized components that process the data that flows across the interface.p>  
    463.             list-item>  
    464.             <list-item>  
    465.               <p>The safehome home security function might define the set of top-level components that address the following functionalities.p>  
    466.             list-item>  
    467.           list>  
    468.           <list list-type="bullet">  
    469.             <list-item>  
    470.               <p>External communication management – coordinates communication of the security function with external entitiesp>  
    471.             list-item>  
    472.             <list-item>  
    473.               <p>Control Panel processing – manages all control panel functionalityp>  
    474.             list-item>  
    475.             <list-item>  
    476.               <p>Detector management – coordinates access to all detectors attached to the system.p>  
    477.             list-item>  
    478.             <list-item>  
    479.               <p>Alarm processing – verifies and acts on all alarm conditions.p>  
    480.             list-item>  
    481.           list>  
    482.           <fig>  
    483.             <caption>  
    484.               <title>Refining the Architecture into Components –title>  
    485.             caption>  
    486.             <graphic xlink:href="Refining the Architecture into Components.tif"/>  
    487.           fig>  
    488.         sec>  
    489.       body>  
    490.     book-part>  
    491.   book-body>  
    492. book>  
     
    0
  • Laxmidhar Sahoo
    0
    The bellow code is opining
     
    1. <book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oasis="http://www.niso.org/standards/z39-96/ns/oasis-exchange/table" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xsi:noNamespaceSchemaLocation="http://jats.nlm.nih.gov/extensions/bits/2.0/xsd/BITS-book-oasis2.xsd">    
    2.   <book-body>    
    3.     <book-part book-part-type="chapter" id="chapter3">    
    4.       <book-part-meta>    
    5.         <title-group>    
    6.           <label>3label>    
    7.           <title>    
    8.             <target target-type="page" id="page_1">1target>Software Design    
    9.           title>    
    10.         title-group>    
    11.       book-part-meta>    
    12.       <body>    
    13.         <list list-type="bullet">    
    14.           <list-item>    
    15.             <p>Software designp>    
    16.           list-item>    
    17.           <list-item>    
    18.             <p>Abstractionp>    
    19.           list-item>    
    20.           <list-item>    
    21.             <p>Modularityp>    
    22.           list-item>    
    23.           <list-item>    
    24.             <p>Software Architecturep>    
    25.           list-item>    
    26.           <list-item>    
    27.             <p>Effective modular design – Cohesion and Couplingp>    
    28.           list-item>    
    29.           <list-item>    
    30.             <p>Architectural design and Procedural designp>    
    31.           list-item>    
    32.           <list-item>    
    33.             <p>Data flow oriented designp>    
    34.           list-item>    
    35.         list>    
    36.         <sec id="sec1_1">    
    37.           <title>Software Designtitle>    
    38.           <list llist-type="bullet">    
    39.             <list-item>    
    40.               <p>Software design encompasses the set of principles, concepts and practices that lead to the development of a high quality system or product.p>    
    41.             list-item>    
    42.             <list-item>    
    43.               <p>Design creates a representation or model of the software, but unlike the requirements model, the design model provides details about software architecture, data structures, interfaces and components that are necessary to implement the system.p>    
    44.             list-item>    
    45.             <list-item>    
    46.               <p>Software design is an iterative process through which requirements are translated into a  ‘ blue print ’ for constructing software.p>    
    47.             list-item>    
    48.           list>    
    49.         sec>    
    50.         <sec id="sec1_2">    
    51.           <title>Design Principlestitle>    
    52.           <list list-type="order">    
    53.             <list-item>    
    54.               <p>Software design should correspond to the analysis model – Design element correspond to many requirements, the design model satisfies all the requirements represented by the analysis model.p>    
    55.             list-item>    
    56.             <list-item>    
    57.               <p>Choose the right programming paradigm – A program paradigmdescribes the structure of the software system. The paradigm should be chosen keeping constraints in mind such as time, availability of resources and nature of user ” s requirements.p>    
    58.             list-item>    
    59.             <list-item>    
    60.               <p>Software design should be flexible – Software design should be flexible enough to adapt changes easily. To achieve the flexibility, the basic design concepts such as abstraction and modularity should be applied effectively.p>    
    61.             list-item>    
    62.             <list-item>    
    63.               <p>Software design should represent correspondence between the software and real – world problem – The software design should be structured in such a way that it always relates with the real-world problem.p>    
    64.             list-item>    
    65.             <list-item>    
    66.               <p>Software reuse – The software components should be designed in such a way that they can be effectively reused to increase the productivity.p>    
    67.             list-item>    
    68.           list>    
    69.         sec>    
    70.         <sec id="sec1_3">    
    71.           <title>Design Conceptstitle>    
    72.           <p>The design concepts help you to answer the following questions –p>    
    73.           <list list-type="order">    
    74.             <list-item>    
    75.               <p>What criteria can be used to partition software into individual components?p>    
    76.             list-item>    
    77.             <list-item>    
    78.               <p>How is function or data structure detail separated from a conceptual representation of the software?p>    
    79.             list-item>    
    80.             <list-item>    
    81.               <p>What uniform criteria define the technical quality of a software design?p>    
    82.             list-item>    
    83.           list>    
    84.           <p>Software design concepts that span both traditional and object-oriented software development are as follows – p>    
    85.         sec>    
    86.         <sec id="sec1_3_1">    
    87.           <title>Abstractiontitle>    
    88.           <list list-type="bullet">    
    89.             <list-item>    
    90.               <p>When you consider a modular solution to any problem, many levels of abstraction can be presented.p>    
    91.             list-item>    
    92.             <list-item>    
    93.               <p>At the highest level of abstraction, a solution is stated in broad terms and at lower levels of abstraction, a more detailed description of the solution is provided.p>    
    94.             list-item>    
    95.             <list-item>    
    96.               <p>As different levels of abstraction are developed, we have to create both procedural and data abstractions.p>    
    97.             list-item>    
    98.           list>    
    99.         sec>    
    100.         <sec id="sec1_3_2">    
    101.           <title>Procedural Abstractiontitle>    
    102.           <list list-type="bullet">    
    103.             <list-item>    
    104.               <p>A Procedural Abstraction refers to a sequence of instructions that have a specific and limited function.p>    
    105.             list-item>    
    106.             <list-item>    
    107.               <p>The name of a procedural abstraction implies these functions, butspecific details are suppressed. Example – ‘ Open for a door ’ – here open implies a long sequence of procedural steps.p>    
    108.             list-item>    
    109.           list>    
    110.         sec>    
    111.         <sec id="sec1_3_3">    
    112.           <title>Data Abstractiontitle>    
    113.           <list list-type="bullet">    
    114.             <list-item>    
    115.               <p>A Data Abstraction is a named collection of data that describes adata object.p>    
    116.             list-item>    
    117.             <list-item>    
    118.               <p>In the context of procedural abstraction open, we can define a data abstraction called door.p>    
    119.             list-item>    
    120.             <list-item>    
    121.               <p>The data abstraction for door would encompass a set of attributesthat describes the door. Example – door type, swing direction, opening mechanism etc.p>    
    122.             list-item>    
    123.           list>    
    124.         sec>    
    125.         <sec id="sec1_4">    
    126.           <title>Architecturetitle>    
    127.           <list list-type="bullet">    
    128.             <list-item>    
    129.               <p>Architecture is the structure or organization of program components (modules), the manner in which these components interact, and the structureof data that are used by the components.p>    
    130.             list-item>    
    131.             <list-item>    
    132.               <p>A set of architectural patterns enables a software engineer to solve common design problems.p>    
    133.             list-item>    
    134.           list>    
    135.         sec>    
    136.         <sec id="sec1_5">    
    137.           <title>Patternstitle>    
    138.           <list list-type="bullet">    
    139.             <list-item>    
    140.               <p>A design pattern describes a design structure that solves a particular design problem within a specific context.p>    
    141.             list-item>    
    142.             <list-item>    
    143.               <p>The design patterns are used to determinep>    
    144.             list-item>    
    145.             <list list-type="alpha-lower">    
    146.               <list-item>    
    147.                 <p>Whether the pattern is applicable to the current workp>    
    148.               list-item>.    
    149.               <list-item>    
    150.                 <p>Whether the pattern can be reusedp>    
    151.               list-item>    
    152.               <list-item>    
    153.                 <p>Whether the pattern can be serve as a guide for developing a similar but functionally or structurally different pattern.p>    
    154.               list-item>    
    155.             list>    
    156.           list>    
    157.         sec>    
    158.         <sec id="sec1_6">    
    159.           <title>Separation of Concernstitle>    
    160.           <list list-type="bullet">    
    161.             <list-item>    
    162.               <p>Separation of concerns is a design concept that suggests that anycomplex problem can be more easily handled if it is subdivided into pieces thatcan each be solved independently.p>    
    163.             list-item>    
    164.             <list-item>    
    165.               <p>A concern is a feature or behavior that is specified as part of the requirements model for the software.p>    
    166.             list-item>    
    167.           list>    
    168.         sec>    
    169.         <sec id="sec1_7">    
    170.           <title>Modularitytitle>    
    171.           <list list-type="bullet">    
    172.             <list-item>    
    173.               <p>Modularity is the most common manifestation of separation of concerns.p>    
    174.             list-item>    
    175.             <list-item>    
    176.               <p>Modularity is the single attribute of software that allows a program to be intellectually manageable.p>    
    177.             list-item>    
    178.             <list-item>    
    179.               <p>Almost all instances, you should break the design into many modules, to make understanding easier and reduce the cost required to build the software.p>    
    180.             list-item>    
    181.             <list-item>    
    182.               <p>The cost to develop an individual software module does decrease as the total number of modules increases.p>    
    183.             list-item>    
    184.             <list-item>    
    185.               <p>However, as the number of modules increases, the cost associated with integrating the modules also increases.p>    
    186.             list-item>    
    187.             <list-item>    
    188.               <p>There is a number M of modules that would result in minimum development cost, but we do not have the necessary sophistication to predict M with assurance.p>    
    189.             list-item>    
    190.             <list-item>    
    191.               <p>You should modularize, but care should be taken to stay in vicinity of M.p>    
    192.             list-item>    
    193.           list>    
    194.           <fig>    
    195.             <caption>    
    196.               <title>Modularitytitle>    
    197.             caption>    
    198.             <graphic xlink:href="Modularity.tif"/>    
    199.           fig>    
    200.         sec>    
    201.         <sec id="sec2">    
    202.           <title>Effective Modular Designtitle>    
    203.           <list list-type="bullet">    
    204.             <list-item>    
    205.               <p>When a software program is modularized, its tasks are divided into several modules based on some characteristics.p>    
    206.             list-item>    
    207.             <list-item>    
    208.               <p>Modules are set of instructions put together in order to achieve some tasks.p>    
    209.             list-item>    
    210.             <list-item>    
    211.               <p>There are measures by which the quality of a design of modules and their interaction among them can be measured.p>    
    212.             list-item>    
    213.             <list-item>    
    214.               <p>These measures are called coupling and cohesion.p>    
    215.             list-item>    
    216.           list>    
    217.         sec>    
    218.         <sec id="sec2_1">    
    219.           <title>Cohesiontitle>    
    220.           <p>Cohesion is a measure that defines the degree of intra – dependability within elements of a module. The greater the cohesion, the better is the program design.p>    
    221.           <p>There are seven types of cohesion, namely – p>    
    222.           <list list-type="bullet">    
    223.             <list-item>    
    224.               <p>Co – incidental cohesion – It is unplanned and random cohesion, which might be the result of breaking the program into smaller modules for the sake of modularization. Because it is unplanned, it may serve confusion to the programmers and is generally not-accepted.p>    
    225.             list-item>    
    226.             <list-item>    
    227.               <p>Logical cohesion – When logically categorized elements areput together into a module, it is called logical cohesion.p>    
    228.             list-item>    
    229.             <list-item>    
    230.               <p>Temporal Cohesion – When elements of module are organized such that they are processed at a similar point in time, it is called temporal cohesion.p>    
    231.             list-item>    
    232.             <list-item>    
    233.               <p>Procedural cohesion – When elements of module are grouped together, which are executed sequentially in order to perform a task, it is called procedural cohesion.p>    
    234.             list-item>    
    235.             <list-item>    
    236.               <p>Communicational cohesion – When elements of module are grouped together, which are executed sequentially and work on same data (information), it is called communicational cohesion.p>    
    237.             list-item>    
    238.             <list-item>    
    239.               <p>Sequential cohesion – When elements of module are grouped because the output of one element serves as input to another and so on, it is called sequential cohesion.p>    
    240.             list-item>    
    241.             <list-item>    
    242.               <p>Functional cohesion – It is considered to be the highest degree of cohesion, and it is highly expected. Elements of module in functional cohesion are grouped because they all contribute to a single well-defined function. It can also be reused.p>    
    243.             list-item>    
    244.           list>    
    245.         sec>    
    246.         <sec id="sec2_2">    
    247.           <title>Couplingtitle>    
    248.           <p>Coupling is a measure that defines the level of inter – dependability among modules of a program. It tells at what level the modules interfere and interact with each other. The lower the coupling, the better the program.p>    
    249.           <p>There are five types of coupling, namely – p>    
    250.           <list list-type="bullet">    
    251.             <list-item>    
    252.               <p>Content coupling – When a module can directly access or modify or refer to the content of another module, it is called content level coupling.p>    
    253.             list-item>    
    254.             <fig>    
    255.               <caption>    
    256.                 <title>Content Couplingtitle>    
    257.               caption>    
    258.               <graphic xlink:href="Content Coupling.tif"/>    
    259.             fig>    
    260.             <list-item>    
    261.               <p>Common coupling – When multiple modules have read and write access to some global data, it is called common or global coupling.p>    
    262.             list-item>    
    263.             <fig>    
    264.               <caption>    
    265.                 <title>Common Couplingtitle>    
    266.               caption>    
    267.               <graphic xlink:href="Common Coupling.tif"/>    
    268.             fig>    
    269.             <list-item>    
    270.               <p>Control coupling – Two modules are called control –coupled if one of them decides the function of the other module or changes itsflow of execution.p>    
    271.             list-item>    
    272.             <list-item>    
    273.               <p>Stamp coupling – When multiple modules share common data structure and work on different part of it, it is called stamp coupling.p>    
    274.             list-item>    
    275.             <fig>    
    276.               <caption>    
    277.                 <title>Stamp Couplingtitle>    
    278.               caption>    
    279.               <graphic xlink:href="Stamp Coupling.tif"/>    
    280.             fig>    
    281.             <list-item>    
    282.               <p>Data coupling – Data coupling is when two modules interactwith each other by means of passing data (as parameter). If a module passes data structure as parameter, then the receiving module should use all its components.p>    
    283.             list-item>    
    284.             <p>Ideally, no coupling is considered to be the best.p>    
    285.           list>    
    286.         sec>    
    287.         <sec id="sec2_3">    
    288.           <title>Architectural Designtitle>    
    289.           <p>Architectural design represents the structure of data and program componentsthat are required to build a computer – based system.p>    
    290.           <p>Architectural design begins with data design and then proceeds to the derivation of one or more representations of the architectural structure of the system.p>    
    291.           <p>The architectural design can be represented using one or more of an number of different models – p>    
    292.           <list list-type="order">    
    293.             <list-item>    
    294.               <p>Structural Models – represent architecture as an organizedcollection of program components.p>    
    295.             list-item>    
    296.             <list-item>    
    297.               <p>Framework Models – identify repeatable architectural design frameworks that are encountered in similar types of applications.p>    
    298.             list-item>    
    299.             <list-item>    
    300.               <p>Dynamic Models – address the behavioral aspects of the program architecture.p>    
    301.             list-item>    
    302.             <list-item>    
    303.               <p>Process Models – focus on the design of the business or technical process.p>    
    304.             list-item>    
    305.             <list-item>    
    306.               <p>Functional Models – represents the functional hierarchy ofa system.p>    
    307.             list-item>    
    308.             <p>A number of Architectural Description Languages (ADLs) have been developed to represent these models.p>    
    309.             <p>Software Architecture represents a structure in which some collection of components is connected by a set of defined relationships.p>    
    310.           list>    
    311.         sec>    
    312.         <sec id="sec2_3_1">    
    313.           <title>Data – Centered Architecture – title>    
    314.           <list list-type="bullet">    
    315.             <list-item>    
    316.               <p>A data store resides at the center of this architecture and is accessed frequently by other components that update, add, delete and modify data within the data store.p>    
    317.             list-item>    
    318.             <list-item>    
    319.               <p>Data – centered architecture promotes integrability, that is existing components can be changed and new components added to the architecture without concern about other clients.p>    
    320.             list-item>    
    321.             <list-item>    
    322.               <p>Client components independently execute processes.p>    
    323.             list-item>    
    324.             <fig>    
    325.               <caption>    
    326.                 <title>Data – Centered Architecturetitle>    
    327.               caption>    
    328.               <graphic xlink:href="Data – Centered Architecture.tif"/>    
    329.             fig>    
    330.           list>    
    331.         sec>    
    332.         <sec id="sec2_3_2">    
    333.           <title>Data – Flow Architecture – title>    
    334.           <list list-type="bullet">    
    335.             <list-item>    
    336.               <p>Data – flow architecture is applied when input data are to be transformed through a series of computational components into output data.p>    
    337.             list-item>    
    338.             <list-item>    
    339.               <p>A pipe and filter pattern has a set of components called filters, connected by pipes that transmit data from one component to the next.p>    
    340.             list-item>    
    341.             <list-item>    
    342.               <p>Each filter works independently on these components and the filter doesn ” t require knowledge of the working of its neighboring filters.p>    
    343.             list-item>    
    344.             <fig>    
    345.               <caption>    
    346.                 <title>Data – Flow Architecturetitle>    
    347.               caption>    
    348.               <graphic xlink:href="Data – Flow Architecture.tif"/>    
    349.             fig>    
    350.           list>    
    351.         sec>    
    352.         <sec id="sec2_3_3">    
    353.           <title>Layered Architecture – title>    
    354.           <list list-type="bullet">    
    355.             <list-item>    
    356.               <p>A number of different layers are defined, each accomplishing operations that progressively becomes closer to the machine instruction set.p>    
    357.             list-item>    
    358.             <list-item>    
    359.               <p>At the outer layer, components serve user interface operations.p>    
    360.             list-item>    
    361.             <list-item>    
    362.               <p>At the inner layer, components perform operating system interfacing.p>    
    363.             list-item>    
    364.             <list-item>    
    365.               <p>Intermediate layers provide utility services and application software functions.p>    
    366.             list-item>    
    367.             <fig>    
    368.               <caption>    
    369.                 <title>Layered Architecturetitle>    
    370.               caption>    
    371.               <graphic xlink:href="Layered Architecture.tif"/>    
    372.             fig>    
    373.             <list-item>    
    374.               <p>The software to be developed must be put into context, that is the design should define external entities like other systems, devices, people that the software interact with and the nature of interaction.p>    
    375.             list-item>    
    376.             <list-item>    
    377.               <p>Once the context is modeled and all external software interfaces have been described, you can identify a set of architectural archetypes.p>    
    378.             list-item>    
    379.             <list-item>    
    380.               <p>An archetype is an abstraction that represents one element of the system behavior.p>    
    381.             list-item>    
    382.           list>    
    383.         sec>    
    384.         <sec id="thewasmissing">    
    385.           <title>Representing the System in Context – title>    
    386.           <list list-type="alpha-lower">    
    387.             <list-item>    
    388.               <p>A software architect uses Architectural Context Diagram (ACD) to model the manner in which software interacts with entities external to its boundaries.p>    
    389.             list-item>    
    390.             <list-item>    
    391.               <p>The generic structure of the architectural context diagram containsp>    
    392.             list-item>    
    393.           list>    
    394.           <list list-type="bullet">    
    395.             <list-item>    
    396.               <p>Super – ordinate System – Those systems that uses the target system as part of some higher level processing scheme.p>    
    397.             list-item>    
    398.             <list-item>    
    399.               <p>Sub – ordinate System – Those systems that are used by the target system and provide data or processing that are necessary to complete target system functionality.p>    
    400.             list-item>    
    401.             <list-item>    
    402.               <p>Peer – level System – Those systems that interact on a peer to peer basis to produce or consume information from target system.p>    
    403.             list-item>    
    404.             <list-item>    
    405.               <p>Actor – Entities like people, deices that interact with the target system to produce or consume information that is necessary for processing.p>    
    406.             list-item>    
    407.           list>    
    408.           <fig>    
    409.             <caption>    
    410.               <title>Representing the system in contexttitle>    
    411.             caption>    
    412.             <graphic xlink:href="Representing the system in context.tif"/>    
    413.           fig>    
    414.           <list list-type="alpha-lower">    
    415.             <list-item>    
    416.               <p>The overall safeHome product controller and the internet based system both are super-ordinate to the security function.p>    
    417.             list-item>    
    418.             <list-item>    
    419.               <p>The surveillance function is a peer system and uses security function.p>    
    420.             list-item>    
    421.             <list-item>    
    422.               <p>The home – owner and control panel are actors that are both consumers and producers of information used or produced by the security function.p>    
    423.             list-item>    
    424.             <list-item>    
    425.               <p>Sensors are used by the security function.p>    
    426.             list-item>    
    427.           list>    
    428.         sec>    
    429.         <sec id="thewasmissing_1">    
    430.           <title>Defining Archetypes – title>    
    431.           <list list-type="alpha-lower">    
    432.             <list-item>    
    433.               <p>An archetype is a class or pattern that represents a core abstraction that is critical to the design of an architecture for the target system.p>    
    434.             list-item>    
    435.             <list-item>    
    436.               <p>The target system architecture is composed of these archetypes, which represents stable elements of the architecture.p>    
    437.             list-item>    
    438.             <list-item>    
    439.               <p>Archetypes can be derived by examining the analysis classes defined as part of the requirements model.p>    
    440.             list-item>    
    441.           list>    
    442.           <p>Node – Represents a cohesive collection of input and output elements.p>    
    443.           <p>Detector – An abstraction that encompasses all sensing equipment thatfeeds information into the target system.p>    
    444.           <p>Indicator – An abstraction that represents all mechanisms.p>    
    445.           <p>Controller – An abstraction that depicts the mechanisms that allows arming or disarming of a node. If controllers reside on a network they have the ability to communicate with one another.p>    
    446.           <fig>    
    447.             <caption>    
    448.               <title>Defining Archetypestitle>    
    449.             caption>    
    450.             <graphic xlink:href="Defining Archetypes.tif"/>    
    451.           fig>    
    452.         sec>    
    453.         <sec id="thewasmissing_2">    
    454.           <title>Refining the Architecture into components – title>    
    455.           <list list-type="alpha-lower">    
    456.             <list-item>    
    457.               <p>The software architecture is refined into components, the structure of the system begins to merge.p>    
    458.             list-item>    
    459.             <list-item>    
    460.               <p>The interfaces depicted in the architecture context diagram implyone or more specialized components that process the data that flows across the interface.p>    
    461.             list-item>    
    462.             <list-item>    
    463.               <p>The safehome home security function might define the set of top-level components that address the following functionalities.p>    
    464.             list-item>    
    465.           list>    
    466.           <list list-type="bullet">    
    467.             <list-item>    
    468.               <p>External communication management – coordinates communication of the security function with external entitiesp>    
    469.             list-item>    
    470.             <list-item>    
    471.               <p>Control Panel processing – manages all control panel functionalityp>    
    472.             list-item>    
    473.             <list-item>    
    474.               <p>Detector management – coordinates access to all detectors attached to the system.p>    
    475.             list-item>    
    476.             <list-item>    
    477.               <p>Alarm processing – verifies and acts on all alarm conditions.p>    
    478.             list-item>    
    479.           list>    
    480.           <fig>    
    481.             <caption>    
    482.               <title>Refining the Architecture into Components –title>    
    483.             caption>    
    484.             <graphic xlink:href="Refining the Architecture into Components.tif"/>    
    485.           fig>    
    486.         sec>    
    487.       body>    
    488.     book-part>    
    489.   book-body>    
    490. book>    
    491.    
     
    0