my dog learned polymorphism*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Specification perspective Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Specification perspective" Watch "Specification perspective" New topic
Author

Specification perspective

Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118
Conceptual perspective has no commitment with implementation. Implementation perspective are language dependent. No problem here.
What about specification perspective? As it describes software interface, is it correct to say that it is software but not language dependent?
Adrian
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,
A/C to me you are right.Specification perspective is not dependent on language.In specification perspective we conside What the System must do Not How the System will do.Whereas in implementation perspective we consider How.In Specification perspective we design how in terms of interface.And implementation of this interface can be implemented in any language.Therefore Specification perspective is language independent whereas implementation language is language dependent.
For Example:-
The craft(UML diagram) design in Specification perspective can be implemented in Java,C++,Smalltalk etc.
Bye,
Viki.


Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining http://groups.yahoo.com/group/IBM340Exam/
Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118
Thanks Viki, now this concept sound better.
Adrian
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
So you are saying that the interface wouldn't depend on the used language? So, for example, it wouldn't depend on availability of multiple inheritance?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118
Preuss,
Note that every typed language should provide multiple inheritance, if not for classes, at least for interfaces. Java is an axample for the later language group. So, your specification model, that describes only type, can be maped to any language.
Adrian
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Adrian Ferreira:
Note that every typed language should provide multiple inheritance, if not for classes, at least for interfaces. Java is an axample for the later language group. So, your specification model, that describes only type, can be maped to any language.

Besides the fact that you are obviously already restricting the specification to OO languages - would you also say that the *appropriatness* of the specified design is independent of the fact of how MI is supported by the language?
So, for example, is a diamond structure in the specified type system equally appropriate for a system implemented in Java and a system implemented in C++?
Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118

Besides the fact that you are obviously already restricting the specification to OO languages - would you also say that the *appropriatness* of the specified design is independent of the fact of how MI is supported by the language?

You are wright, I talking about OOA&D to be implemented in OO language.
There is no fixed rules to define specification or implementation perspective model. I think your question make sense but I prefer to see specification as interfaces for classes but not how it will be mapped to any language.
May be you take my specification model and would like to see more details, it is more personal than techincal point.
Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118
I return to this post to agree with Preuss and to clear some point I miss before.
I found that IMB ICE exam consider that specification model is language dependent. See this question and the correct answer.

Which of the following are TRUE about interpreting class diagrams from
different perspectives?
a) Specification perspective class diagrams are developed without considering the programming language that might be used to implement it.
b) The conceptual perspective class diagram of an application would not include all the classesr equired and their details, rather, they would only identify domain classes.
c) In the conceptual perspective, associations represent relationships between classes, whereas they represent responsibilities in the specification perspective.
d) Operations (the processes that a class knows to carry out) should be used in conceptual models to specify the interface of a class.
Multiple Select - Please select all of the correcta nswers (this question has 2 correct choices).
Answer: b, c

This is a trick question to me and again ranchers helped a lot.
Adrian
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,
Can anyone explain the reasons of answers in good detail?.
Bye,
Viki.
Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118
Hi Vikrama,
Item a) is the problem since it is true according to Larman (pg. 144) but incorrect according to IBM ICE test. As you can read above, Preuss also agree that item a) should be wrong.

In specification perspective, the diagrams are interpreted as describing software abstractions or components with specification and interfaces, but no commitment to a particular implementation (for example, not specifically a class in C# or Java).
Larman, 2nd ed. pg. 144

May be one interpret this different but IIMO, this is another question that is not really important in the exam. Many questions in ICE exam looks like this one.
Adrian
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,
Thanx Adrian & Ilja for clearing doubt.
Bye,
Viki.
 
 
subject: Specification perspective