International Journal of Scientific & Engineering Research, Volume 5, Issue 4, April-2014 518

ISSN 2229-5518

Control Models in Software Engineering

Akshay Sharma, Manushi Shah

Abstract— This research paper gives you the brief idea of the different control models used in software engineering and its types. Control models are widely classified into centralized and event-based control models. Centralized models are classified into call-return model and manager model whilst event-based models are classified into broadcast models and interrupt-driven models. Every model has its own application and expertise.

Index Terms— Software Engineering, Control Model, Centralized Model, Event-based Model

—————————— ——————————

1 INTRODUCTION

Software engineering is a very important aspect of business world when it comes to development of software projects. Software engineering is application of engineering to the design, development and maintainence of software.Control models are models deployed in software engineering that are concerned with the control flow between the sub- systems. They are distinct from the system decomposition model. They are classified into centralized and event-based models.Centralized models are classified into call-return
and manager model. Event-based models are classified into broadcast and interrupt-driven models.

2 TYPES OF CONTROL MODELS

2.1 Centralized Model

Centralized model is a formulation of centralized control in which one subsystem has overall responsibility for control and starts and stops other subsystems. It is a control sub- system that takes responsibility for managing the execu- tion of other subsystems.

2.2 Event-based Model

Event-based models are those in which each sub-system can respond to externally generated events from other subsystems or the system’s environement. It is a system driven by externally generated events where the timing of the events is out with the control of the subsystems which process the event.

3 TYPES OF CENTRALIZED MODELS

3.1 Call-return Model

In call-return model, it is a model which has top-down sub- routine architecture where control starts at the top of a
subroutine hierarchy and moves downwards. It is applica-
ble to sequential systems. This familiar model is embedded in programming languages such as C, Ada and Pascal. Con- trol passes from a higher-level routine in the hierarchy to lower-level routine.This call-return model may be used at the module level to control functions or objects.

Fig(3.1).Call Return Model

The call-return model is illustrated in Figure 3.1.The main program calls routines 1, 2 and 3 whilst Routine 1 can call Routines 1.1 or 1.2. This is a model of program dynamics. It is not a structural model; there is no need for Routine
1.1, for example, to be a part of Routine 1.

3.2 Manager Model

Manager model is applicable to concurrent systems. One system component controls the stopping, starting and co-

IJSER © 2014 http://www.ijser.org

International Journal of Scientific & Engineering Research, Volume 5, Issue 4, April-2014 519

ISSN 2229-5518

ordination of other system processes. It can be imple- mented in sequential systems as a case system.

Fig (3.2). Manager Model

Figure 3.2 is an illustration of centralized management model for a concurrent system. It is often used in real time systems which do not have very tight constraints.The cen- tral controller manages the execution of a set of processes associated with sensors and actuators.The system control- ler process decides when processes should be started or stopped depending on system state variables. The control- ler usually loops continuously, polling sensors and other processes for events or state changes. For this reason, this model is called an event-loop model.

4 TYPES OF EVENT-BASED MODELS

4.1 Broadcast Model

It is a model in which an event is broadcast to all subsys- tems. Any subsystem which can handle the broadcasting event may behave as a broadcast model. These are effec-
tive in integrating components distributed across different computers on a network. The advantage of this model is that evolution is simple. This distribution is transparent to other components. The disadvantage is that the compo- nents don’t know if the event will be handled.

Fig (4.1).Broadcast Model

In Figure 4.1, components register an interest in specific events. When these events occur, control is transferred to the component that can handle the event.

4.2 Interrupt-driven Model

Interrupt-driven model is used in real time systems where interrupts are detected by and interrupt handler and passed to some other component for processing. This model is used in real-time systems where immediate re- sponse to some event is necessary.The advantage is that it allows very fast responses to events to be implemented. The disadvantage is that it is complex to program an diffi- cult to validate.

IJSER © 2014 http://www.ijser.org

International Journal of Scientific & Engineering Research, Volume 5, Issue 4, April-2014 520

ISSN 2229-5518

5.3 References

[1] http://www.cs.odu.edu/~price/cs451/Lectures/05desi gn/arch/arch_htsu2.html
[2] http://ifs.host.cs.st- an- drews.ac.uk/Books/SE9/Web/Architecture/ArchPatter ns/CentralControl.html
[3] http://www.slideshare.net/ahirsiddharth/software- engineering-ch11
[4] http://phoenix.goucher.edu/~kelliher/cs319/nov13.ht ml
[5] http://en.wikipedia.org/wiki/Management_control_sy stem

Fig (4.2). Interrupt Driven Model

In Figure 4.2, there are known number of interrupt types with a handler for each type. Each type of interrupt is as- sociated with the memory location where it handler’s ad- dress is stored.The interrupt handler may start or stop the processes in response to the event signaled by the inter- rupt.

5 END SECTIONS

5.1 Conclusion

In an era of meeting deadlines and covering an execution of services round the clock, these control models deploy efficient solutions to new requirements of reaching goals and meeting expectations of the clients towards the soft- wares engineered.

5.2 Acknowledgments

We the authors would like to thank Prof. Sharnil Pandya for giving his valuable time and proficiency in guiding us making our research paper a consistent and important re-
source of information.
[6] http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumbe r=5719840&url=http%3A%2F%2Fieeexplore.ieee.org%
2Fxpls%2Fabs_all.jsp%3Farnumber%3D5719840
[7] http://en.wikipedia.org/wiki/Empirical_process_(proc ess_control_model)

IJSER © 2014 http://www.ijser.org