Showing posts with label Software Engineering. Show all posts
Showing posts with label Software Engineering. Show all posts

Tuesday, May 8, 2012

What design choices have to be made when integrating COTS products to create a COTS-solution system?


What design choices have to be made when integrating COTS products to create a COTS-solution system?
Ans: To develop systems using COTS products, you have to make a number of design choices:
1. Which COTS products offer the most appropriate functionality? Typically, there will be several COTS products available, which can be combined in different ways. If you don’t already have experience with a COTS product, it can be difficult to decide which product is the most suitable.
2. How will data be exchanged? Different products normally use unique data structures and formats. You have to write adaptors that convert from one representation to another. These adaptors are run-time systems that operate alongside the COTS products.
3. What features of a product will actually be used? COTS products may include more functionality than you need and functionality may be duplicated across different products. You have to decide which features in what product are most appropriate for your requirements. If possible, you should also deny access to unused functionality because this can interfere with normal system operation. The failure of the first flight of the Ariane 5 rocket was a consequence of a failure in an inertial navigation system that was reused from the Ariane 4 system. However, the functionality that failed was not actually
required in Ariane 5.

What is an ERP system?


What is an ERP system?
Ans: At a larger scale, an Enterprise Resource Planning (ERP) system may support all of the manufacturing, ordering, and customer relationship management activities in a large company.
ERP systems, such as those produced by SAP and BEA, are large-scale integrated systems designed to support business practices such as ordering and invoicing, inventory management, and manufacturing scheduling. The configuration process for these systems involves gathering detailed information about the customer’s business and business processes, and embedding this in a configuration database. This often requires detailed knowledge of configuration notations and tools and is usually carried out by consultants working alongside system customers. ERP systems are used in almost all large companies to support some or all of their functions. They are, therefore, a very widely used form of software reuse.

What are the process steps involved in creating a new member of a software product line?


What are the process steps involved in creating a new member of a software product line?
Ans: The process steps involved in extending a software product line to create a new application are as follows:
1. Elicit stakeholder requirements: You may start with a normal requirements engineering process. However, because a system already exists, you will need to demonstrate the system and have stakeholders experiment with it, expressing their requirements as modifications to the functions provided.
2. Select the existing system that is the closest fit to the requirements: When creating a new member of a product line, you may start with the nearest product instance. The requirements are analyzed and the family member that is the closest fit is chosen for modification.
3. Renegotiate requirements: As more details of required changes emerge and the project is planned, there may be some requirements renegotiation to minimize the changes that are needed.
4. Adapt existing system: New modules are developed for the existing system and existing system modules are adapted to meet the new requirements.
            5. Deliver new family member: The new instance of the product line is delivered to the customer. At this stage, you should document its key features so that it may be used as a basis for other system developments in the future.

List 4 types of specialization of software product lines?


List 4 types of specialization of software product lines?
Ans: Various types of specialization of a software product line may be developed:
1. Platform specialization: Versions of the application are developed for different platforms. For example, versions of the application may exist for Windows, Mac OS, and Linux platforms. In this case, the functionality of the application is normally unchanged; only those components that interface with the hardware and operating system are modified.
2. Environment specialization: Versions of the application are created to handle particular operating environments and peripheral devices. For example, a system for the emergency services may exist in different versions, depending on the vehicle communications system. In this case, the system components are changed to reflect the functionality of the communications equipment used.
3. Functional specialization: Versions of the application are created for specific customers who have different requirements. For example, a library automation system may be modified depending on whether it is used in a public library, a reference library, or a university library. In this case, components that implement functionality may be modified and new components added to the system.
4. Process specialization: The system is adapted to cope with specific business processes. For example, an ordering system may be adapted to cope with a centralized ordering process in one company and a distributed process in another.

What features are supported by most web application frameworks?


What features are supported by most web application frameworks?
Ans: Most web application frameworks support the following features:
1. Security WAFs may include classes to help implement user authentication (login) and access control to ensure that users can only access permitted functionality in the system.
2. Dynamic web pages Classes are provided to help you define web page templates and to populate these dynamically with specific data from the system database.
3. Database support Frameworks don’t usually include a database but rather assume that a separate database, such as MySQL, will be used. The framework may provide classes that provide an abstract interface to different databases.
4. Session management Classes to create and manage sessions (a number of interactions with the system by a user) are usually part of a WAF.
5. User interaction Most web frameworks now provide AJAX support, which allows more interactive web pages to be created.

What are the three classes of application framework discussed by Fayed and Schmidt?


What are the three classes of application framework discussed by Fayed and Schmidt?
Ans: Fayad and Schmidt discuss three classes of frameworks:
1. System infrastructure frameworks: These frameworks support the development of system infrastructures such as communications, user interfaces, and compilers.
2. Middleware integration frameworks: These consist of a set of standards and associated object classes that support component communication and information exchange. Examples of this type of framework include Microsoft’s .NET and Enterprise Java Beans (EJB). These frameworks provide support for standardized component models, as discussed in Chapter 17.
3. Enterprise application frameworks: These are concerned with specific application domains such as telecommunications or financial systems. These embed application domain knowledge and support the development of end-user applications.

What key factors should be considered when considering the most appropriate type of reuse?


What key factors should be considered when considering the most appropriate type of reuse?
Ans: Key factors that you should consider when planning reuse are:
1. The development schedule for the software: If the software has to be developed quickly, you should try to reuse off-the-shelf systems rather than individual components. These are large-grain reusable assets. Although the fit to requirements may be imperfect, this approach minimizes the amount of development required.
2. The expected software lifetime: If you are developing a long-lifetime system, you should focus on the maintainability of the system. You should not just think about the immediate benefits of reuse but also of the long-term implications. Over its lifetime, you will have to adapt the system to new requirements, which will mean making changes to parts of the system. If you do not have access to the source code, you may prefer to avoid off-the-shelf components and systems from external suppliers; suppliers may not be able to continue support for the reused software.
3. The background, skills, and experience of the development team: All reuse technologies are fairly complex and you need quite a lot of time to understand and use them effectively. Therefore, if the development team has skills in a particular area, this is probably where you should focus.
4. The criticality of the software and its non-functional requirements: For a critical system that has to be certified by an external regulator, you may have to create a dependability case for the system. This is difficult if you don’t have access to the source code of the software. If your software has stringent performance requirements, it may be impossible to use strategies such as generator-based reuse, where you generate the code from a reusable domain specific representation of a system. These systems often generate relatively inefficient code.
5. The application domain: In some application domains, such as manufacturing and medical information systems, there are several generic products that may be reused by configuring them to a local situation. If you are working in such a domain, you should always consider these as an option.
6. The platform on which the system will run: Some components models, such as .NET, are specific to Microsoft platforms. Similarly, generic application systems may be platform-specific and you may only be able to reuse these if your system is designed for the same platform.

What are the main problems with software reuse?


What are the main problems with software reuse?
Ans:     Increased maintenance costs: If the source code of a reused software system or component is not available, then maintenance costs may be higher because the reused elements of the system may become increasingly incompatible with system changes.
Lack of tool support: Some software tools do not support development with reuse. It may be difficult or impossible to integrate these tools with a component library system. The software process assumed by these tools may not take reuse into account. This is particularly true for tools that support embedded systems engineering, less so for object-oriented development tools.
Not-invented-here syndrome: Some software engineers prefer to rewrite components because they believe they can improve on them. This is partly to do with trust and partly to do with the fact that writing original software is seen as more challenging than reusing other people’s software.
Creating, maintaining, and using a component library: Populating a reusable component library and ensuring the software developers can use this library can be expensive. Development processes have to be adapted to ensure that the library is used.
Finding, understanding, and adapting reusable components: Software components have to be discovered in a library, understood and, sometimes, adapted to work in a new environment. Engineers must be reasonably confident of finding a component in the library before they include a component search as part of their normal development process.

List the main benefits of software reuse.


List the main benefits of software reuse.
Ans:     Increased dependability: Reused software, which has been tried and tested in working systems, should be more dependable than new software. Its design and implementation faults should have been found and fixed.
Reduced process risk: The cost of existing software is already known, whereas the costs of development are always a matter of judgment. This is an important factor for project management because it reduces the margin of error in project cost estimation. This is particularly true when relatively large software components such as subsystems are reused.
Effective use of specialists: Instead of doing the same work over and over again, application specialists can develop reusable software that encapsulates their knowledge.
Standards compliance: Some standards, such as user interface standards, can be implemented as a set of reusable components. For example, if menus in a user interface are implemented using reusable components, all applications present the same menu formats to users. The use of standard user interfaces improves dependability because users make fewer mistakes when presented with a familiar interface.
Accelerated development: Bringing a system to market as early as possible is often more important than overall development costs. Reusing software can speed up system.

Friday, March 23, 2012

What are the three controls may be put in place to enhance system security?

What are the three controls may be put in place to enhance system security?
Ans: The controls that you might put in place to enhance system security are:
1. Vulnerability avoidance: Controls that are intended to ensure that attacks are unsuccessful. The strategy here is to design the system so that security problems are avoided. For example, sensitive military systems are not connected to public networks so that external access is impossible. You should also think of encryption as a control based on avoidance. Any unauthorized access to encrypted data means that it cannot be read by the attacker. In practice, it is very expensive and time consuming to crack strong encryption.
2. Attack detection and neutralization: Controls that are intended to detect and repel attacks. These controls involve including functionality in a system that monitors its operation and checks for unusual patterns of activity. If these are detected, then action may be taken, such as shutting down parts of the system, restricting access to certain users, etc.
3. Exposure limitation and recovery: Controls that support recovery from problems. These can range from automated backup strategies and information ‘mirroring’ to insurance policies that cover the costs associated with a successful attack on the system.

What are the three principal threats to the security of a system?

What are the three principal threats to the security of a system?
Ans: In any networked system, there are three main types of security threats:
1. Threats to the confidentiality of the system and its data: These can disclose information to people or programs that are not authorized to have access to that information.
2. Threats to the integrity of the system and its data: These threats can damage or corrupt the software or its data.
3. Threats to the availability of the system and its data: These threats can restrict access to the software or its data for authorized users.

What is the distinction between a hazard and an accident?

What is the distinction between a hazard and an accident?
Ans: Accident: An unplanned event or sequence of events which results in human death or injury, damage to property, or to the environment. An overdose of insulin is an example of an accident.
Hazard: A condition with the potential for causing or contributing to an accident. A failure of the sensor that measures blood glucose is an example of a hazard.

What is the most important difference between the two classes of safety critical system?

What is the most important difference between the two classes of safety critical system?
Ans: Safety-critical software falls into two classes:
1. Primary safety-critical software: This is software that is embedded as a controller in a system. Malfunctioning of such software can cause a hardware malfunction, which results in human injury or environmental damage. The insulin pump software, introduced in Chapter 1, is an example of a primary safety-critical system. System failure may lead to user injury.
2. Secondary safety-critical software: This is software that can indirectly result in an injury. An example of such software is a computer-aided engineering design system whose malfunctioning might result in a design fault in the object being designed. This fault may cause injury to people if the designed system malfunctions. Another example of a secondary safety-critical system is the mental health care management system, MHC-PMS. Failure of this system, whereby an unstable patient may not be treated properly, could lead to that patient injuring themselves or others.

Explain the difference between a system fault and a system failure.

Explain the difference between a system fault and a system failure.
Ans: System fault: A characteristic of a software system that can lead to a system error. The fault is the inclusion of the code to add 1 hour to the time of the last transmission, without a check if the time is greater than or equal to 23.00. System faults do not always result in system errors and system errors do not necessarily result in system failures.
System failure: An event that occurs at some point in time when the system does not deliver a service as expected by its users. No weather data is transmitted because the time is invalid. System reliability and availability problems are mostly caused by system failures.

Explain how a relatively unreliable system can provide a high level of availability.

Explain how a relatively unreliable system can provide a high level of availability.
Ans: A telephone exchange switch that routes phone calls is an example of a system where availability is more important than reliability. Users expect a dial tone when they pick up a phone, so the system has high availability requirements. If a system fault occurs while a connection is being set up, this is often quickly recoverable. Exchange switches can usually reset the system and retry the connection attempt. This can be done very quickly and phone users may not even notice that a failure has occurred. Furthermore, even if a call is interrupted, the consequences are usually not serious. Therefore, availability rather than reliability is the key dependability requirement for this type of system.

Briefly define what availability means?

Briefly define what availability means?
Ans: Availability is the probability that a system, at a point in time, will be operational and able to deliver the requested services. A telephone exchange switch that routes phone calls is an example of a system where availability is more important than reliability. Users expect a dial tone when they pick up a phone, so the system has high availability requirements.

List two other system properties that are sometimes considered to be dependability properties.

List two other system properties that are sometimes considered to be dependability properties.
Ans: 1. Maintainability: As systems are used, new requirements emerge and it is important to maintain the usefulness of a system by changing it to accommodate these new requirements. Maintainable software is software that can be adapted economically to cope with new requirements, and where there is a low probability that making changes will introduce new errors into the system.
2. Survivability: A very important attribute for Internet-based systems is survivability. Survivability is the ability of a system to continue to deliver service whilst under attack and, potentially, whilst part of the system is disabled. Work on survivability focuses on identifying key system components and ensuring that they can deliver a minimal service. Three strategies are used to enhance survivability—resistance to attack, attack recognition, and recovery from the damage caused by an attack.

What are the four principal dependability properties?

What are the four principal dependability properties?
Ans: There are four principal dependability properties:
1. Availability: Informally, the availability of a system is the probability that it will be up and running and able to deliver useful services to users at any given time.
2. Reliability: Informally, the reliability of a system is the probability, over a given period of time, that the system will correctly deliver services as expected by the user.
3. Safety: Informally, the safety of a system is a judgment of how likely it is that the system will cause damage to people or its environment.
4. Security: Informally, the security of a system is a judgment

Give three reasons why a system’s dependability is more important than its detailed functionality.

Give three reasons why a system’s dependability is more important than its detailed functionality.
Ans: The dependability of systems is now usually more important than their detailed functionality for the following reasons:
1. System failures affect a large number of people. Many systems include functionality that is rarely used. If this functionality were left out of the system, only a small number of users would be affected. System failures, which affect the availability of a system, potentially affect all users of the system. Failure may mean that normal business is impossible.
2. Users often reject systems that are unreliable, unsafe, or insecure. If users find that a system is unreliable or insecure, they will refuse to use it. Furthermore, they may also refuse to buy or use other products from the same company that produced the unreliable system, because they believe that these products are also likely to be unreliable or insecure.
3. System failure costs may be enormous. For some applications, such as a reactor control system or an aircraft navigation system, the cost of system failure is orders of magnitude greater than the cost of the control system.
4. Undependable systems may cause information loss. Data is very expensive to collect and maintain; it is usually worth much more than the computer system on which it is processed. The cost of recovering lost or corrupt data is usually very high.

What are latent conditions and active failures?

What are latent conditions and active failures?
Ans: Inevitably, all barriers have weaknesses of some kind. Reason calls these ‘latent conditions’ as they usually only contribute to system failure when some other problem occurs. For example, a weakness of a conflict alert system is that it may lead to many false alarms. Latent conditions lead to system failure when the defenses built into the system do not trap an active failure by a system operator. The human error is a trigger for the failure but should not be considered to be the sole cause of the failure. Reason explains this using his well-known ‘Swiss cheese’ model of system failure.
In this model, the defenses built into a system are compared to slices of Swiss cheese. Some types of Swiss cheese, such as Emmental, have holes and so the analogy is that the latent conditions are comparable to the holes in cheese slices. The position of these holes is not static but changes depending on the state of the overall socio-technical system. If each slice represents a barrier, failures can occur when the holes line up at the same time as a human operational error. An active failure of system operation gets through the holes and leads to an overall system failure.