Rapport de Laboratoire
Lab # 2
Cours SEG2506
Remis le 5 Février 2014 dans le cadre du cours de SEG2506
Université d’Ottawa
Objectif:
L’objectif du laboratoire 2 est de développer une machine d’état UML pour les différents modèles de feu de circulation (léger, modéré et élevé) mais aussi de générer le code java en utilisant UMPLE et l’intégrer dans un programme existant.
Introduction :
// A FAIRE
Conception
1. Modèle de circulation léger ou LowTrafficLight
• Machine d’état
• Code Umple class LowTrafficLight { status { northAndSouthArrow { entry / { trafficLightManager.northArrow(); } entry / { trafficLightManager.southArrow(); } entry / { trafficLightManager.westRed(); } entry / {*…show more content…*

outhArrow); wasEventProcessed = true; break; default: // Other states do respond to this event } return wasEventProcessed; } private void setStatus(Status aStatus) { status = aStatus; // entry actions and do activities switch(status) { case northAndSouthArrow: // line 3 "model.ump" trafficLightManager.northArrow(); // line 4 "model.ump" trafficLightManager.southArrow(); // line 4 "model.ump" trafficLightManager.westRed(); // line 5 "model.ump" trafficLightManager.eastRed(); break; case northAndSouthGreen: // line 8 "model.ump" trafficLightManager.northGreen(); // line 9 "model.ump" trafficLightManager.southGreen(); // line 9 "model.ump" trafficLightManager.westRed(); // line 10 "model.ump" trafficLightManager.eastRed(); break; case northAndSouthYellow: // line 13 "model.ump" trafficLightManager.northYellow(); // line 14 "model.ump" trafficLightManager.southYellow(); // line 14 "model.ump" trafficLightManager.westRed(); // line 15 "model.ump" trafficLightManager.eastRed(); break; case northAndSouthRed: // line 19 "model.ump" trafficLightManager.northRed(); // line 20 "model.ump"

outhArrow); wasEventProcessed = true; break; default: // Other states do respond to this event } return wasEventProcessed; } private void setStatus(Status aStatus) { status = aStatus; // entry actions and do activities switch(status) { case northAndSouthArrow: // line 3 "model.ump" trafficLightManager.northArrow(); // line 4 "model.ump" trafficLightManager.southArrow(); // line 4 "model.ump" trafficLightManager.westRed(); // line 5 "model.ump" trafficLightManager.eastRed(); break; case northAndSouthGreen: // line 8 "model.ump" trafficLightManager.northGreen(); // line 9 "model.ump" trafficLightManager.southGreen(); // line 9 "model.ump" trafficLightManager.westRed(); // line 10 "model.ump" trafficLightManager.eastRed(); break; case northAndSouthYellow: // line 13 "model.ump" trafficLightManager.northYellow(); // line 14 "model.ump" trafficLightManager.southYellow(); // line 14 "model.ump" trafficLightManager.westRed(); // line 15 "model.ump" trafficLightManager.eastRed(); break; case northAndSouthRed: // line 19 "model.ump" trafficLightManager.northRed(); // line 20 "model.ump"

Related

- Better Essays
## Unit 1 Lab

- 1050 Words
- 5 Pages

2. The subject who was diagnosed with secondary hypothyroidism was given levothyroxine (synthetic Thyroxine). After 6 weeks of

- 1050 Words
- 5 Pages

Better Essays - Better Essays
## Aem 4230 Hw 2

- 1067 Words
- 5 Pages

information about a course of action on his part to which other executives might have

- 1067 Words
- 5 Pages

Better Essays - Satisfactory Essays
## Btec Level 3 Unit 13 P1

- 405 Words
- 2 Pages

A locksmith is someone who can repair and make locks. There are a number of instances where a person will need a locksmith. One of the main reasons that people contact a locksmith is because they get locked out of their vehicle or home. Most people's first instinct is to panic when they get locked out of their vehicle or home.

- 405 Words
- 2 Pages

Satisfactory Essays - Decent Essays
## Labpaq Lab Techniques and Measurements Essay

- 1512 Words
- 7 Pages

Purpose: To learn about the international system of units (SI), to become familiar with common lab equipment and techniques, to gain proficiency in determining volume, mass, length, and temperature of a variety of items using common laboratory measurement devices, to learn to combine units to determine density and concentration, and to use laboratory equipment to create serial dilutions and determine the density and concentration of each dilution.

- 1512 Words
- 7 Pages

Decent Essays - Better Essays
## Nt1330 Unit 1

- 801 Words
- 4 Pages

A directory service is a network service that stores, organises and makes resources available to users and application. Resources like e-mail addresses, computers, and devices like printers. It also makes sure the computer networks are properly secured.

- 801 Words
- 4 Pages

Better Essays - Satisfactory Essays
## A3352 Unit 5 Lab Report

- 155 Words
- 1 Pages

IC50: 1.5 μM, 3.5 μM and 0.5 μM for Panc02, MCF-7 and T47-D cell lines, respectively

- 155 Words
- 1 Pages

Satisfactory Essays - Satisfactory Essays
## Scin 135 Lab 2

- 679 Words
- 3 Pages

Describe in your own words what is unique about the Extended Rotation with Commercial Thinning treatment.

- 679 Words
- 3 Pages

Satisfactory Essays - Satisfactory Essays
## En1320 Unit 5 Lab Report

- 114 Words
- 1 Pages

In the LULC/Soil/Slope tool box, the last option is slope tab. User has to select to number of slope classes for the watershed. Two options are available to define the slope discretization in the slope definition tool box. First one is single slope and second one is multiple slopes. If user select single slope in the tool box, it creates slope range class 0-999%, if user selects multiple slopes, the tool allows to create 5 classes. For the kaddam watershed five slope classes has been selected in the tool box. The classes are 1) 0-5% 2) 5-10% 3) 10-15% 4) 15-35% and 5) 35-9999%. The slope map of the kaddam shown in the

- 114 Words
- 1 Pages

Satisfactory Essays - Satisfactory Essays
## En1320 Unit 2 Lab Report

- 97 Words
- 1 Pages

This supports our hypothesis that the amplitude being adjusted doesn't effect the rate at which it swings. Now we move on to our question: Would mass be a factor? The first bob was replaced with something much smaller in weight. We returned the displacement back to 10 cms while keeping the length the same. We recorded the 10 periods and the average seems to be around the same approximate rate of 2.01. This debunks the theory of the pendulum being dependent on mass. Changing both the displacement and weight seems to not affect the rate in anyway.

- 97 Words
- 1 Pages

Satisfactory Essays - Satisfactory Essays
## Scin 135 Lab 4

- 635 Words
- 3 Pages

Using your own words, what is the cause of deforestation, as listed on the Global Forest Change map, for your study area?

- 635 Words
- 3 Pages

Satisfactory Essays - Satisfactory Essays
## Envs/1301 Unit 2

- 659 Words
- 3 Pages

Are any of these options and/or types of programs available in YOUR local community/village/town? Which ones? Explain.

- 659 Words
- 3 Pages

Satisfactory Essays - Satisfactory Essays
## Pt1420 Unit 6 Lab

- 571 Words
- 3 Pages

Using the settings tools on the right hand side of the screen, reformat your screen in order to verify the solution of your system.

- 571 Words
- 3 Pages

Satisfactory Essays - Satisfactory Essays
## Pt1420 Unit 4 Lab

- 214 Words
- 1 Pages

The behavior of different physical quantities on velocity, temperature, concentration, nanoparticle volume fraction and density of motile microorganisms is investigated in this section. The numerical results are discussed for various values of the parameters. $0.5\leq m \leq 1$, $Nc = 0.5$, $N_{1} = 0.2$, $0\leq NR \leq 2$ $-0.5\leq\alpha \leq 0.5$ $k_{1} = 1$, $Nd = 0.1$, $Sc = 0.1$, $Ld = 0.1$, $0.1\leq \lambda \leq 1$, $0.5\leq\beta \leq 10$, $1\leq Pr \leq 10$, $Le = 5$, $0\leq Ec \leq 1.5$, $0.1\leq Nt \leq 0.9$, $0.1 \leq Rb \leq 2$, $\Omega = 0.2$, $0\leq Pe \leq 1$, $1 \leq Sb \leq 10$ and $0.1 \leq Nb \leq 0.6$. The selected values for the parameters are as a result of the physics of the Casson nanofluid. Positive and negative values

- 214 Words
- 1 Pages

Satisfactory Essays - Satisfactory Essays
## Alpinion E-Cube 15 EX

- 380 Words
- 2 Pages

“Our E-Cube 15 EX was approved and endorsed by Dr. Kevin Kelly, one of the most important radiologist in the United States, and the inventor of Sonocine, an automated breast ultrasound exam system. Dr. Kelly compared the image quality for breast of the E-Cube 15 EX to be at the same level of high-end more expensive systems. In the past, he has officially endorsed only a few very expensive machines and is now including our cutting edge, more affordable http://www.ultrasoundrepair.com/ultrasound-sales/alpinion-e-cube [Alpinion Ecube 15EX __title__ Alpinion E-Cube]amongst their ranks,” says Rafael Carballido, a distributor for Alpinion.

- 380 Words
- 2 Pages

Satisfactory Essays