Over 10 Million Study Resources Now at Your Fingertips

Download as :
Rating : ⭐⭐⭐⭐⭐
Price : $10.99
Pages: 2

And the thermostat may have switched the compressor off

of components, each of which is represented as an instance of a class of component. The function of each component is defined within its class definition. The structure of a device is defined by links between the instances of components that make up the device. The device may be in one of several states, for example a refrigerator door may be open or closed, and the thermostat may have switched the compressor on or off. These states are defined by setting the values of instance variables.

Object-oriented programming is particularly suited to device modeling because of this clear separation of function, structure, and state. These three aspects of a device are fundamental to understanding its operation and possible malfunctions. A contrast can be drawn with mathematical modeling, where a device can often be modeled more easily by considering its overall activity than by analyzing the component processes.

conduit — transports substances between other functional primitives.

A fifth class, sensor, may be added to this list. A sensor object simply displays the value of its input.

Regulator Reservoir Conduit


Electrical Fluid Electrical Fluid Food


regulator reservoir reservoir



Valve Cabinet
How It Works
Login account
Login Your Account
Add to cart
Add to Cart
Make payment
Document download
Download File
PageId: ELI25B9C76
Uploaded by :
Page 1 Preview
and the thermostat may have switched the compresso
Sell Your Old Documents & Earn Wallet Balance