23
Design Office Genindexe 2009 – 2010 Emilie Arnault Charles Beauchamps Pauline Beyou 1

Design Office Genindexe 2009 – 2010

Embed Size (px)

DESCRIPTION

Design Office Genindexe 2009 – 2010. Emilie Arnault Charles Beauchamps Pauline Beyou. Outline. Introduction Genindexe Specifications UML Design Sequence diagrams Class diagram State diagram JAVA Code JUnit tests Conclusion. Introduction. Genindexe. Veterinarian laboratory - PowerPoint PPT Presentation

Citation preview

Page 1: Design Office  Genindexe 2009 – 2010

1

Design Office Genindexe2009 – 2010

Emilie ArnaultCharles Beauchamps

Pauline Beyou

Page 2: Design Office  Genindexe 2009 – 2010

2

Outline Introduction

› Genindexe› Specifications

UML Design› Sequence diagrams› Class diagram› State diagram

JAVA Code

JUnit tests

Conclusion

Page 3: Design Office  Genindexe 2009 – 2010

3Introduction

Page 4: Design Office  Genindexe 2009 – 2010

4

Genindexe

Veterinarian laboratory Genetic tests Different types of customer

› Vets› Farmers› Individuals

Design Office Design of their LIMS› 1st semester : functional kernel› 2d semester : Database and HCI

Page 5: Design Office  Genindexe 2009 – 2010

5

Specifications

Analysis type management User right management Customer management Order management Billing Analysis management Result sending Storage management

Page 6: Design Office  Genindexe 2009 – 2010

6UML Design

Sequence diagrams

Page 7: Design Office  Genindexe 2009 – 2010

7

OR

DER

CR

EATIO

N

Page 8: Design Office  Genindexe 2009 – 2010

8

AN

ALY

SIS

AN

D O

RD

ER

MA

NA

GEM

EN

T

(EN

D A

NA

LYSIS

CH

EC

KIN

G)

Page 9: Design Office  Genindexe 2009 – 2010

9

CLA

SS

DIA

GR

AM

Page 10: Design Office  Genindexe 2009 – 2010

10

Page 11: Design Office  Genindexe 2009 – 2010

11UML Design

State diagram

Page 12: Design Office  Genindexe 2009 – 2010

12

STA

TE D

IAG

RA

M O

F AN

ALY

SIS

Page 13: Design Office  Genindexe 2009 – 2010

13JAVA Code

Page 14: Design Office  Genindexe 2009 – 2010

14

Elaborated methods

Constructors : Order, Invoice Order.editingInvoice

› Calls the Invoice constructor › In Parameter

HashMap : <AnalysType, [Unit Price, Quantity]> Analysis.checkAnalysis PDF generation

› Invoice› Results› Batches tracking forms

Page 15: Design Office  Genindexe 2009 – 2010

15JUnit Tests

Page 16: Design Office  Genindexe 2009 – 2010

16

Test planning

Animal Type Address Internet Account

Animal Analysis Type Customer

Analysis

Batch

Order

Batch Tracking FormGlobal ReportInvoice

User Details

API-bdd

mock tests

Page 17: Design Office  Genindexe 2009 – 2010

17

PD

F EX

AM

PLE

S

Page 18: Design Office  Genindexe 2009 – 2010

18

PD

F EX

AM

PLE

S

Page 19: Design Office  Genindexe 2009 – 2010

19

Test example : UserDetails.isAtLeastTest

Aim of the method : to determine if a user has at least the level right of the given parameter

Page 20: Design Office  Genindexe 2009 – 2010

20

T : TechnicianV : ValidatorI : Interpreter

isAtLeast (BioClearranceLvl level)

Bool res := true

level = T

this.level = V or I or

VI or URes := false

Return res

end

level = V

this.level = T or I or

URes := false

level = I

this.level = T or V or TV or U

Res := false

Throws Exception

no

yes

yes

yes

yes

yes

yes

no

no

no

no

no

VI : Validator & InterpreterTV : Technician & ValidatorU : Unauthorized

Page 21: Design Office  Genindexe 2009 – 2010

21Conclusion

Page 22: Design Office  Genindexe 2009 – 2010

22

Improvements needed

Storage Management Administrative user right management E-mail sending Printing

One test left…

Page 23: Design Office  Genindexe 2009 – 2010

23

Thank you for attention