|
SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
|
Source contribution container for Chemical Mass Balance results. More...
#include </home/runner/work/SedSat3/SedSat3/contribution.h>


Public Member Functions | |
| Contribution () | |
| Default constructor - creates an empty contribution set. | |
| Contribution (const Contribution &rhs) | |
| Copy constructor. | |
| Contribution & | operator= (const Contribution &rhs) |
| Assignment operator. | |
| QJsonObject | toJsonObject () const override |
| Serializes contributions to JSON format. | |
| bool | ReadFromJsonObject (const QJsonObject &jsonobject) override |
| Deserializes contributions from JSON format. | |
| string | ToString () const override |
| Converts contributions to colon-separated string format. | |
| bool | writetofile (QFile *) override |
| Writes contributions to file. | |
| bool | Read (const QStringList &strlist) override |
| Reads contributions from string list. | |
| QTableWidget * | ToTable () override |
| Creates a QTableWidget for displaying contributions. | |
Public Member Functions inherited from Interface | |
| Interface () | |
| Default constructor. | |
| Interface (const Interface &intf) | |
| Copy constructor. | |
| Interface & | operator= (const Interface &intf) |
| Assignment operator. | |
| string | GetNotes () const |
| Get the notes/annotations associated with this object. | |
| void | SetNotes (const string ¬e) |
| Set the notes for this object, replacing any existing notes. | |
| void | AppendtoNotes (const string ¬e) |
| Append a note to existing notes. | |
| void | ClearNotes () |
| Clear all notes associated with this object. | |
| void | SetLimit (_range lowhigh, const double &value) |
| Set upper or lower limit for value highlighting. | |
| void | SetOption (options_key opt, bool val) |
| Set a configuration option. | |
| bool | Option (options_key opt) |
| Get the current value of a configuration option. | |
| options & | GetOptions () |
| Get reference to the options structure. | |
| QString | XAxisLabel () const |
| Get the X-axis label. | |
| QString | YAxisLabel () const |
| Get the Y-axis label. | |
| bool | SetXAxisLabel (const QString &label) |
| Set the X-axis label. | |
| bool | SetYAxisLabel (const QString &label) |
| Set the Y-axis label. | |
Additional Inherited Members | |
Public Attributes inherited from Interface | |
| double | lowlimit |
| Lower threshold for value highlighting (when enabled) | |
| double | highlimit |
| Upper threshold for value highlighting (when enabled) | |
| bool | highlightoutsideoflimit = false |
| Flag indicating whether to highlight values outside defined limits. | |
Source contribution container for Chemical Mass Balance results.
Stores source contributions as name-value pairs (map<string, double>). Provides JSON serialization, file I/O, and table widget generation. Used to represent the fractional or absolute contribution of each identified pollution source to a receptor site.
Definition at line 21 of file contribution.h.
| Contribution::Contribution | ( | ) |
Default constructor - creates an empty contribution set.
Definition at line 5 of file contribution.cpp.
| Contribution::Contribution | ( | const Contribution & | rhs | ) |
Copy constructor.
| rhs | Contribution object to copy from |
Definition at line 10 of file contribution.cpp.
| Contribution & Contribution::operator= | ( | const Contribution & | rhs | ) |
Assignment operator.
| rhs | Contribution object to assign from |
Definition at line 14 of file contribution.cpp.
References Interface::operator=().
|
overridevirtual |
Reads contributions from string list.
Expected format: Each string is "source_name:contribution_value"
| strlist | List of colon-separated source:value strings |
Reimplemented from Interface.
Definition at line 37 of file contribution.cpp.
|
overridevirtual |
Deserializes contributions from JSON format.
| jsonobject | JSON object to read from |
Reimplemented from Interface.
Definition at line 60 of file contribution.cpp.
|
overridevirtual |
Serializes contributions to JSON format.
Reimplemented from Interface.
Definition at line 50 of file contribution.cpp.
|
overridevirtual |
Converts contributions to colon-separated string format.
Format: "source_name:contribution_value\n" for each source
Reimplemented from Interface.
Definition at line 21 of file contribution.cpp.
Referenced by writetofile().
|
overridevirtual |
Creates a QTableWidget for displaying contributions.
Generates a read-only single-column table with source names as row labels and contribution values in the column.
Reimplemented from Interface.
Definition at line 70 of file contribution.cpp.
|
overridevirtual |
Writes contributions to file.
| file | File pointer to write to |
Reimplemented from Interface.
Definition at line 31 of file contribution.cpp.
References ToString().