Java et Mascopt. Jean-François Lalande, Michel Syska, Yann Verhoeven. Projet Mascotte, I3S-INRIA Sophia-Antipolis, France

Size: px
Start display at page:

Download "Java et Mascopt. Jean-François Lalande, Michel Syska, Yann Verhoeven. Projet Mascotte, I3S-INRIA Sophia-Antipolis, France"

Transcription

1 Java et Mascopt Jean-François Lalande, Michel Syska, Yann Verhoeven Projet Mascotte, IS-INRIA Sophia-Antipolis, France Formation Mascotte 09 janvier 00

2 Java Java et Mascopt - Formation Mascotte 09 janvier 00

3 Java - Compiler et Exécuter > ls Lancement.java Tutoriel.java > javac Tutoriel.java > javac Lancement.java > ls Lancement.class Lancement.java Tutoriel.class Tutoriel.java > export CLASSPATH=./:$CLASSPATH > java Lancement Nombre de vertex: 0 > cd /net/ailleurs/pas ici/a l autre bout du monde > java Lancement Nombre de vertex: 0 Java et Mascopt - Formation Mascotte 09 janvier 00

4 class Tutoriel Notion de Classe public int nb vertex = 0; private int nb tutoriel = 0; public void displaynbvertex() System.out.println( Nombre de vertex: + nb vertex); Java et Mascopt - Formation Mascotte 09 janvier 00

5 public class Lancement public static void main(string args []) Tutoriel tutoriel = new Tutoriel(); tutoriel.displaynbvertex(); Java et Mascopt - Formation Mascotte 09 janvier 00

6 package tutoriel.essai; public class Tutoriel public int nb vertex = 0; private int nb tutoriel = 0; Packages public void displaynbvertex() System.out.println( Nombre de vertex: + nb vertex); ls tutoriel/essai Tutoriel.java Tutoriel.class Java et Mascopt - Formation Mascotte 09 janvier 00

7 //import tutoriel.essai. ; import tutoriel.essai.tutoriel; public class Lancement public static void main(string args []) Tutoriel tutoriel = new Tutoriel(); tutoriel.displaynbvertex(); Java et Mascopt - Formation Mascotte 09 janvier 00

8 package tutoriel.essai; Constructeur public class Tutoriel public int nb vertex = 0; private int nb tutoriel = 0; public Tutoriel() System.out.println( Je me construits... ); public void displaynbvertex() System.out.println( Nombre de vertex: + nb vertex); Java et Mascopt - Formation Mascotte 09 janvier 00

9 if (condition) else while (condition) Structures de controle for(int i=0; i<; i++) System.out.println( i= +i); switch(k) case : System.out.println( Case k= ); break; case : System.out.println( Case k= ); break; default: System.out.println( case default ); Java et Mascopt - Formation Mascotte 09 janvier 00 8

10 Vector, List, ArrayList Set, HashSet, HashTable Iterateur sur des ensembles Vector v = new Vector(); v.add(new Integer(9)); v.add(new Integer()); Iterator it = v.iterator(); while (v.hasnext()) Integer courant = (Integer)v.next(); System.out.println( courant= + courant); Java et Mascopt - Formation Mascotte 09 janvier 00 9

11 Mascopt Java et Mascopt - Formation Mascotte 09 janvier 00 0

12 Récuperer Mascopt Mascopt par CVS export CVSROOT=cvs sop.inria.fr:/cvs/mascotte export CVS RSH=ssh cvs checkout mascoptdev cd mascoptdev export CVS RSH=ssh cvs d :ext:login@cvs sop.inria.fr:/cvs/mascotte checkout mascoptdev cd mascoptdev Architecture bin which contains scripts which launch applications docs wich contains the documentation files which contains some files of graphs or networks jar which contains the jar files launch which contains the code of applications licences all the licences of each part of provided code Java et Mascopt - Formation Mascotte 09 janvier 00

13 src which contains the source code of algorithms developed by users. This is the place where you can put the code of your algorithm. samples which contains some samples references of classes of mascopt. tests wich contains bad code of developers, where they test their algorithms Ou aller? toutes les algorithmes (classes) sans main() src/ tous les tests qui utilisent ces algos tests/ quand l algo marche écrire un main() dans samples/ Java et Mascopt - Formation Mascotte 09 janvier 00

14 mascoptlib Division du code en deux parties mascoptlib gestion des graphes, GUI gestion des entrées sorties algorithmes validés et robustes mascoptdev Espace utilisateurs Tests, algorithmes en développement dans mascoptdev on trouve mascoptlib.jar Java et Mascopt - Formation Mascotte 09 janvier 00

15 Makefile source SETENV make Compile les classes des utilisateurs (src/...) Compile les mains des utilisateurs (tests/...) Compile les exemples des utilisateurs (samples/...) make javadoc Construit la javadoc de mascoptdev et mascoptlib popotte: /unison/mascopt/mascoptdev> source SETENV popotte: /unison/mascopt/mascoptdev> make make s all log Cplex detected. popotte: /unison/mascopt/mascoptdev>ls classes/... Java et Mascopt - Formation Mascotte 09 janvier 00

16 Java et Mascopt - Formation Mascotte 09 janvier 00

17 Vertex n0 = new Vertex(); Vertex n = new Vertex(); Vertex n = new Vertex(); Vertex n = new Vertex(); Vertex n = new Vertex(); Vertex n = new Vertex(); Créér un graphe // creation des arcs entre les neouds Arc a0 = new Arc(n0, n); Arc a = new Arc(n, n); Arc a = new Arc(n, n); Arc a = new Arc(n, n); Arc a = new Arc(n, n); // creation d un ensemble de noeuds V VertexSet V = new VertexSet(); // on ajoue les noeuds ds l ensemble de noeuds V.add(n0); Java et Mascopt - Formation Mascotte 09 janvier 00

18 V.add(n); V.add(n); V.add(n); V.add(n); V.add(n); // creation d un ensemble d arc E ArcSet E = new ArcSet(V); E.add(a0); E.add(a); E.add(a); E.add(a); E.add(a); // cration d un Digraph graph=v,e DiGraph graph = new DiGraph(V, E); // on l affiche sur la sortie standart System.out.println( mon graph = + graph); Java et Mascopt - Formation Mascotte 09 janvier 00

19 Storing/Getting values For storing a String on vertix, arc, node set, edge set, graph: getvalue(string name) setvalue(string name, String value) For storing an Integer on nodes, arcs and graphs: getintegervalue(string name) setintegervalue(string name, Integer value) For storing an int on nodes, arcs and graphs: getintvalue(string name) setintvalue(string name, int value) For storing a Double on nodes, arcs and graphs: getdoublevalue(string name) setdoublevalue(string name, Double value) For storing a double on nodes, arcs and graphs: getdouvalue(string name) setdouvalue(string name, double value) Java et Mascopt - Formation Mascotte 09 janvier 00 8

20 Exemple: v.setvalue( poids, ); v.getvalue( poids ); v.setintegervalue( poids, new Integer(9)); v.setdouvalue( poids, 8.); Conversions: String s a = ; String s b =. ; String s c =. ; String s d = ; Integer a = new Integer(Integer.parseInt(s a)); double b = Double.parseFloat(s b); Double c = new Double(Double.parseFloat(s c)); int d = Integer.parseInt(s d); 8 Java et Mascopt - Formation Mascotte 09 janvier 00 9

21 Ensemble et sous-ensemble Remplir un set NodeSet V0 = new NodeSet(); for (int i=0; i<0;i++) V0.add(new Node(Math.random(),Math.random())); System.out.println( V0: + V0); Créér un subset NodeSet V = new NodeSet(V0); System.out.println( V: + V); Synchronisation des subset par rapport au super set Java et Mascopt - Formation Mascotte 09 janvier 00 0

22 Chemins Construction d un chemin DiGraph g =...; Path p = new Path(g.getEdgeSet()); Arc e =...; Arc e =...; Arc e =...; p.concat(e); p.concat(e); p.concat(e); Parcourir un chemin Vertex current = p.getstart(); while (current!= p.getend()) System.out.println( Current node: + current); 8 9 Java et Mascopt - Formation Mascotte 09 janvier 00

23 Arc e = p.nextarc(current); System.out.println( Current edge: + e); current = p.nextvertex(current); 8 9 Multi-path Path p =...; Path p =...; boolean ok = p.merge(p); Java et Mascopt - Formation Mascotte 09 janvier 00

24 Entrées/Sorties try // creation du writer MGLWriter writer = new MGLWriter(args[0]); // on ajoute ce qu on veut ecrire (ici le graph) writer.add(graph); // on pourrai rajouter d autres objets... // on ecrit writer.write(); catch (java.io.filenotfoundexception fe) fe.printstacktrace(); // le tout dans un bloc try catch pq ca peut lancer des exceptions Java et Mascopt - Formation Mascotte 09 janvier 00

25 // on cree le reader. MGLReader mglr = new MGLReader(args[0]); try mglr.parse(); catch (Exception e) System.out.println( Error when parsing file! ); // on recupere un iterateur sur les graphs du fichier Iterator itg = mglr.getabstractgraphs(); while (itg.hasnext()) System.out.println( Graph read = + itg.next()); Java et Mascopt - Formation Mascotte 09 janvier 00

26 GraphChooser gc = new GraphChooser(); HashMap my graphs = null; if (args.length < ) my graphs = gc.getgraphhashmapgml(); else my graphs = gc.getgraphhashmapgml(args[0]); DiGraph G = (DiGraph) my graphs.get( graph Cable ); DiGraph R = (DiGraph) my graphs.get( graph Request ); Java et Mascopt - Formation Mascotte 09 janvier 00

27 Network files fichier MGL contenant: Graphe nommé graph Request Graphe nommé graph Cable Ces deux graphes partagent l ensemble de nœuds Cette convention risque de changer... Java et Mascopt - Formation Mascotte 09 janvier 00

28 The God format c Reseau de test: cables c n e 0 e 0 e e 0 c Reseau de test: requetes c r 0 8 r 0 r 0 9 test.graph test.od Java et Mascopt - Formation Mascotte 09 janvier 00

29 Conversion en mgl odmgl programme dans mascoptdev/bin utilisation: java OdMglLauncher usage: odmgl filein.graph filein.od fileout.mgl [ h] [ help] Try odmgl help for more options. Java et Mascopt - Formation Mascotte 09 janvier 00 8

Mascopt. Table of contents

Mascopt. Table of contents Table of contents 1 Mascopt project...3 1.1 Mascopt project... 3 1.2 Getting Mascopt... 3 1.3 Download Mascopt...4 1.4 Download Tools... 7 1.5 Installation Manual...7 1.6 Build your Javadoc... 11 1.7 Installing

More information

Classes internes, Classes locales, Classes anonymes

Classes internes, Classes locales, Classes anonymes Classes internes, Classes locales, Classes anonymes Victor Marsault Aldric Degorre CPOO 2015 Enum (1) 2 Quand les utiliser: disjonctions de cas type au sens courant (eg. type de messages d erreur, type

More information

VLANs. Commutation LAN et Wireless Chapitre 3

VLANs. Commutation LAN et Wireless Chapitre 3 VLANs Commutation LAN et Wireless Chapitre 3 ITE I Chapter 6 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 1 Objectifs Expliquer le rôle des VLANs dans un réseau convergent. Expliquer le rôle

More information

UE 2I002 (ex LI230) : éléments de programmation par objets avec Java TD10 - Exceptions

UE 2I002 (ex LI230) : éléments de programmation par objets avec Java TD10 - Exceptions UE 2I002 (ex LI230) : éléments de programmation par objets avec Java TD10 - Exceptions Juliana Silva Bernardes juliana.silva_bernardes@upmc.fr http://www.lcqb.upmc.fr/julianab/teaching/java/ Sumary Exceptions

More information

Graphs and Networks The (, D) problem

Graphs and Networks The (, D) problem Graphs and Networks The (, D) problem Jean-Claude Bermond DR CNRS May 12, 2011 The (, D) Problem Network Graph Nodes (users, routers, mobiles, towns, web pages) Vertices Links (fibers, frequencies, roads,

More information

Collections. Collections. USTL routier 1

Collections. Collections. USTL   routier 1 Collections USTL http://www.lifl.fr/ routier 1 Premier regard sur les collections java.util Une collection est un groupe d objets (ses éléments). On trouve des collections de comportements différents (listes,

More information

Diverse Routing with the star property

Diverse Routing with the star property Diverse Routing with the star property Jean-Claude Bermond, David Coudert, Gianlorenzo D Angelo, Fatima Zahra Moataz RESEARCH REPORT N 8071 September 2012 Project-Team MASCOTTE ISSN 0249-6399 ISRN INRIA/RR--8071--FR+ENG

More information

TD : Compilateur ml2java semaine 3

TD : Compilateur ml2java semaine 3 Module 4I504-2018fev TD 3 page 1/7 TD : Compilateur ml2java semaine 3 Objectif(s) 22 février 2018 Manipulation d un traducteur de code ML vers Java. 1 ML2Java Exercice 1 Structure du runtime 1. Déterminer

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

SunVTS Quick Reference Card

SunVTS Quick Reference Card SunVTS Quick Reference Card Sun Microsystems, Inc. www.sun.com Part No. 820-1672-10 September 2007, Revision 01 Submit comments about this document at: http://www.sun.com/hwdocs/feedback Copyright 2007

More information

Collections version 1.4

Collections version 1.4 Collections version 1.4 Programmation Orientée Objet Jean-Christophe Routier Licence mention Informatique Université de Lille 1 Lille 1 - Licence Informatique Programmation Orientée Objet 1 Premier regard

More information

Sun StorEdge Network 2 Gb Brocade SilkWorm 3200, 3800, and Core Fabric Switches Guide to Documentation, 3.x / Firmware

Sun StorEdge Network 2 Gb Brocade SilkWorm 3200, 3800, and Core Fabric Switches Guide to Documentation, 3.x / Firmware Network 2 Gb SilkWorm 3200, 3800, and 12000 Core Fabric Switches Guide to Documentation, 3.x / 4.2.0 Firmware For late-breaking about the Network 2 Gb SilkWorm 3200 and 3800 Core Fabric Switches with v3.x

More information

CSC 1214: Object-Oriented Programming

CSC 1214: Object-Oriented Programming CSC 1214: Object-Oriented Programming J. Kizito Makerere University e-mail: jkizito@cis.mak.ac.ug www: http://serval.ug/~jona materials: http://serval.ug/~jona/materials/csc1214 e-learning environment:

More information

Sun Java System Directory Server Release Notes for HP-UX

Sun Java System Directory Server Release Notes for HP-UX Sun Java System Directory Server Release Notes for HP-UX Version 5.2 2005Q1 Part Number 819-1566-10 These Release Notes contain important information available at the time of release of Sun Java System

More information

Conception Orientée Objet. Romain Rouvoy Licence mention Informatique Université Lille 1

Conception Orientée Objet. Romain Rouvoy Licence mention Informatique Université Lille 1 Conception Orientée Objet Romain Rouvoy Licence mention Informatique Université Lille 1 1 Menu du jour 1. Coder c est douter 2. De la génération 3. À l analyse 2 Mauvaise conception? Où est le problème?

More information

SunVTS Quick Reference Card

SunVTS Quick Reference Card SunVTS Quick Reference Card Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303-4900 U.S.A. 650-960-1300 Part No. 806-6519-10 January 2001, Revision A Send comments about this document to:

More information

Sun Control Station. Performance Module. Sun Microsystems, Inc. Part No September 2003, Revision A

Sun Control Station. Performance Module. Sun Microsystems, Inc.   Part No September 2003, Revision A Sun Control Station Performance Module Sun Microsystems, Inc. www.sun.com Part No. 817-3610-10 September 2003, Revision A Submit comments about this document at: http://www.sun.com/hwdocs/feedback Copyright

More information

TP 2 : Application SnapTchat 20 février 2015

TP 2 : Application SnapTchat 20 février 2015 TP 2 : Application SnapTchat 20 février 2015 SnapTchat : cahier de charges L objectif de ce TP est de développer une simple application d échange de messages courts entre deux utilisateurs. Le cahier des

More information

Sun Fire TM E2900 Systems Getting Started

Sun Fire TM E2900 Systems Getting Started Sun Fire TM E2900 Systems Getting Started Accessing the Sun Fire E2900 Documentation Files The full documentation set for Sun Fire E2900 systems is available on the documentation CD (doc CD). 1. Insert

More information

PROGRAMMING FUNDAMENTALS

PROGRAMMING FUNDAMENTALS PROGRAMMING FUNDAMENTALS Q1. Name any two Object Oriented Programming languages? Q2. Why is java called a platform independent language? Q3. Elaborate the java Compilation process. Q4. Why do we write

More information

Sun Java System Connector for Microsoft Outlook Q4 Installation Guide

Sun Java System Connector for Microsoft Outlook Q4 Installation Guide Sun Java System Connector for Microsoft Outlook 7 2005Q4 Installation Guide Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No: 819 2565 10 October 2005 Copyright 2005 Sun

More information

About Transferring License Rights for. PL7 V4.5 and Unity Pro V2.3 SP1 Software

About Transferring License Rights for. PL7 V4.5 and Unity Pro V2.3 SP1 Software Page 1 of 38 Click here to access the English Cliquez ici pour accéder au Français Klicken Sie hier, um zum Deutschen zu gelangen Premete qui per accedere all' Italiano Pulse acquì para acceder al Español

More information

Solaris 8 6/00 Sun Hardware Roadmap

Solaris 8 6/00 Sun Hardware Roadmap Solaris 8 6/00 Sun Hardware Roadmap This document is a guide to the CDs and documents involved in installing the Solaris 8 6/00 software. Note The arrangement of CDs in the Solaris 8 product is different

More information

COMP 110/L Lecture 13. Kyle Dewey

COMP 110/L Lecture 13. Kyle Dewey COMP 110/L Lecture 13 Kyle Dewey Outline char, charat() Command-line arguments and arrays Array access Array length Array update Integer.parseInt char, charat() char Represents a single character char

More information

Sun Management Center 3.5 Supplement for VSP High-End Entry Servers (Workgroup Servers)

Sun Management Center 3.5 Supplement for VSP High-End Entry Servers (Workgroup Servers) Sun Management Center 3.5 Supplement for VSP High-End Entry Servers (Workgroup Servers) Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. 650-960-1300 Part No. 816-7259-10 August

More information

INFO Object-Oriented Programming

INFO Object-Oriented Programming INFO0062 - Object-Oriented Programming Exercise session #1 - Basic Java programs Jean-François Grailet University of Liège Faculty of Applied Sciences Academic Year 2017-2018 Creating a simple Java program

More information

ILLUSTRATION DES EXCEPTIONS

ILLUSTRATION DES EXCEPTIONS ILLUSTRATION DES EXCEPTIONS Exemple 1: Capture d'une exception prédéfinie package exception1; public class PrintArgs public static void main ( String[ ] args ) System.out.println ( " Affichage des paramètres

More information

Solaris 9 9/04 Installation Roadmap

Solaris 9 9/04 Installation Roadmap Solaris 9 9/04 Installation Roadmap This document is a guide to the DVD-ROM, CD-ROMs, and documents involved in installing the Solaris 9 9/04 software. Unless otherwise specified, this document refers

More information

Input from Files. Buffered Reader

Input from Files. Buffered Reader Input from Files Buffered Reader Input from files is always text. You can convert it to ints using Integer.parseInt() We use BufferedReaders to minimize the number of reads to the file. The Buffer reads

More information

Voir ces deux articles : [3]

Voir ces deux articles :  [3] Publié sur WindowsLinux.net (http://www.windowslinux.net) Accueil > Microsoft Security Essentials Microsoft Security Essentials [1] Téléchargements Le téléchargement de MSE (Microsoft Security Essentials)

More information

Solaris 8 User Supplement. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A.

Solaris 8 User Supplement. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A. Solaris 8 User Supplement Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303-4900 U.S.A. Part Number 806-3646 10 June 2000 Copyright 2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo

More information

Sun Management Center 4.0 Version 3 Add-On Software Release Notes

Sun Management Center 4.0 Version 3 Add-On Software Release Notes Sun Management Center 4.0 Version 3 Add-On Software Release Notes Sun Microsystems, Inc. www.sun.com Part No. 820-4491-10 March 2008, Revision A Submit comments about this document at: http://www.sun.com/hwdocs/feedback

More information

Java Programming with Eclipse

Java Programming with Eclipse One Introduction to Java 2 Usage of Java 3 Structure of Java 4 Flexibility of Java Programming 5 Using the Eclipse Software 6 Two Running Java in Eclipse 7 Introduction 8 Using Eclipse 9 Workspace Launcher

More information

Formation. Application Server Description du cours

Formation. Application Server Description du cours Formation Application Server 2017 Description du cours Formation Application Server 2017 Description Cette formation d une durée de 5 jours aborde les concepts de l infrastructure logicielle System Platform

More information

CSCI 136 Written Exam #1 Fundamentals of Computer Science II Spring 2014

CSCI 136 Written Exam #1 Fundamentals of Computer Science II Spring 2014 CSCI 136 Written Exam #1 Fundamentals of Computer Science II Spring 2014 Name: This exam consists of 5 problems on the following 6 pages. You may use your double- sided hand- written 8 ½ x 11 note sheet

More information

Héritage (2) Programmation Orientée Objet. Jean-Christophe Routier Licence mention Informatique Université Lille Sciences et Technologies

Héritage (2) Programmation Orientée Objet. Jean-Christophe Routier Licence mention Informatique Université Lille Sciences et Technologies Héritage (2) Programmation Orientée Objet Jean-Christophe Routier Licence mention Informatique Université Lille Sciences et Technologies Université Lille Sciences et Technologies - Licence mention Informatique

More information

Solaris PC NetLink 1.2 Installation Guide

Solaris PC NetLink 1.2 Installation Guide Solaris PC NetLink 1.2 Installation Guide Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A. 650-960-1300 Part No. 806-4277-10 July 2000, Revision A Send comments about this document

More information

CSC Java Programming, Fall Java Data Types and Control Constructs

CSC Java Programming, Fall Java Data Types and Control Constructs CSC 243 - Java Programming, Fall 2016 Java Data Types and Control Constructs Java Types In general, a type is collection of possible values Main categories of Java types: Primitive/built-in Object/Reference

More information

Sun Fire V100 Server Product Notes

Sun Fire V100 Server Product Notes Sun Fire V100 Server Product Notes Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303-4900 U.S.A. 650-960-1300 Part No. 816-2754-13 May 2002 Revision A Send comments about this document to:

More information

Workflow Concepts and Techniques

Workflow Concepts and Techniques Workflow Concepts and Techniques Hala Skaf-Molli Maître de Conférences Université de Nantes Hala.Skaf@univ-nantes.fr http://pagesperso.lina.univ-nantes.fr/~skaf-h Workflow Concepts and Techniques General

More information

Java Desktop System Release 2 Installation Guide

Java Desktop System Release 2 Installation Guide Java Desktop System Release 2 Installation Guide Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No: 817 5178 10 April 2004 Copyright 2004 Sun Microsystems, Inc. 4150 Network

More information

Sun Ultra TM. 5 and Ultra 10 Product Notes. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A.

Sun Ultra TM. 5 and Ultra 10 Product Notes. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A. Sun Ultra TM 5 and Ultra 10 Product Notes Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303-4900 U.S.A. 650-960-1300 Part No. 806-6750-11 November 2000, Revision A Send comments about this

More information

C212 Early Evaluation Exam Mon Feb Name: Please provide brief (common sense) justifications with your answers below.

C212 Early Evaluation Exam Mon Feb Name: Please provide brief (common sense) justifications with your answers below. C212 Early Evaluation Exam Mon Feb 10 2014 Name: Please provide brief (common sense) justifications with your answers below. 1. What is the type (and value) of this expression: 5 * (7 + 4 / 2) 2. What

More information

Solaris 8 User Supplement. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A.

Solaris 8 User Supplement. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A. Solaris 8 User Supplement Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303-4900 U.S.A. Part Number 806-5181 10 October 2000 Copyright 2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo

More information

(A) 99 (B) 100 (C) 101 (D) 100 initial integers plus any additional integers required during program execution

(A) 99 (B) 100 (C) 101 (D) 100 initial integers plus any additional integers required during program execution Ch 5 Arrays Multiple Choice 01. An array is a (A) (B) (C) (D) data structure with one, or more, elements of the same type. data structure with LIFO access. data structure, which allows transfer between

More information

CIS 265 Exam 2 First Name Last Name

CIS 265 Exam 2 First Name Last Name CIS 265 Exam 2 First Name Last Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) Which of the data types below does not allow duplicates? 1)

More information

IBM MQ version CD

IBM MQ version CD Guide MQ 27/03/2018 IBM MQ version 9.0.5 CD Luc-Michel Demey Demey Consulting LMD@Demey-Consulting.fr Version 0.01 Mars 2018 Rappels MQ 904 MQ 9 CD disponible sur AIX à partir de MQ 904 Nouvelle solution

More information

Sun Management Center 4.0 Version 4 Add-On Software Release Notes

Sun Management Center 4.0 Version 4 Add-On Software Release Notes Sun Management Center 4.0 Version 4 Add-On Software Release Notes Sun Microsystems, Inc. www.sun.com Part No. 820-4781-10 June 2008, Revision A Submit comments about this document at: http://www.sun.com/hwdocs/feedback

More information

Real-Time Java: LAB #2 RealTime Threads: Scheduling & Release Models

Real-Time Java: LAB #2 RealTime Threads: Scheduling & Release Models Real-Time Java: LAB #2 RealTime Threads: Scheduling & Release Models The goal of this lab is to learn how to use the two types of RTSJ schedulable entities: RealtimeThread and AsyncEventHandler and to

More information

Routing Reconfiguration/Process Number: Networks with Shared Bandwidth.

Routing Reconfiguration/Process Number: Networks with Shared Bandwidth. INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE Routing Reconfiguration/Process Number: Networks with Shared Bandwidth. David Coudert Dorian Mazauric Nicolas Nisse N 6790 January 2009

More information

Solaris 8 Desktop User Supplement. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A.

Solaris 8 Desktop User Supplement. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A. Solaris 8 Desktop User Supplement Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303-4900 U.S.A. Part Number 806-6610-10 January 2001 Copyright 2001 Sun Microsystems, Inc. 901 San Antonio

More information

ELIESER : USER MANUAL

ELIESER : USER MANUAL INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE ELIESER : USER MANUAL Nicolas MERLET, Josiane ZERUBIA N 0180 Septembre 1995 PROGRAMME 4 apport technique ISSN 0249-6399 ELIESER : USER

More information

Getting started with Java

Getting started with Java Getting started with Java by Vlad Costel Ungureanu for Learn Stuff Programming Languages A programming language is a formal constructed language designed to communicate instructions to a machine, particularly

More information

Sun Management Center 3.6 Version 7 Add-On Software Release Notes

Sun Management Center 3.6 Version 7 Add-On Software Release Notes Sun Management Center 3.6 Version 7 Add-On Software Release Notes For Sun Fire, Sun Blade, Netra, and Sun Ultra Systems Sun Microsystems, Inc. www.sun.com Part No. 820-2406-10 October 2007, Revision A

More information

Sun Fire X4250 Volume Configuration Guide

Sun Fire X4250 Volume Configuration Guide Sun Fire X4250 Volume Configuration Guide Sun Microsystems, Inc. www.sun.com Part No. 820-6890-10 March 2009 Revision A Submit comments about this document at: http://www.sun.com/hwdocs/feedback Copyright

More information

Patron: Visitor(Visiteur) TSP - June 2013 Patrons de Conception J Paul Gibson Visitor.1

Patron: Visitor(Visiteur) TSP - June 2013 Patrons de Conception J Paul Gibson Visitor.1 Patron: Visitor(Visiteur) TSP - June 2013 Patrons de Conception J Paul Gibson Visitor.1 Découpler classes et traitements, afin de pouvoir ajouter de nouveaux traitements sans ajouter de nouvelles méthodes

More information

Sun Management Center 3.5 Service Availability Manager User s Guide

Sun Management Center 3.5 Service Availability Manager User s Guide Sun Management Center 3.5 Service Availability Manager User s Guide Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No: 816 7416 10 May, 2003 Copyright 2003 Sun Microsystems,

More information

Sun Java System Access Manager Release Notes for Microsoft Windows

Sun Java System Access Manager Release Notes for Microsoft Windows Sun Java System Access Manager Release Notes for Microsoft Windows Version 6 2005Q1 Part Number 819-1574-10 These Release Notes contain important information available at the time of release of Sun Java

More information

man pages section 6: Demos

man pages section 6: Demos man pages section 6: Demos Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No: 816 0221 10 May 2002 Copyright 2002 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara,

More information

Java: Comment Text. Introduction. Concepts

Java: Comment Text. Introduction. Concepts Java: Comment Text Introduction Comment text is text included in source code that is ignored by the compiler and does not cause any machine-language object code to be generated. It is written into the

More information

Java 1.8 Programming

Java 1.8 Programming One Introduction to Java 2 Usage of Java 3 Structure of Java 4 Flexibility of Java Programming 5 Two Running Java in Dos 6 Using the DOS Window 7 DOS Operating System Commands 8 Compiling and Executing

More information

Lecture Notes CPSC 224 (Spring 2012) Today... Java basics. S. Bowers 1 of 8

Lecture Notes CPSC 224 (Spring 2012) Today... Java basics. S. Bowers 1 of 8 Today... Java basics S. Bowers 1 of 8 Java main method (cont.) In Java, main looks like this: public class HelloWorld { public static void main(string[] args) { System.out.println("Hello World!"); Q: How

More information

Java Intro 3. Java Intro 3. Class Libraries and the Java API. Outline

Java Intro 3. Java Intro 3. Class Libraries and the Java API. Outline Java Intro 3 9/7/2007 1 Java Intro 3 Outline Java API Packages Access Rules, Class Visibility Strings as Objects Wrapper classes Static Attributes & Methods Hello World details 9/7/2007 2 Class Libraries

More information

Algorithmes certifiants

Algorithmes certifiants Michel Habib, LIAFA, Paris Diderot Algorithmique avancée M1 8 février 2010 Schedule of the talk 1 Programme du cours 2010-2011 2 3 Minimum spanning trees and shortest paths Consequences 4 Plan du cours

More information

MODULE 6q - Exceptions

MODULE 6q - Exceptions MODULE 6q - Exceptions THE TRY-CATCH CONSTRUCT Three different exceptions are referred to in the program below. They are the ArrayIndexOutOfBoundsException which is built-into Java and two others, BadLuckException

More information

TD 2. Correction TP info

TD 2. Correction TP info TP 2 Exercice 3 : Impôts Sub impot() Dim montant As Integer montant = Cells(1, 1).Value Dim montanttot As Integer Select Case montant Case 0 To 1000 montanttot = 0.1 * montant Case 1001 To 5000 montanttot

More information

WDR Installation Guide

WDR Installation Guide WDR Installation Guide Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No. 816-4820-10 September 2002, Revision A Send comments about this document to: docfeedback@sun.com

More information

System Controller CPU Board, Netra CompactPCI, Installation Guide. Sun Fire E25K/E20K Systems Sun Fire 15K/12K Systems

System Controller CPU Board, Netra CompactPCI, Installation Guide. Sun Fire E25K/E20K Systems Sun Fire 15K/12K Systems 8F ON 1 3 3 4 5 6 System Controller CPU Board, Netra CompactPCI, Installation Guide Sun Fire E25K/E20K Systems Sun Fire 15K/12K Systems Firmware Requirements Sun Fire E25K/E20K systems and upgraded Sun

More information

An overview of Java, Data types and variables

An overview of Java, Data types and variables An overview of Java, Data types and variables Lecture 2 from (UNIT IV) Prepared by Mrs. K.M. Sanghavi 1 2 Hello World // HelloWorld.java: Hello World program import java.lang.*; class HelloWorld { public

More information

ControlLogix Redundant Power Supply Chassis Adapter Module

ControlLogix Redundant Power Supply Chassis Adapter Module Installation Instructions ControlLogix Redundant Power Supply Chassis Adapter Module Catalog Number 1756-PSCA Use this publication as a guide when installing the ControlLogix 1756-PSCA chassis adapter

More information

Solaris 8 Desktop User Supplement

Solaris 8 Desktop User Supplement Solaris 8 Desktop User Supplement Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303-4900 U.S.A. Part No: 806 7501 10 April 2001 Copyright 2001 Sun Microsystems, Inc. 901 San Antonio Road,

More information

(A) 99 ** (B) 100 (C) 101 (D) 100 initial integers plus any additional integers required during program execution

(A) 99 ** (B) 100 (C) 101 (D) 100 initial integers plus any additional integers required during program execution Ch 5 Arrays Multiple Choice Test 01. An array is a ** (A) data structure with one, or more, elements of the same type. (B) data structure with LIFO access. (C) data structure, which allows transfer between

More information

Lecture 2. COMP1406/1006 (the Java course) Fall M. Jason Hinek Carleton University

Lecture 2. COMP1406/1006 (the Java course) Fall M. Jason Hinek Carleton University Lecture 2 COMP1406/1006 (the Java course) Fall 2013 M. Jason Hinek Carleton University today s agenda a quick look back (last Thursday) assignment 0 is posted and is due this Friday at 2pm Java compiling

More information

Getting It Right COMS W4115. Prof. Stephen A. Edwards Spring 2007 Columbia University Department of Computer Science

Getting It Right COMS W4115. Prof. Stephen A. Edwards Spring 2007 Columbia University Department of Computer Science Getting It Right COMS W4115 Prof. Stephen A. Edwards Spring 2007 Columbia University Department of Computer Science Getting It Right Your compiler is a large software system developed by four people. How

More information

Traditional Chinese Solaris Release Overview

Traditional Chinese Solaris Release Overview Traditional Chinese Solaris Release Overview Sun Microsystems, Inc. 901 N. San Antonio Road Palo Alto, CA 94303-4900 U.S.A. Part No: 806 3489 10 March 2000 Copyright 2000 Sun Microsystems, Inc. 901 N.

More information

Windows Server 2003 Installation Configuration Et Administration Pdf

Windows Server 2003 Installation Configuration Et Administration Pdf Windows Server 2003 Installation Configuration Et Administration Pdf Enable SharePoint Administration Service. 55. 4.5. Configure Windows the installation and audit configuration processes. 1.1. Netwrix

More information

PASS4TEST IT 인증시험덤프전문사이트

PASS4TEST IT 인증시험덤프전문사이트 PASS4TEST IT 인증시험덤프전문사이트 http://www.pass4test.net 일년동안무료업데이트 Exam : 1z0-809 Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z0-809 Exam's Question and Answers 1 from

More information

Chapitre 6 Programmation orientée aspect (AOP)

Chapitre 6 Programmation orientée aspect (AOP) 6 Programmation orientée aspect (AOP) 2I1AC3 : Génie logiciel et Patrons de conception Régis Clouard, ENSICAEN - GREYC «L'homme est le meilleur ordinateur que l'on puisse embarquer dans un engin spatial...

More information

Oracle ZFS Storage Appliance Cabling Guide. For ZS3-x, 7x20 Controllers, and DE2-24, Sun Disk Shelves

Oracle ZFS Storage Appliance Cabling Guide. For ZS3-x, 7x20 Controllers, and DE2-24, Sun Disk Shelves Oracle ZFS Storage Appliance Cabling Guide For ZS3-x, 7x20 Controllers, and DE2-24, Sun Disk Shelves Part No: E53670-01 June 2014 Copyright 2009, 2014, Oracle and/or its affiliates. All rights reserved.

More information

QUIZ 2 Introduction to Computer Science (COMP 250) Mon. March 2, 2009 Professor Michael Langer

QUIZ 2 Introduction to Computer Science (COMP 250) Mon. March 2, 2009 Professor Michael Langer QUIZ 2 Introduction to Computer Science (COMP 250) Mon. March 2, 2009 Professor Michael Langer STUDENT NAME: ID: The exam consists of five questions. There are a total of 10 points. You may use the back

More information

Font Administrator User s Guide. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A.

Font Administrator User s Guide. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A. Font Administrator User s Guide Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 4900 U.S.A. Part Number 806 2903 10 February 2000 Copyright 2000 Sun Microsystems, Inc. 901 San Antonio Road,

More information

Sequence structure. The computer executes java statements one after the other in the order in which they are written. Total = total +grade;

Sequence structure. The computer executes java statements one after the other in the order in which they are written. Total = total +grade; Control Statements Control Statements All programs could be written in terms of only one of three control structures: Sequence Structure Selection Structure Repetition Structure Sequence structure The

More information

SunPCi Release Notes

SunPCi Release Notes SunPCi 1.2.1 Release Notes Sun Microsystems, Inc._ 901 San Antonio Road Palo Alto, CA 94303-4900 USA 650 960-1300 Fax 650 969-9131 Part No. 806-4785-10 March 2000, Revision 01 Send comments about this

More information

Java Desktop System Release 3 Troubleshooting Guide

Java Desktop System Release 3 Troubleshooting Guide Java Desktop System Release 3 Troubleshooting Guide Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No: 817 7304 10 January, 2005 Copyright 2005 Sun Microsystems, Inc. 4150

More information

TD4 Design Pattern, Utilisation de l'api Java - Corrigé. Exercice 1 Gestion d'une base de client

TD4 Design Pattern, Utilisation de l'api Java - Corrigé. Exercice 1 Gestion d'une base de client Programmation Orientée Objet IUT Lumière, DUT STID 2 2007-2008 Pierre Parrend Classe gestionclient.scenario package gestionclient; import java.io.ioexception; import java.util.calendar; TD4 Design Pattern,

More information

Question1 (10 points) : Patron Aggregator

Question1 (10 points) : Patron Aggregator NSY102 Une idée de solution Conception de logiciels Intranet : Patrons et Canevas. Session de Juillet 2010-durée : 2 heures Tous documents papiers autorisés Cnam / Paris-HTO & FOD Sommaire : Question 1

More information

CSE 201 JAVA PROGRAMMING I. Copyright 2016 by Smart Coding School

CSE 201 JAVA PROGRAMMING I. Copyright 2016 by Smart Coding School CSE 201 JAVA PROGRAMMING I Primitive Data Type Primitive Data Type 8-bit signed Two s complement Integer -128 ~ 127 Primitive Data Type 16-bit signed Two s complement Integer -32768 ~ 32767 Primitive Data

More information

5. Enterprise JavaBeans 5.3 Entity Beans. Entity Beans

5. Enterprise JavaBeans 5.3 Entity Beans. Entity Beans Entity Beans Vue objet d une base de données (exemples: client, compte, ) en général, une ligne d une table relationnelle (SGBD-R) ou un objet persistant (SGBD- OO) sont persistant (long-lived) la gestion

More information

Overview of Java s Support for Polymorphism

Overview of Java s Support for Polymorphism Overview of Java s Support for Polymorphism Douglas C. Schmidt d.schmidt@vanderbilt.edu www.dre.vanderbilt.edu/~schmidt Professor of Computer Science Institute for Software Integrated Systems Vanderbilt

More information

TP 3 des architectures logicielles Séance 3 : Architecture n-tiers distribuée à base d EJB. 1 Préparation de l environnement Eclipse

TP 3 des architectures logicielles Séance 3 : Architecture n-tiers distribuée à base d EJB. 1 Préparation de l environnement Eclipse TP 3 des architectures logicielles Séance 3 : Architecture n-tiers distribuée à base d EJB 1 Préparation de l environnement Eclipse 1. Environment Used JDK 7 (Java SE 7) EJB 3.0 Eclipse JBoss Tools Core

More information

Programming Basics. Digital Urban Visualization. People as Flows. ia

Programming Basics.  Digital Urban Visualization. People as Flows. ia Programming Basics Digital Urban Visualization. People as Flows. 28.09.2015 ia zuend@arch.ethz.ch treyer@arch.ethz.ch Programming? Programming is the interaction between the programmer and the computer.

More information

Canada s Energy Future:

Canada s Energy Future: Page 1 of 9 1DWLRQDO (QHUJ\ %RDUG 2IILFH QDWLRQDO GH OҋpQHUJLH Canada s Energy Future: ENERGY SUPPLY AND DEMAND PROJECTIONS TO 2035 Appendices AN ENERGY MARKET ASSESSMENT NOVEMBER 2011 Page 2 of 9 Canada

More information

READ ME FIRST QUICK INSTALL GUIDE. Wireless Controller XWC Includes: One: XWC-1000 Wireless Controller One: Rack Mount Kit One: Power Cord

READ ME FIRST QUICK INSTALL GUIDE. Wireless Controller XWC Includes: One: XWC-1000 Wireless Controller One: Rack Mount Kit One: Power Cord READ ME FIRST QUICK INSTALL GUIDE Wireless Controller XWC-1000 Includes: One: XWC-1000 Wireless Controller One: Rack Mount Kit One: Power Cord E E READ ME FIRST - COMPATIBILITY Your XWC-1000 Wireless Controller

More information

Introduction to Java

Introduction to Java Introduction to Java Module 1: Getting started, Java Basics 22/01/2010 Prepared by Chris Panayiotou for EPL 233 1 Lab Objectives o Objective: Learn how to write, compile and execute HelloWorld.java Learn

More information

Forte for Java (Community Edition) QuickStart Guide

Forte for Java (Community Edition) QuickStart Guide Forte for Java (Community Edition) QuickStart Guide Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 USA 650 960-1300 fax 650 969-9131 Part No.: 806-4569-10 Revision 01, February 2000 Forte

More information

Midterm I - CSE11 Fall 2013 CLOSED BOOK, CLOSED NOTES 50 minutes, 100 points Total.

Midterm I - CSE11 Fall 2013 CLOSED BOOK, CLOSED NOTES 50 minutes, 100 points Total. Midterm I - CSE11 Fall 2013 CLOSED BOOK, CLOSED NOTES 50 minutes, 100 points Total. Name: ID: Problem 1) (8 points) For the following code segment, what are the values of i, j, k, and d, after the segment

More information

Sun Ultra 2 UltraSPARC -IIModuleX-Option

Sun Ultra 2 UltraSPARC -IIModuleX-Option Sun Ultra 2 UltraSPARC -IIModuleX-Option The Network Is the Computer Sun Microsystems Computer Company 2550 Garcia Avenue Mountain View, CA 94043 USA 415 960-1300 fax 415 969-9131 Part No.: 805-0937-10

More information

UltraSPARC - IIs CPU Module Installation Guide

UltraSPARC - IIs CPU Module Installation Guide UltraSPARC - IIs CPU Module Installation Guide Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A. 650-960-1300 Part No. 816-0711-10 March 2001, Revision A Send comments about this document

More information

Programming II (CS300)

Programming II (CS300) 1 Programming II (CS300) Chapter 04: Exception Handling MOUNA KACEM mouna@cs.wisc.edu Spring 2018 Creating Classes 2 Introduction Exception Handling Common Exceptions Exceptions with Methods Assertions

More information