Outils pour utilisateurs

Outils du site


projet:projetsi4_0114_fuzzy_contexter

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
projet:projetsi4_0114_fuzzy_contexter [2014/02/24 19:58]
bvella [Documentation and Tutorial]
projet:projetsi4_0114_fuzzy_contexter [2014/03/10 14:37] (Version actuelle)
bvella [New Tools for Capture and Analysis of Digital Context and Fuzzy Logic]
Ligne 5: Ligne 5:
 ===== Fuzzy Contexter ====== ===== Fuzzy Contexter ======
  
-====== Project Presentation ====== 
  
-==  ​Detailed Name : ==+====== New Tools for Capture and Analysis of Digital Context and Fuzzy Logic ======
  
 == Group Composition : == == Group Composition : ==
 +  * Olivier Fauvel-Jaeger
 +  * Anthony Soulier
 +  * Benjamin Vella
 +  * Michel Vedrine
  
-== Rapport ​: ==+== Report ​: == 
 +[[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​Rapport.pdf|.pdf]]
  
 == Slides of the presentation : == == Slides of the presentation : ==
 +[[https://​docs.google.com/​presentation/​d/​1al2Fx3jnoaaX9XSMcYd8bwKx8YAJzqjnYvFKOP_7zXo|Google Presentation]] | [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​Pr%C3%A9sentation.pdf|.pdf]]
 +
 +== Source Code (Temporary) ==
 +http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​
 +
  
 ==== Software Specifications : ==== ==== Software Specifications : ====
Ligne 26: Ligne 35:
   * links on the documentation of such librairies   * links on the documentation of such librairies
   * link to the binary code other .Net (dll of the bean<​name>​ and other requested librairies)   * link to the binary code other .Net (dll of the bean<​name>​ and other requested librairies)
 +  * link to the VS solution with C# source code to compile the bean 
 +
 +== Bean OutlookMailsChecker ==
 +
 +  * purpose of the bean \\ This bean is in charge of the extraction of Outlook email.
 +
 +  * input interface (exposed methods)
 +    * void ReadAllReceivedMailsToJsonString \\ read all e-mails in the inbox and send them on a JSON string by event ( NewReceivedMessagesJsonString )
 +    * void ReadAllSentMailsToJsonString \\read all e-mails in the outbox and send them on a JSON string by event ( NewSentMessagesJsonString )
 +    * void ReadMailReceivedFormDateTimeToJsonString(DateTime d) \\ read all e-mails in the inbox from the date “d” and send them on a JSON string by event ( NewReceivedMessagesJsonString )
 +    * void ReadSentMailFormDateTimeToJsonString(DateTime d) \\ read all e-mails in the outbox from the date “d” and send them on a JSON string by event ( NewSentMessagesJsonString )
 +    * void ReadMailReceivedFormDateTimeToJsonString() \\ read all e-mails in the inbox from the attribute “ReceivedOnDate” and send them on a JSON string by event ( NewReceivedMessagesJsonString )
 +    * void ReadSentMailFormDateTimeToJsonString() \\ read all e-mails in the outbox from the attribute “SentOnDate” and send them on a JSON string by event ( NewSentMessagesJsonString )
 +    * void AllGroupsOfContact() \\ get all groups of contacts in the outlook’s adressbook and send them by event ( GroupsUpdateEvent )
 +    * void AllEmailsAddress() \\ get all e-mail address in the outlook’s adressbook ​ and send them by event ( ContactsUpdateEvent )
 +    * void ContactsForGroup(List<​string>​ nameOfGroups) \\ get all email address in the outlook’s adressbook belong to  the given groups and send them by event ( ContactsUpdateEvent )
 +    * void GroupsForEMail(string email) :\\get all groups for a given email address and send them by event ( ContactsUpdateEvent )
 +
 +  * output interface (emitted events) ​
 +    * NewReceivedMessagesJsonString(string json) \\ event when new e-mails are received (automatically sent when the user received a new e-mail in Outlook).
 +    * NewSentMessagesJsonString(string json) \\ event when new e-mails are sent  (automatically sent when the user sent a new e-mail in Outlook).
 +    * GroupsUpdateEvent \\ event when the group of contacts are update.
 +    * ContactsUpdateEvent \\ event when the contacts are update.
 +
 +  * Used librairies
 +    * Microsoft.Office.Interop.Outlook (API provide by Microsoft, Outlook must be installed [[http://​msdn.microsoft.com/​en-us/​library/​microsoft.office.interop.outlook.aspx|Outlook API]]
 +
 +  * link to the binary code other .Net (dll of the bean<​name>​ and other requested librairies)
 +
   * link to the VS solution with C# source code to compile the bean    * link to the VS solution with C# source code to compile the bean 
  
Ligne 39: Ligne 77:
   * Libraries used:   * Libraries used:
     * AForge.NET http://​www.aforgenet.com/​framework/​ \\ Fuzzy library only.     * AForge.NET http://​www.aforgenet.com/​framework/​ \\ Fuzzy library only.
-    * NewtonSoft http://​james.newtonking.com/​json \\ For JSON. +    * NewtonSoft http://​james.newtonking.com/​json \\ For JSON. 
 +  * VS Project: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​MoteurLogiqueFloue/​|.csproj]] 
 +  * DLLs:  
 +    * Bean: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​MoteurLogiqueFloue.dll|Whole Engine]] 
 +    * Libraries: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​Newtonsoft.Json.dll|JSON]] | [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​AForge.dll|AForge]] + [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​AForge.Fuzzy.dll|AForge.Fuzzy]]
  
 == Bean Configurator == == Bean Configurator ==
Ligne 50: Ligne 92:
   * Libraries used:\\   * Libraries used:\\
     * AForge.NET http://​www.aforgenet.com/​framework/​ \\ Fuzzy library only.     * AForge.NET http://​www.aforgenet.com/​framework/​ \\ Fuzzy library only.
 +  * VS Project: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​MoteurLogiqueFloue/​|.csproj]]
 +  * DLLs: 
 +    * Bean: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​MoteurLogiqueFloue.dll|Whole Engine]]
 +    * Libraries: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​AForge.dll|AForge]] + [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​AForge.Fuzzy.dll|AForge.Fuzzy]]
  
-== Bean CentroidDefuzifier ​== +== Bean CentroidDefuzzifier ​== 
   * Purpose:\\ This bean is in charge of the defuzzification of the Core Bean output. The result is a list of numerical values calculated with the centroid method.   * Purpose:\\ This bean is in charge of the defuzzification of the Core Bean output. The result is a list of numerical values calculated with the centroid method.
   * Input interface:​\\ ​   * Input interface:​\\ ​
Ligne 62: Ligne 108:
     * AForge.NET http://​www.aforgenet.com/​framework/​ \\ Fuzzy library only.     * AForge.NET http://​www.aforgenet.com/​framework/​ \\ Fuzzy library only.
     * NewtonSoft http://​james.newtonking.com/​json \\ For JSON.     * NewtonSoft http://​james.newtonking.com/​json \\ For JSON.
 +  * VS Project: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​MoteurLogiqueFloue/​|.csproj]]
 +  * DLLs: 
 +    * Bean: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​MoteurLogiqueFloue.dll|Whole Engine]]
 +    * Libraries: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​Newtonsoft.Json.dll|JSON]] | [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​AForge.dll|AForge]] + [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​AForge.Fuzzy.dll|AForge.Fuzzy]]
  
-== Bean MaxDefuzifier ​==+== Bean MaxDefuzzifier ​==
   * Purpose:\\ This bean is in charge of the defuzzification of the Core Bean output. The result is a list of numerical values calculated with the max method.   * Purpose:\\ This bean is in charge of the defuzzification of the Core Bean output. The result is a list of numerical values calculated with the max method.
   * Input interface:​\\ ​   * Input interface:​\\ ​
Ligne 73: Ligne 123:
   * Libraries used:\\   * Libraries used:\\
     * AForge.NET http://​www.aforgenet.com/​framework/​ \\ Fuzzy library only.     * AForge.NET http://​www.aforgenet.com/​framework/​ \\ Fuzzy library only.
-    * NewtonSoft http://​james.newtonking.com/​json \\ For JSON. +    * NewtonSoft http://​james.newtonking.com/​json \\ For JSON. 
 +  * VS Project: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​MoteurLogiqueFloue/​|.csproj]] 
 +  * DLLs:  
 +    * Bean: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​MoteurLogiqueFloue.dll|Whole Engine]] 
 +    * Libraries: [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​Newtonsoft.Json.dll|JSON]] | [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​AForge.dll|AForge]] + [[http://​users.polytech.unice.fr/​~vedrine/​projet_janvier_si4/​sln/​lib/​FuzzyLogic/​AForge.Fuzzy.dll|AForge.Fuzzy]] 
 + 
 +== Bean Expediteur == 
 +  * purpose of the bean \\ This bean is very specific to the logic core : its purpose is to create the group curves for the fuzzification:​ a mail sender is part of some groups, and the fuzzy core needs curves to find those groups. For n groups, there are 2^n - 1 possible ways to group someone. We had to let the machine do that for us. 
 +  * input interface (exposed methods) 
 +    * public void Initialisation(List<​string>​ groupes) \\ Fix the numbers we will have to use to create curves : Memorize the groups, set the number of group possibilities... 
 +    * public void GetGroups(List<​string>​ groupes) \\ This method is called by Initialisation. We can call it directly if the function curves have already been created. If they don't, this function creates the curves and write them in a configuration file. 
 +    * public void GetFloat(string json) \\ Given a list of groups in a property of a json object, find (and send) the correct abscissa. 
 +  * output interface (emitted events) 
 +    * NeedGroups() \\ Event sent at the initialization,​ when this bean needs all the groups to create curves and/or to set the important numbers for the algorithm. 
 +    * ValeurExpediteur(n) \\ Event sent after having found the abscissa of a sender. The argument is a JObject containing the value. 
 +  * internal algorithm or simply used librairies (and dependencies)  
 +    * To set the curves and find the abscissa of a mail sender (thanks to its groups), the algorithm uses the binary count : 00000001 means "is only in the first group",​ 001001 means "in the first and the fourth",​ ... So we just had to add 1 from 0 to 2^n - 1 to access every group value possibilities. 
 +    * Json.Net : http://​james.newtonking.com/​json 
 +  * links on the documentation of such librairies 
 +  * link to the binary code other .Net (dll of the bean<​name>​ and other requested librairies) 
 +  * link to the VS solution with C# source code to compile the bean   
 + 
 +== Bean JSONToCSV == 
 +  * Purpose:\\ This bean transform a json string or a json file to csv file. The json must begin by an array. 
 +  * input interface (exposed methods) 
 +    * void ConvertJsonFileToCSV(string pathToJson, string pathToCSV) 
 +    * void ConvertJsonStringToCSV(string json, string pathToCSV) 
 +    * void ConvertJsonFileToCSV(string pathToJson) 
 +    * void ConvertJsonFileToCSV() 
 +    * void ConvertJsonStringToCSV(string json) 
 + 
 +All of these methods convert a json file or a json string to a CSV file, if the path of the json file or the cdv file are not in parameter the methods use the attribute “PathCSV” for the CSV file and the attribute “PathToJson” for the json file.\\ You can also set the CSV’s delimiter with the attribute “Delimiter” and the attribute “AppendCSVFile“ allow you to append or replace the csv file if it exist already . 
 + 
 +  * output interface (emitted events)  
 +    * CSVFileCreate(string path) \\ event sent when the csv file is created. 
 + 
 +  * internal algorithm or simply used librairies (and dependencies) 
 +    * Json.Net : http://​james.newtonking.com/​json 
 + 
 +  * link to the binary code other .Net (dll of the bean<​name>​ and other requested librairies) 
 + 
 +  * link to the VS solution with C# source code to compile the bean  
 + 
 + 
 +== Bean Json2Dictionary == 
 +  * Purpose:\\ This bean transform a json string or a json file into a Dictionary<​string,​float>​. The json must begin by an array or an object. This bean has been created to make easier the manipulation of specific information like a string and its float value. 
 +  * input interface (exposed method) 
 +    * public void GetJSon(string JSon) 
 + 
 +This method takes in argument a string, parse the json inside, and analyze each object. The analyze constructs a Dictionary for each object, and send it via an event.  
 + 
 +  * output interface (emitted events)  
 +    * InformationsToTreat(data) \\ event sent when a new Dictionary<​string,​float>​ has been created. 
 + 
 +  * internal algorithm or simply used librairies (and dependencies) 
 +    * Json.Net : http://​james.newtonking.com/​json 
 + 
 +  * link to the binary code other .Net (dll of the bean<​name>​ and other requested librairies) 
 + 
 +  * link to the VS solution with C# source code to compile the bean 
 + 
 +== Bean NotificationIcon == 
 + 
 +  * Purpose 
 +Encapsulate the Microsoft ’s NotifyIcon class in a bean 
 +  * input interface (exposed methods)== 
 +    *void ShowNotification() 
 +    *void ShowNotification(int time) 
 +    *void ShowNotification(int time, string balloonTipText) 
 +    *void ShowNotification(string balloonTipText) 
 + 
 +Show a notification in the Windows’ notification area.  
 +The balloonTipText must be set to display the notification. 
 + 
 +  * output interface (emitted events) : The bean provide different event of the NotifyIcon class.  
 +    *event EventHandler BalloonTipClicked 
 +    *event EventHandler BalloonTipClosed 
 +    *event EventHandler BalloonTipShown 
 +    *event EventHandler Click 
 +    *event EventHandler DoubleClick 
 + 
 +  * link to the binary code other .Net (dll of the bean<​name>​ and other requested librairies) 
 +  * link to the VS solution with C# source code to compile the bean  
 + 
 +== Bean Synchronisateur == 
 +  * purpose of the bean \\ The goal of this bean is to group information to a big one. We can use it for treatment from multiple inputs. It stores data when they come, and, to never loose any information,​ it sends all of them when an already stored kind of data comes. 
 +  * input interface (exposed methods) 
 +    * public void GetNewData(string json) \\ Extract (and store) information from an objet or an array. For each property, if the value is a float, it sends all others if needed and then store it. If it's not a float, it send an event, expecting than another bean would be able to translate that into float (such as Expediteur) 
 +    * public void getInfosFromArray(string json) \\ Should be the answer to the event called if the property is not a float. The argument must be the string of a json object, and every property must have a float as value. 
 +  * output interface (emitted events) 
 +    * InformationsToTreat(json) \\ Send the json with all the last received values of each kind. This json represents an object with multiple properties String Name -  Float Value. 
 +    * NeedInfoArray(json) \\ Send a json representing a property in wich the value is not a float. Potentially,​ another bean should be able to translate this value into a float and send it back. 
 +  * internal algorithm or simply used librairies (and dependencies)  
 +    * Json.Net : http://​james.newtonking.com/​json 
 +  * links on the documentation of such librairies 
 +  * link to the binary code other .Net (dll of the bean<​name>​ and other requested librairies) 
 +  * link to the VS solution with C# source code to compile the bean 
  
 === List of various beans assemblies ​ === === List of various beans assemblies ​ ===
Ligne 121: Ligne 267:
 IF QualiteService IS Bon THEN Pourboire IS Moyen IF QualiteService IS Bon THEN Pourboire IS Moyen
 IF QualiteService IS Excellent OR Nourriture IS Delicieux THEN Pourboire IS Eleve</​file>​ IF QualiteService IS Excellent OR Nourriture IS Delicieux THEN Pourboire IS Eleve</​file>​
- 
-  * purpose of the assembly 
-  * screen shot of the assembly 
-  * link on the corresponding wcc file  
- 
 ==== Documentation and Tutorial ==== ==== Documentation and Tutorial ====
  
 == On the Outlook SDK == == On the Outlook SDK ==
-  * Explanations ​: +  * Documentation ​http://​msdn.microsoft.com/​en-us/​library/​microsoft.office.interop.outlook.aspx
- +
-  * References ​+
  
  
Ligne 137: Ligne 276:
   * Concepts: http://​www.aforgenet.com/​articles/​fuzzy_computing_basics/​   * Concepts: http://​www.aforgenet.com/​articles/​fuzzy_computing_basics/​
   * Documentation:​ http://​www.aforgenet.com/​framework/​documentation.html   * Documentation:​ http://​www.aforgenet.com/​framework/​documentation.html
- 
 ==== Various scenarios to illustrate the project ==== ==== Various scenarios to illustrate the project ====
  
projet/projetsi4_0114_fuzzy_contexter.1393268292.txt.gz · Dernière modification: 2014/02/24 19:58 par bvella