Subversion Repositories public iLand

Rev

Rev 1221 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1191 werner 1
/**
2
  The `Factory` is a helper object for the creation of other iLand script objects such as
3
  a {{#crossLink "Map"}}{{/crossLink}}.
4
 
5
  Technically, the `Factory`can instantiate objects of other C++ (QObject-based) types.
6
  This factory approach is used because the V8 (QJSEngine) has limitations with regard to the `new` operator of Javascript.
7
 
8
 
9
 @module iLand
10
 @class Factory
11
 */
12
 
13
Factory = {
14
 
15
 
16
    /**
17
    Create an instance of a {{#crossLink "CSVFile"}}{{/crossLink}}, a convenience class for reading and processing
18
    tabular data.
19
 
20
    @method newCSVFile
21
    @param {string} file_name The file to load with
22
    @return {object} A Javascript {{#crossLink "CSVFile"}}{{/crossLink}} object
23
    */
24
 
25
    /**
26
    Create an instance of a {{#crossLink "Map"}}{{/crossLink}}, a wrapper for a GIS raster file.
27
 
28
    @method newMap
29
    @return {object} A Javascript {{#crossLink "Map"}}{{/crossLink}} object
30
    */
31
 
1200 werner 32
    /**
33
    Create an instance of a ClimateConverter (see http://iland.boku.ac.at/Object+ClimateConverter).
34
 
35
    @method newClimateConverter
36
    @return {object} A Javascript ClimateConverter object
37
    */
38
 
1191 werner 39
}
40