SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
timeseriesassignment.h
Go to the documentation of this file.
1
9#pragma once
11#include <QJsonObject>
12#include <atomic>
13
15{
20 QString seriesId;
23 QString targetObject;
24 QString targetUnit;
25 bool clockConfirmed = false;
28 bool allowQualified = false;
32 bool datumConfirmed = false;
33 double datumOffset = 0;
36 qint64 fromKey = std::numeric_limits<qint64>::min();
37 qint64 toKey = std::numeric_limits<qint64>::max();
38};
42 QVector<QDateTime> times;
43 QVector<double> values;
44 QJsonObject provenance;
45 QString error;
47 bool ok() const { return error.isEmpty() && !times.isEmpty() && times.size() == values.size(); }
48};
55bool conversion(const QString &source, const QString &target, double &scale, double &offset);
64PreparedAssignment prepareAssignment(const TimeSeriesDataset &dataset, const AssignmentOptions &options,
65 std::atomic_bool *cancel = nullptr);
66}
QString target
Definition initialbedqualitydialog.cpp:51
QPointer< OpenSWMMVisLayer > source
Definition maskclipresolver.cpp:34
std::function< bool()> cancel
Definition meshassignmentsampling.cpp:32
Definition timeseriesassignment.h:15
bool conversion(const QString &source, const QString &target, double &scale, double &offset)
Resolve a known physical-unit conversion without changing source values.
Definition timeseriesassignment.cpp:58
PreparedAssignment prepareAssignment(const TimeSeriesDataset &dataset, const AssignmentOptions &options, std::atomic_bool *cancel=nullptr)
Read and prepare one explicit contiguous source range on a worker.
Definition timeseriesassignment.cpp:68
AssignmentTarget
Native model input receiving a prepared copy; source data is never modified.
Definition timeseriesassignment.h:17
const ConstraintAuditOptions & options
Definition constraintaudit.cpp:34
Explicit choices collected before preparation; no engine or QObject pointers.
Definition timeseriesassignment.h:19
qint64 expectedIntervalSeconds
Positive declared continuous cadence; reject larger gaps.
Definition timeseriesassignment.h:30
QString targetUnit
Actual intended model units, never a display-only relabel.
Definition timeseriesassignment.h:24
qint64 toKey
Inclusive source-basis bound.
Definition timeseriesassignment.h:37
int rainfallIntervalSeconds
Required positive rain-gage recording interval.
Definition timeseriesassignment.h:35
bool datumConfirmed
Outfall absolute-stage conversion was explicitly reviewed.
Definition timeseriesassignment.h:32
int rainfallFormat
Engine intensity=0, volume=1, cumulative=2.
Definition timeseriesassignment.h:34
bool unitInterpretationConfirmed
Explicit approval of source/native unit interpretation.
Definition timeseriesassignment.h:31
qint64 fromKey
Inclusive source-basis bound.
Definition timeseriesassignment.h:36
AssignmentTarget target
Create-only or explicitly chosen input binding.
Definition timeseriesassignment.h:22
bool allowQualified
Explicitly accept provisional/qualified source values.
Definition timeseriesassignment.h:28
bool allowIrregularInterpolation
Explicit linear interpolation of irregular finite samples.
Definition timeseriesassignment.h:29
QString modelSeriesName
New model identifier; replacement is deliberately unsupported.
Definition timeseriesassignment.h:21
QString targetObject
Existing model node/outfall/gage name when binding.
Definition timeseriesassignment.h:23
int utcOffsetSeconds
Model wall clock = UTC instant plus this fixed offset.
Definition timeseriesassignment.h:26
double datumOffset
Added after conversion, in target stage units.
Definition timeseriesassignment.h:33
bool dailyConstantConfirmed
Hold daily statistic over each model calendar day.
Definition timeseriesassignment.h:27
QString seriesId
Source stable series ID.
Definition timeseriesassignment.h:20
bool clockConfirmed
User explicitly selected the model clock interpretation.
Definition timeseriesassignment.h:25
Fully validated copy ready for one checked GUI-thread transaction.
Definition timeseriesassignment.h:40
QVector< double > values
Finite target-unit values parallel to times.
Definition timeseriesassignment.h:43
QJsonObject provenance
Source fingerprint, selected interpretation and transformation.
Definition timeseriesassignment.h:44
bool ok() const
Definition timeseriesassignment.h:47
AssignmentOptions options
Exact reviewed transformation and binding choices used for these samples.
Definition timeseriesassignment.h:41
QVector< QDateTime > times
Strictly increasing model wall-clock timestamps, tagged UTC.
Definition timeseriesassignment.h:42
QString error
Nonempty means no model mutation is permitted.
Definition timeseriesassignment.h:45
double offset
Definition timeseriesassignment.cpp:21
double scale
Definition timeseriesassignment.cpp:21
Owning metadata and bounded sample values for native observation datasets.