Behavioral completeness

From CSSEMediaWiki
Revision as of 04:42, 14 September 2008 by Tureiti Keith (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From [1]:

Each software object not only knows the properties of the real-world entity that it represents, but also knows how to model the behaviour of that entity. ... We call this principle 'behavioural completeness'. This does not mean that the object must implement every possible behaviour that could ever be needed. It means that all the behaviours associated with an object that are necessary to the application being developed should be properties of that object and not implemented somewhere else in the system

Example

In [1], an example of a Wheel object in "a simulated truck suspension system" is given:

[Each] Wheel object knows not just the dimensions and mass of a wheel, but also how to turn, to bounce, to model friction, and to pass on forces to the Axle object.These behaviours may operate continuously, or they may be specifically invoked by sending a message to the object.

References

  1. ^ http://www.nakedobjects.org/book/section5.html
Personal tools