Software Engineering BFH
Software Engineering BFH
Software Engineering BFH
Fichier Détails
Cartes-fiches | 146 |
---|---|
Utilisateurs | 20 |
Langue | Deutsch |
Catégorie | Informatique |
Niveau | Université |
Crée / Actualisé | 23.04.2017 / 10.07.2023 |
Lien de web |
https://card2brain.ch/box/20170423_software_engineering_bfh_LEvv
|
Intégrer |
<iframe src="https://card2brain.ch/box/20170423_software_engineering_bfh_LEvv/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
- Show how the system is used with other systems -- z.B. With an activity Diagram
IP: Focus of interaction perspective
The interaction perspective focuses on the interaction of a system. This can be:
- External interaction: users / external systems can interact with our system
- Internal interaction: components / Classes intereract internaly
IP: Why interaction modelling?
- modeling user interaction is important identifying user requirements
- modeling system-to-system interaction: possible communication problems will be highlighted
- component interaction: helps understand if a proposed system structure is likely to deliver the required system performance and dependability
IP: Which Diagrams for interaction Models
- Use Case D.
- Activity D.
- Communication D.
- Sequence D.
SP: What does it show?
- organization of modules, components, classes, ..
SP: What kind of Structural Models?
- static models: system design --> Domain Model (simpl. Class diagram)
- dynamic models: orgnization when the system is running --> Object Diagram
SP: What does the Domain Model show?
- Concepts
- Associations
- Attributes
- NOT operations --> Similar Class Diagram
SP: How to Identify Classes (3)?
- Check for Typical Classes
- Noun Phrase Identification
- Responsibility-Driven Design (RDD)
Structural perspective: Responsibility-Driven Design: Which responsibilities are there?
- Doing
- Knowing
SP: Which information is on CRC Card?
- Class
- Responsibilities: What is the class doing?
- Collaborators: Does it know / need other classes
From user requirements to system design:
Use Cases -> System Context -> Architecture -> Class Model -> Design Models -> Implementation
Patterns: What is a Idiom?
- low-level pattern > describes the implementation of aspecifig aspect of a software component,
Patterns: What is a design Pattern?
- common structure of interacting objects to solve a general sw-design problem in a specifig context
- Generic
- Language independent
Patterns: What is an architectural Pattern?
- high-level pattern, descibes the fundamental structure of a sw-system and relations among it's participating sub-systems
Patterns: GOF - Classification
- Creational
- Structural
- Behavioral
Patterns: Advantages of Design Patterns ?
1. enable large scale reuse of S/W
2. Helps in improve developer communication
3. capture expert knowledge and design trade-offs and make expertise widely available
4. Well documented and understood
Patterns: Disadvantages of Design Patterns
1.Do not lead to direct code reuse
2. Complex in nature
3. they are deceptively simple
4. they are validated by experince and discussion
What is Model-driven engineering
an approach to software development in which a system is represented as a set of models that can be automatically transformed to executable code.
What is sw architecture?
- A model that describes how the sw is organized as :
- a set of components
- which communicate with each other
When do we design the sw architecure and why? (architectural design process)
- early stage of system design process
- often parallel with spec activities
- link between RE and sw design --> based on / parallel with context and domain model
Different levels of abstraction?
- individual programs (and their components)
- complex enterprise systems --> composed of other systems, programs, components
- distributed over different computers
- owned by different companies
Use of Architectural Models (5)?
- Stakeholder communication
- sh can understand the system and discuss --> no confusing detail
- System analysis
- analysis if the system can meet it's nf requirements
- Project planning
- planning & assigning responsibilities / ressources
- planning the interfaces and integration
- Documentation
- Complet model that shows
- the differnt components in a system
- interfaces
- connections
- Complet model that shows
- Large-scale reuse
- Architecture may be reusable
- Generic product may be developed in form of a framework
Architectural Representation form? How?
- Block diagrams (entities, relationships) > boxes and lines
- very abstract
- For stakeholders and project planing
- Cons: no types of relationships and no properties
- very abstract
- UML
- structure: component, package, deployment D.
- behavior: activity D.
- interaction: communication D and interaction overview
- For discusion with impl team, detailed planning, Model-Driven Engineering
- Cons: high effort for creation & maintainance
What is architectural design?
- creative process
- depending on type of system
Which are the important question for the architectural design?
- How to decompose into modules?
- How to deploy on different machines?
- Control strategy?
- Is there a generic application architecture that can be used?
- Architectural patterns?
This has large impact on non fon-functional properties!
- ++ how to evaluate the arch. design?
- ++ how to document the architecture
Non-Functional Requirements in Architecture?
- Performance (localise critical operations and minimise communication)
- Security (Layered architecture with critical assets in the inner Layers)
- Safety (Localise safety-critical features in a small number of sub-systems)
- Availability (redundant components and mechanisms for fault tolerance)
- Maintainability (fine-grain, replacable components)
- Scalability (distributed architecture to have options for load balancing)
Name 5 important architectural patterns:
- MVC / MVP
- Layering
- Client-Server and P2P
- Repository
- Pipe and Filter
Application Type Architectures
Application Types?
- Data processing applications
- batch processing without user intervention
- Scientific computing (CERN, ATLAS...)
- batch processing without user intervention
- Event processing systems
- Actions of app depending on events from outside
- sensor networks(environment or patient health monitoring)
- Actions of app depending on events from outside
- Transaction processing applications
- Data-centered
- process user requests and update infos in db
- e-commerce, reservaton systems...
- Language processing systems
- Userinput in formal language is processed and interpreted
- Compilers, databases, command interpreters
- Userinput in formal language is processed and interpreted
Application Type Architectures
Example for Web-based information Systems:
Web-Shop:
- UI > Web browser
- apspecific layer includes additional functionality > shoping cart
- add items in separate transactions
- pay for all together in a single transaction
- Often implemented as Multi-tier Client-Server Architecture
- Web Server: responsible for user communication with the UI (Browser = client)
- Application Server: responsible for application specific logig, info storage, retrieval request
- DB-Server: moves info to and from db and handles transaction management
Application Type Architectures
Example for Language Processing System:
tbd
Application Type Architectures
Example for Compiler Components
tbd
What are Frameworks?
- Combine architecture with (partial) implementation
- Component-based design
- Made of abstract and concrete classes and the interfaces between them
- Components are impolemented by:
- filing in the missing parts of the design
- by instantiaiting the abstract classes
- moderately large entities that can be reused
Difference between Framework and Library?
Library
- handle prticular task (XML parsing, error logging...)
Frameworks
- Most define the general controll flow / event handling
- include libraries
- Web-app framework: provide user session management, data storage, web page template system
- Desktop-app framework: ui and standard widgets
What kind of frameworks are there?
- System infrastructure f.
- development of system infrastructure(communications, user interfaces., compilers)
- Middleware integration f.
- component communication and information exchange
- Enterprise application f.
- development of business specific apps
Selecting right framework ist often a trade-off between:
maximizing reuse & maximizing flexibility
Pros - Cons of Frameworks?
Pro:
- Efficiency
- Security
- Expense
- Support
..tbc
Cons:
Security
Restrictions
Learning a framework, not a language
..tbc
IMPLEMENTATION:
What is Object-Orented Design?
Object-oriented design is the process of planning a system of interacting objects for the purpose of solving a software problem.
It is one approach to software design.