Provides classes storing and allowing the fast retrieving of several types of information using a MySQL database or the content of an xml file. More...
Classes | |
class | MediaBase |
Allows to retrieve the names of the media to sort as well as other characteristics specified in the media.xml file. More...<../..> | |
class | MySQLbase |
An instance of this class is used to avoid submitting unnecessary comparisons by saving former results as well as to allow a fast retrieval of these comparison results. More...<../..> |
Provides classes storing and allowing the fast retrieving of several types of information using a MySQL database or the content of an xml file.
This package contains two classes : MySQLbase and MediaBase. These classes are used to store and retrieve information, and, therefore, can also provide an "<em>exchange area</em>" for other objects to communicate. MySQLbase plays such a role : it saves comparisons results to avoid submitting them twice but also allows an object to write them and another to read them, thus serving as a buffer between the two.
Contains information on the media used. The most important one is the association between media real names and their identifier, an integer used by CPS to identify each media. Basically, it contains everything that is in the media.xml file.
This class stores results in a MySQL database. Methods are implemented to save HITs' hard results, i.e as they are sent by CrowdFlower. Such data is made of the answer to the question the workers are asked, but also their country, city, ip address, etc. Other methods allows to store refined results, i.e what is obtained after the program get another label is called on the hard data. These higher quality results are easily available because dedicated methods allow their retrieval.