Class: DataOutput::DatasetOutput
- Inherits:
-
BaseOutput
- Object
- BaseOutput
- DataOutput::DatasetOutput
- Defined in:
- lib/output/data_output/dataset_output.rb
Overview
Parent class for data output and delta output
Direct Known Subclasses
Instance Attribute Summary collapse
-
#meta_data ⇒ VisMetaData
readonly
private
The meta data for this output.
Attributes inherited from BaseOutput
#data_set, #legend, #with_extreme_values
Instance Method Summary collapse
-
#print_meta_head ⇒ Object
private
abstract
abstract method to print additional information before the x and y domain informations.
-
#print_meta_information ⇒ Object
private
prints the meta information consisting of dataset name and informations of the different dimensions.
-
#print_meta_tail ⇒ Object
private
method to print additional information after the x and y domain informations.
Methods inherited from BaseOutput
#determine_output_type_and_print_value, #print_data, #print_data_and_get_extrema, #print_domain_information, #print_extreme_information, #print_extreme_values_for, #set_attributes
Instance Attribute Details
#meta_data ⇒ VisMetaData (readonly, private)
Returns the meta data for this output.
13 14 15 |
# File 'lib/output/data_output/dataset_output.rb', line 13 def @meta_data end |
Instance Method Details
#print_meta_head ⇒ Object (private)
subclasses need to implement this method
abstract method to print additional information before the x and y domain informations
31 32 33 34 35 |
# File 'lib/output/data_output/dataset_output.rb', line 31 def fail NotImplementedError, " Error: the subclass #{self.class} needs " \ "to implement the method: print_meta_tail " \ "from its base class".red end |
#print_meta_information ⇒ Object (private)
prints the meta information consisting of dataset name and informations of the different dimensions
17 18 19 20 21 22 23 24 25 |
# File 'lib/output/data_output/dataset_output.rb', line 17 def print_domain_information(@meta_data.domain_x, "\nX") print_domain_information(@meta_data.domain_y, 'Y') nil end |
#print_meta_tail ⇒ Object (private)
method to print additional information after the x and y domain informations
39 40 41 |
# File 'lib/output/data_output/dataset_output.rb', line 39 def nil # do nothing end |