architectural styles 3

21
ARCHITECTURAL STYLES - 3 Interpreters Process Control Other Architectures Dr Reeja S R Professor CSE Dept SJEC, Vamanjoor, Mangalore

Upload: dr-reeja-s-r

Post on 08-Jan-2017

73 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Architectural styles   3

ARCHITECTURAL STYLES - 3

InterpretersProcess Control

Other Architectures

Dr Reeja S RProfessorCSE Dept

SJEC, Vamanjoor, Mangalore

Page 2: Architectural styles   3

INTERPRETERSSuitable for applications in which the most appropriate language or machine for executing the solution is not directly available

Page 3: Architectural styles   3

Interpreter

An interpreter takes a program written in one language and interprets it to another language

Page 4: Architectural styles   3

Interpreter

Page 5: Architectural styles   3

Interpreter

An interpreter has 4 Components: “Program” being executed and its data Interpretation engine and its state

Connectors procedure calls and shared state.

Page 6: Architectural styles   3

Interpreter Examples

Programming Language Compilers: Java, Smalltalk

Rule Based Systems: Prolog, Coral Scripting Languages: Awk, Perl

Page 7: Architectural styles   3

PROCESS CONTROL ARCHITECTURAL STYLE

Page 8: Architectural styles   3

Terminologies Process variable – measurable property in the

process. Controlled variable – the process variable

whose value, the system has to control Set point – the desired value for controlled

variable Manipulated variable - the process variable

that in changed in order to keep the controlled variable at the set point

In a water tank, if the level of water (controlled variable) is not up to the mark (set point), then increase flow of water (manipulated variable)

Page 9: Architectural styles   3

Process Control

The purpose of a process control system is to maintain specified

properties of outputs (controlled variables) of the process at the given

reference values (set points)

Page 10: Architectural styles   3

Types of Process Control loops

1. Open Loop2. Closed Loop / Feedback

loop3. Feed Forward loop

Page 11: Architectural styles   3

Open Loop Control - Process runs without surveillance

An open-loop system is expected to faithfully follow its input command or set point regardless of the final result

Page 12: Architectural styles   3

Open Loop Control

This is an open loop system because, system does not monitor or measure the temperature of the output air to see if it is heated to the desired temperature

Page 13: Architectural styles   3

Closed Loop Control Closed-loop systems are designed to automatically achieve

and maintain the desired output condition by comparing it with the actual condition.

Page 14: Architectural styles   3

Feedback Loop

Page 15: Architectural styles   3

Feed forward Loop

It anticipates future effects on the controlled variable by measuring other process variables and adjusts the process based on these variables.

Page 16: Architectural styles   3

Feedback Vs Feedforward

Car's cruise-control system that maintains speed of the car even in varying terrains

If it has feedback control, when there is a slope and therefore a speed

reduction, the feedback controller would compensate by applying

additional throttle to the engine.

If it uses a feed-forward controller instead, the controller would calculate

the slope beforehand and throttle the engine before any speed reduction occurs. In this sense, the controller predicts the incoming deviation and compensates for it.

Page 17: Architectural styles   3

Feed forward Loop

It anticipates future effects on the controlled variable by measuring other process variables and adjusts the process based on these variables.

Page 18: Architectural styles   3

Other Familiar architectures Distributed processes

Page 19: Architectural styles   3

Other Familiar architectures

Main Program/ Sub-routine Centralized control, sequential execution in some order

Page 20: Architectural styles   3

Other Familiar architectures

Domain specific architectures Organizational structure tailored for a family

of applications such as avionics, command and control, vehicle-management, etc

Page 21: Architectural styles   3

Other Familiar architectures

State transition systems Applicable for Reactive systems