IDL Interface Definition Language. IDL products Interface repository Dynamic Interface Static skeletons Client IDL stubs Dynamic skeletons Server Object.

Slides:



Advertisements
Similar presentations
ESO - Tokyo July, 2005 ALMA Common Software Training- Course Session 1b Distributed Systems G.Chiozzi.
Advertisements

Slides for Chapter 20: CORBA Case Study From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 4, © Addison-Wesley 2005.
Programming Languages and Paradigms The C Programming Language.
C# Language Report By Trevor Adams. Language History Developed by Microsoft Developed by Microsoft Principal Software Architect Principal Software Architect.
II. Middleware for Distributed Systems
CS6223: Distributed Systems Remote Procedure Call (RPC)
CORBA Architecture Nitin Prabhu. Outline CORBA Object Model CORBA Architecture Static Invocation Dynamic Invocation CORBA Communication Model.
© Chinese University, CSE Dept. Distributed Systems / Distributed Systems Topic 2: Distributed Software Engineering Using CORBA Dr. Michael R. Lyu.
CORBA IDL 1 Introduction to CORBA IDL Overview  OMG IDL is purely a descriptive language  OMG IDL obeys the same lexical rules as C++  OMG IDL grammar.
Netprog CORBA Intro1 CORBA Common Object Request Broker Architecture Based partially on Notes by D. Hollinger and Java Network Programming and Distributed.
OCT 1 Master of Information System Management Organizational Communications and Distributed Object Technologies Lecture 11: CORBA.
CORBA Case Study By Jeffrey Oliver March March 17, 2003CORBA Case Study by J. T. Oliver2 History The CORBA (Common Object Request Broker Architecture)
Principles of Object-Oriented Software Development Interface Definition Language.
A First Java ORB Application 1  Object Request Broker (ORB)  This is the object manager in CORBA  Mechanisms for specifying interfaces  Interface Definition.
Constants. 2 Objectives Describe ways to create constants –const –readonly –enum.
II. Middleware for Distributed Systems
Variables and constants Applications of Computer Programming in Earth Sciences Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences.
CORBA Chapter 17 Coulouris text. Today’s Topics CORBA History and goals CORBA RMI CORBA services The Distributed Whiteboard Revisited.
Data Types.
1 Procedural Concept The main program coordinates calls to procedures and hands over appropriate data as parameters.
1 Review: Two Programming Paradigms Structural (Procedural) Object-Oriented PROGRAM PROGRAM FUNCTION OBJECT Operations Data OBJECT Operations Data OBJECT.
Data Type. A data type defines a set of values that a variable can store along with a set of operations that can be performed on that variable. Common.
Copyright © 2003 ProsoftTraining. All rights reserved. Distributed Object Computing Using Java and CORBA.
From Coulouris, Dollimore, Kindberg and Blair Distributed Systems: Concepts and Design Edition 5, © Addison-Wesley 2012 Slides for Chapter 8: Distributed.
CORBA Distributed Technology CASE STUDY Juan C. Navarro.
C Tokens Identifiers Keywords Constants Operators Special symbols.
C-Language Keywords(C99)
Information Management NTU Interprocess Communication and Middleware.
Copyright (c) Qusay H. Mahmoud 1 The Naming Service (Client’s View) A tree-like directory for object references Much like a file system: provides directory.
Algorithm Programming Bar-Ilan University תשס"ח by Moshe Fresko.
1 Cisco Unified Application Environment Developers Conference 2008© 2008 Cisco Systems, Inc. All rights reserved.Cisco Public Introduction to Etch Scott.
GUIDED BY- A.S.MODI MADE BY- 1. SHWETA ALWANI 2. PRIYANKA.
Slides for Chapter 17: CORBA Case Study From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley 2001.
Copyright 2005, The Ohio State University 1 Pointers, Dynamic Data, and Reference Types Review on Pointers Reference Variables Dynamic Memory Allocation.
Variables and Data Types.  Variable: Portion of memory for storing a determined value.  Could be numerical, could be character or sequence of characters.
 Structures are like arrays except that they allow many variables of different types grouped together under the same name. For example you can create.
Data Structure and c K.S.Prabhu Lecturer All Deaf Educational Technology.
CORBA (Common Object Request Broker Architechture) Aniket Prabhune Varun Saini Balaprasuna Chennupati Lally Singh.
 In the java programming language, a keyword is one of 50 reserved words which have a predefined meaning in the language; because of this,
1 Distributed Programming low level: sending data among distributed computations higher level: supporting invocations among distributed computations network.
(C) 2003 University of ManchesterCS31010 Lecture 14: CORBA.
Structure A collection of values (members) struct date{ int day; char month[10]; int year; }; Declare a structure variable struct date today; struct struct_name.
 constant represented by a name, just like a variable, but whose value cannot be changed  The const keyword precedes the type, name, and initialization.
 Data Type is a basic classification which identifies different types of data.  Data Types helps in: › Determining the possible values of a variable.
Introduction C# program is collection of classes Classes are collection of methods and some statements That statements contains tokens C# includes five.
Object Oriented Programming Lecture 2: BallWorld.
Java Programming Language Lecture27- An Introduction.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
C++ Lesson 1.
Asst.Prof.Dr. Tayfun ÖZGÜR
The C++ Data Types Fundamental Data Types
Data types Data types Basic types
LESSON 3 IO, Variables and Operators
Interface Definition Language
C++, OBJECT ORIENTED PROGRAMMING
CORBA (Common Object Request Broker Architecture)
CMSC 104, Section 4 Richard Chang
Reserved Words.
Advanced Programming Basics
C++ Basics.
פרטים נוספים בסילבוס של הקורס
Govt. Polytechnic,Dhangar
IDL to TTCN-3 mapping issues
Prof. Bhushan Trivedi Director GLS Institute of Computer Technology
Variables in C Declaring , Naming, and Using Variables.
2. Second Step for Learning C++ Programming • Data Type • Char • Float
Programming Language C Language.
Module 2 Variables, Data Types and Arithmetic
C Language B. DHIVYA 17PCA140 II MCA.
Variables and Constants
Presentation transcript:

IDL Interface Definition Language

IDL products Interface repository Dynamic Interface Static skeletons Client IDL stubs Dynamic skeletons Server Object adapter Object Request Broker IDL interface definition

Main IDL elements Modules Interfaces Data types Constants Attributes Operations Exceptions

IDL data types Basic types short long float boolean... Derived types using the typedef keyword Structured types enum struct union array Variable types: dynamic arrays, string The Any type

Basic types and constants Integer: [ unsigned ] short long Reals: float double 8 bits: char octet boolean Generic: any const double Pi = ; const string Msg = “This is a message” ; const unsigned long Mask =(1<<5)|(1<<7) ;

Structured types enum CreditCard {Master, Visa, none}; struct PersonRecord { string name ; short age ; } union Customer switch (CreditCard) { case Master: string cardNumber ;... }

Arrays, sequences, and strings // arrays typedef long longVect [30]; typedef long longArray [2][10]; // sequences typedef sequence shortSeq; typedef sequence shortSeq20; // strings typedef string boundedString;

Module declaration module { }

Interface declaration interface [:inheritance] { }

Method declaration ( ) [raises ] [context] ; Method parameters can be: –in :sent to the server –out :received from the server –inout :both directions

Attribute declaration attribute string name ; readonly attribute short age ; Attributes: are declared as variables get and set methods are provided

An interface definition example module Animals { // Interface for a dog interface Dog : Animal { // a public attribute attribute integer age; // an exception that can be raised exception notInterested (string why);

An interface definition example // public methods void Bark (in short duration) raises (notInterested) ; void Sit (in string local) raises (notInterested) ; void Play (in Dog friend) raises (notInterested) ; boolean Alive () ; }

IDL - exemplo module Escola { interface Curso; // declarado, mas não definido interface Estudante { attribute string nome; attribute unsigned long matricula; exception ClasseLotada; void registra (in Curso curso) raises (ClasseLotada); exception ReqIncompleto; void gradua ( ) raises (ReqIncompleto); typedef sequence ListaCursos; ListaCursos cursos_registrados(); }