Class: GDAL::GridAlgorithms::AlgorithmBase

Inherits:
Object
  • Object
show all
Defined in:
lib/gdal/grid_algorithms/algorithm_base.rb

Overview

Base abstract class for all grid algorithms.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAlgorithmBase

Returns a new instance of AlgorithmBase.



10
11
12
13
# File 'lib/gdal/grid_algorithms/algorithm_base.rb', line 10

def initialize
  @options = options_class.new
  assign_size_of_structure
end

Instance Attribute Details

#optionsObject (readonly)

Returns Options object.

Returns:

  • Options object.



8
9
10
# File 'lib/gdal/grid_algorithms/algorithm_base.rb', line 8

def options
  @options
end

Instance Method Details

#c_identifierSymbol

Returns C identifier for the algorithm.

Returns:

  • (Symbol)

    C identifier for the algorithm.



21
22
23
# File 'lib/gdal/grid_algorithms/algorithm_base.rb', line 21

def c_identifier
  # This method must be overridden in subclasses.
end

#options_classClass

Returns Options class.

Returns:

  • (Class)

    Options class.



16
17
18
# File 'lib/gdal/grid_algorithms/algorithm_base.rb', line 16

def options_class
  # This method must be overridden in subclasses.
end