Factory Class
Defined in:
Module: iLand
iLand\factory_doc.js:1
The Factory
is a helper object for the creation of other iLand script objects such as
a Map.
Technically, the Factory
can instantiate objects of other C++ (QObject-based) types.
This factory approach is used because the V8 (QJSEngine) has limitations with regard to the new
operator of Javascript.
Item Index
Methods
Methods
newClimateConverter
()
Object
Create an instance of a ClimateConverter (see http://iland.boku.ac.at/Object+ClimateConverter).
Returns:
Object:
A Javascript ClimateConverter object
newCSVFile
(
Object
-
file_name
Create an instance of a CSVFile, a convenience class for reading and processing tabular data.
Parameters:
-
file_name
StringThe file to load with
Returns:
Object:
A Javascript CSVFile object
newGrid
()
Object
Create an instance of a Grid. Initially, the grid is empty.
Returns:
Object:
A Javascript Grid object