Coder Social home page Coder Social logo

sbrppcc's Introduction

Simulation à base de réseau de pétri pour le Cloud Computing

Consignes

Phase 1 - Dans la première phase nous vous demandons d’implémenter les fonctionnalités demandées, sans interface graphique, c’est-à-dire :

  • définir le fichier d’entrée qui permet de décrire les services, leur réseau de pétri interne et les relations entre les services
  • un parseur de ce fichier d’entrée
  • concevoir les fonctions d’exécution du système en suivant les règles évoquées plus haut

Phase 2 - Juste avant la deuxième phase vous allez interchanger vos codes. Le deuxième phase consiste à implémenter une interface graphique qui permet :

  1. de concevoir une application comme celle présentée sur la Figure 1, et écrire le fichier correspondant

  2. le simulateur graphique du déploiement de l’application créée. C’est pour implémenter le simulateur que le temps d’exécution associé aux transitions est utile. Il faut que l’interface graphique montre en temps réel et dynamiquement le déroulement du dé- ploiement en suivant les règles évoquées plus haut, donc en utilisant les fonctionnalités codées dans la phase 1. Chacun d’entre vous va utiliser le code de la phase 1 d’un autre pour implémenter la phase 2, donc bien évidemment il faut faire en sorte de donner un code propre, bien structuré et bien commenté à votre camarade de classe.

Outils

IDE : Netbeans 8.2

YAML Parser : yamlbeans

Gestion des Dépendances : Maven

Diagramme de Classe

diagramme de classe

Documentation

La javadoc du projet est accessible ici

Exemple de fichier d'entrée

application :
    services :
        - service: &s1
            nom : service 1
            etats :
                - etat : &s1e1
                    nom : e1
                    nbJetons : 1
                - etat : &s1e2
                    nom : e2
                    nbJetons : 0
                - etat : &s1e3
                    nom : e3
                    nbJetons : 0
                - etat : &s1e4
                    nom : e4
                    nbJetons : 0
                - etat : &s1e5
                    nom : e5
                    nbJetons : 0
            transitions :
                - transition : &s1t1
                    nom : t1
                    etatsEntrants :
                        - etatEntrant : *s1e1
                    etatsSortants :
                        - etatSortant : *s1e2
                - transition : &s1t2
                    nom : t2
                    etatsEntrants :
                        - etatEntrant : *s1e2
                    etatsSortants :
                        - etatSortant : *s1e3
                - transition : &s1t3
                    nom : t3
                    etatsEntrants : 
                        - etatEntrant : *s1e2
                    etatsSortants:
                        - etatSortant : *s1e4
                - transition : &s1t4
                    nom : t4
                    etatsEntrants : 
                        - etatEntrant : *s1e3
                        - etatEntrant : *s1e4
                    etatsSortants :
                        - etatSortant : *s1e5
        - service: &s2
            nom : service 2
            etats :
                - etat : &s2e1
                    nom : e1
                    nbJetons : 1
                - etat : &s2e2
                    nom : e2
                    nbJetons : 0
                - etat : &s2e3
                    nom : e3
                    nbJetons : 0
                - etat : &s2e4
                    nom : e4
                    nbJetons : 0
                - etat : &s2e5
                    nom : e5
                    nbJetons : 0
            transitions :
                - transition : &s2t1 
                    nom : t1
                    etatsEntrants :
                        - etatEntrant : *s2e1
                    etatsSortants :
                        - etatSortant : *s2e2
                - transition : &s2t2 
                    nom : t2
                    etatsEntrants :
                        - etatEntrant : *s2e2
                    etatsSortants :
                        - etatSortant : *s2e3
                - transition : &s2t3 
                    nom : t3
                    etatsEntrants : 
                        - etatEntrant : *s2e2 
                    etatsSortants :
                        - etatSortant : *s2e4
                - transition : &s2t4 
                    nom : t4
                    etatsEntrants :
                        - etatEntrant : *s2e4
                    etatsSortants :
                        - etatSortant : *s2e5
        - service: &s3
            nom : service 3
            etats :
                - etat : &s3e1
                    nom : e1
                    nbJetons : 1
                - etat : &s3e2
                    nom : e2
                    nbJetons : 0
                - etat : &s3e3
                    nom : e3
                    nbJetons : 0
                - etat : &s3e4
                    nom : e4
                    nbJetons : 0
                - etat : &s3e5
                    nom : e5
                    nbJetons : 0
                - etat : &s3e6
                nom : e6
                    nbJetons : 0    
            transitions :
                - transition : &s3t1 
                    nom : t1
                    etatsEntrants :
                        - etatEntrant : *s3e1
                    etatsSortants :
                        - etatSortant : *s3e2
                - transition : &s3t2 
                    nom : t2
                    etatsEntrants :
                        - etatEntrant : *s3e2
                    etatsSortants :
                        - etatSortant : *s3e3
                - transition : &s3t3 
                    nom : t3
                    etatsEntrants :
                        - etatEntrant : *s3e2
                    etatsSortants :
                        - etatSortant : *s3e4
                - transition : &s3t4
                    nom : t4
                    etatsEntrants :
                        - etatEntrant : *s3e2
                    etatsSortants :
                        - etatSortant : *s3e5
                - transition : &s3t5 
                    nom : t5
                    etatsEntrants :
                        - etatEntrant : *s3e4
                        - etatEntrant : *s3e5
                    etatsSortants :
                        - etatSortant : *s3e6
    dependances :
        - dependance : 
            serviceEtat : *s1
            etat : *s1e4
            serviceTransition : *s2
            transition : *s2t2 
        - dependance : 
            serviceEtat : *s2
            etat : *s2e4
            serviceTransition : *s3
            transition : *s3t1
        - dependance :
            serviceEtat : *s2
            etat : *s2e5
            serviceTransition : *s3
            transition : *s3t5

sbrppcc's People

Contributors

elioy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.