GeeCON Prague 2014*
The moose likes Java in General and the fly likes Interface design - IDL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Interface design - IDL" Watch "Interface design - IDL" New topic
Author

Interface design - IDL

Andrew Parker
Ranch Hand

Joined: Nov 12, 2001
Posts: 178
Hi,
I would like to ask how to design the interface properly and what is IDL? Can IDL help on design the interface?
Any other suggestions for designing interface?
Thanks in advance.
Andrew
Dani G
Greenhorn

Joined: Feb 22, 2002
Posts: 1
Hi,
to design an interface you can simply use the concept of java interfaces for java. For C++ you can write pure virtual classes.
Of course you can also use IDL, but i think it is an overkill for small projects which are not intended for distributed computing with Corba.
IDL is an Interface Descriptive Language.
It is usually used for distributed programming with Corba. You can specify the interface of a client/server in the IDL syntax und produce out of the IDL the source code for the client and the server.(by an idl compiler)
The advantage is, that you are free what code to implement the client or server as long as there exists an idl compiler for the language of your choice.
Example:
You define an interface for a client/server application by an IDL.
You can create the client code with an idl-to-java compiler to implement the client in java, and on the other side compile the same idl with a idl-to-C++ compiler to implement the server in C++, or vice versa. The idl compiler also generates the needed helper classes for a corba application.
Hope this helps
 
GeeCON Prague 2014
 
subject: Interface design - IDL