s2-python 0.4.1__py3-none-any.whl → 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {s2_python-0.4.1.dist-info → s2_python-0.5.0.dist-info}/METADATA +3 -2
- s2_python-0.5.0.dist-info/RECORD +82 -0
- {s2_python-0.4.1.dist-info → s2_python-0.5.0.dist-info}/WHEEL +1 -1
- s2python/common/__init__.py +32 -0
- s2python/common/duration.py +3 -1
- s2python/common/handshake.py +2 -2
- s2python/common/handshake_response.py +2 -2
- s2python/common/instruction_status_update.py +3 -3
- s2python/common/number_range.py +1 -1
- s2python/common/power_forecast.py +3 -3
- s2python/common/power_forecast_element.py +5 -5
- s2python/common/power_forecast_value.py +1 -1
- s2python/common/power_measurement.py +3 -3
- s2python/common/power_range.py +1 -1
- s2python/common/power_value.py +1 -1
- s2python/common/reception_status.py +2 -2
- s2python/common/resource_manager_details.py +6 -6
- s2python/common/revoke_object.py +3 -3
- s2python/common/role.py +1 -1
- s2python/common/select_control_type.py +2 -2
- s2python/common/session_request.py +2 -2
- s2python/common/timer.py +3 -3
- s2python/common/transition.py +8 -8
- s2python/ddbc/__init__.py +21 -0
- s2python/ddbc/ddbc_actuator_description.py +30 -0
- s2python/ddbc/ddbc_actuator_status.py +22 -0
- s2python/ddbc/ddbc_average_demand_rate_forecast.py +28 -0
- s2python/ddbc/ddbc_average_demand_rate_forecast_element.py +21 -0
- s2python/ddbc/ddbc_instruction.py +19 -0
- s2python/ddbc/ddbc_operation_mode.py +26 -0
- s2python/ddbc/ddbc_system_description.py +29 -0
- s2python/ddbc/ddbc_timer_status.py +18 -0
- s2python/frbc/__init__.py +19 -3
- s2python/frbc/frbc_actuator_description.py +9 -7
- s2python/frbc/frbc_actuator_status.py +5 -5
- s2python/frbc/frbc_fill_level_target_profile.py +3 -3
- s2python/frbc/frbc_fill_level_target_profile_element.py +3 -5
- s2python/frbc/frbc_instruction.py +5 -5
- s2python/frbc/frbc_leakage_behaviour.py +3 -3
- s2python/frbc/frbc_leakage_behaviour_element.py +2 -4
- s2python/frbc/frbc_operation_mode.py +6 -4
- s2python/frbc/frbc_operation_mode_element.py +5 -5
- s2python/frbc/frbc_storage_description.py +2 -2
- s2python/frbc/frbc_storage_status.py +2 -2
- s2python/frbc/frbc_system_description.py +4 -4
- s2python/frbc/frbc_timer_status.py +4 -4
- s2python/frbc/frbc_usage_forecast.py +3 -3
- s2python/frbc/frbc_usage_forecast_element.py +2 -2
- s2python/generated/gen_s2.py +507 -543
- s2python/message.py +90 -6
- s2python/pebc/__init__.py +21 -0
- s2python/pebc/pebc_allowed_limit_range.py +26 -0
- s2python/pebc/pebc_energy_constraint.py +25 -0
- s2python/pebc/pebc_instruction.py +27 -0
- s2python/pebc/pebc_power_constraints.py +27 -0
- s2python/pebc/pebc_power_envelope.py +23 -0
- s2python/pebc/pebc_power_envelope_element.py +16 -0
- s2python/ppbc/__init__.py +15 -6
- s2python/ppbc/ppbc_end_interruption_instruction.py +6 -8
- s2python/ppbc/ppbc_power_profile_definition.py +4 -6
- s2python/ppbc/ppbc_power_profile_status.py +2 -4
- s2python/ppbc/ppbc_power_sequence.py +6 -6
- s2python/ppbc/ppbc_power_sequence_container.py +5 -7
- s2python/ppbc/ppbc_power_sequence_container_status.py +7 -9
- s2python/ppbc/ppbc_power_sequence_element.py +3 -5
- s2python/ppbc/ppbc_schedule_instruction.py +6 -8
- s2python/ppbc/ppbc_start_interruption_instruction.py +6 -8
- s2python/s2_connection.py +30 -12
- s2python/s2_control_type.py +15 -0
- s2python/s2_parser.py +1 -3
- s2python/validate_values_mixin.py +29 -14
- s2_python-0.4.1.dist-info/RECORD +0 -66
- {s2_python-0.4.1.dist-info → s2_python-0.5.0.dist-info}/entry_points.txt +0 -0
- {s2_python-0.4.1.dist-info → s2_python-0.5.0.dist-info}/top_level.txt +0 -0
s2python/message.py
CHANGED
@@ -1,33 +1,79 @@
|
|
1
1
|
from typing import Union
|
2
2
|
|
3
3
|
from s2python.frbc import (
|
4
|
+
FRBCActuatorDescription,
|
4
5
|
FRBCActuatorStatus,
|
5
6
|
FRBCFillLevelTargetProfile,
|
7
|
+
FRBCFillLevelTargetProfileElement,
|
6
8
|
FRBCInstruction,
|
7
9
|
FRBCLeakageBehaviour,
|
10
|
+
FRBCLeakageBehaviourElement,
|
11
|
+
FRBCOperationMode,
|
12
|
+
FRBCOperationModeElement,
|
13
|
+
FRBCStorageDescription,
|
8
14
|
FRBCStorageStatus,
|
9
15
|
FRBCSystemDescription,
|
10
16
|
FRBCTimerStatus,
|
11
|
-
FRBCUsageForecast
|
17
|
+
FRBCUsageForecast,
|
18
|
+
FRBCUsageForecastElement,
|
12
19
|
)
|
13
20
|
from s2python.ppbc import (
|
21
|
+
PPBCEndInterruptionInstruction,
|
22
|
+
PPBCPowerProfileDefinition,
|
23
|
+
PPBCPowerSequenceContainer,
|
24
|
+
PPBCPowerSequence,
|
25
|
+
PPBCPowerProfileStatus,
|
26
|
+
PPBCPowerSequenceContainerStatus,
|
27
|
+
PPBCPowerSequenceElement,
|
14
28
|
PPBCScheduleInstruction,
|
29
|
+
PPBCStartInterruptionInstruction,
|
30
|
+
)
|
31
|
+
from s2python.ddbc import (
|
32
|
+
DDBCActuatorDescription,
|
33
|
+
DDBCActuatorStatus,
|
34
|
+
DDBCAverageDemandRateForecast,
|
35
|
+
DDBCAverageDemandRateForecastElement,
|
36
|
+
DDBCInstruction,
|
37
|
+
DDBCOperationMode,
|
38
|
+
DDBCSystemDescription,
|
39
|
+
DDBCTimerStatus,
|
15
40
|
)
|
16
41
|
|
42
|
+
from s2python.pebc import (
|
43
|
+
PEBCAllowedLimitRange,
|
44
|
+
PEBCEnergyConstraint,
|
45
|
+
PEBCInstruction,
|
46
|
+
PEBCPowerConstraints,
|
47
|
+
PEBCPowerEnvelope,
|
48
|
+
PEBCPowerEnvelopeElement,
|
49
|
+
)
|
17
50
|
from s2python.common import (
|
51
|
+
Duration,
|
18
52
|
Handshake,
|
19
53
|
HandshakeResponse,
|
20
54
|
InstructionStatusUpdate,
|
55
|
+
NumberRange,
|
21
56
|
PowerForecast,
|
57
|
+
PowerForecastElement,
|
58
|
+
PowerForecastValue,
|
22
59
|
PowerMeasurement,
|
60
|
+
PowerRange,
|
61
|
+
PowerValue,
|
23
62
|
ReceptionStatus,
|
24
63
|
ResourceManagerDetails,
|
25
64
|
RevokeObject,
|
65
|
+
Role,
|
26
66
|
SelectControlType,
|
27
|
-
SessionRequest
|
67
|
+
SessionRequest,
|
68
|
+
Timer,
|
69
|
+
Transition,
|
28
70
|
)
|
29
71
|
|
30
72
|
S2Message = Union[
|
73
|
+
DDBCAverageDemandRateForecast,
|
74
|
+
DDBCInstruction,
|
75
|
+
DDBCSystemDescription,
|
76
|
+
DDBCTimerStatus,
|
31
77
|
FRBCActuatorStatus,
|
32
78
|
FRBCFillLevelTargetProfile,
|
33
79
|
FRBCInstruction,
|
@@ -36,15 +82,53 @@ S2Message = Union[
|
|
36
82
|
FRBCSystemDescription,
|
37
83
|
FRBCTimerStatus,
|
38
84
|
FRBCUsageForecast,
|
85
|
+
PEBCPowerConstraints,
|
86
|
+
PPBCEndInterruptionInstruction,
|
87
|
+
PPBCPowerProfileDefinition,
|
88
|
+
PPBCPowerProfileStatus,
|
39
89
|
PPBCScheduleInstruction,
|
90
|
+
PPBCStartInterruptionInstruction,
|
91
|
+
ResourceManagerDetails,
|
92
|
+
RevokeObject,
|
93
|
+
SelectControlType,
|
94
|
+
SessionRequest,
|
95
|
+
DDBCActuatorStatus,
|
96
|
+
FRBCInstruction,
|
97
|
+
PEBCEnergyConstraint,
|
98
|
+
PEBCInstruction,
|
40
99
|
Handshake,
|
41
100
|
HandshakeResponse,
|
42
101
|
InstructionStatusUpdate,
|
43
102
|
PowerForecast,
|
44
103
|
PowerMeasurement,
|
45
104
|
ReceptionStatus,
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
105
|
+
]
|
106
|
+
|
107
|
+
S2MessageElement = Union[
|
108
|
+
DDBCActuatorDescription,
|
109
|
+
DDBCAverageDemandRateForecastElement,
|
110
|
+
DDBCOperationMode,
|
111
|
+
FRBCActuatorDescription,
|
112
|
+
FRBCFillLevelTargetProfileElement,
|
113
|
+
FRBCLeakageBehaviourElement,
|
114
|
+
FRBCOperationMode,
|
115
|
+
FRBCOperationModeElement,
|
116
|
+
FRBCStorageDescription,
|
117
|
+
FRBCUsageForecastElement,
|
118
|
+
PEBCAllowedLimitRange,
|
119
|
+
PEBCPowerEnvelope,
|
120
|
+
PEBCPowerEnvelopeElement,
|
121
|
+
PPBCPowerSequenceContainer,
|
122
|
+
PPBCPowerSequence,
|
123
|
+
PPBCPowerSequenceContainerStatus,
|
124
|
+
PPBCPowerSequenceElement,
|
125
|
+
Duration,
|
126
|
+
NumberRange,
|
127
|
+
PowerForecastElement,
|
128
|
+
PowerForecastValue,
|
129
|
+
PowerRange,
|
130
|
+
PowerValue,
|
131
|
+
Role,
|
132
|
+
Timer,
|
133
|
+
Transition,
|
50
134
|
]
|
@@ -0,0 +1,21 @@
|
|
1
|
+
from s2python.pebc.pebc_allowed_limit_range import PEBCAllowedLimitRange
|
2
|
+
from s2python.pebc.pebc_power_constraints import PEBCPowerConstraints
|
3
|
+
from s2python.pebc.pebc_power_envelope import PEBCPowerEnvelope
|
4
|
+
from s2python.pebc.pebc_power_envelope_element import PEBCPowerEnvelopeElement
|
5
|
+
from s2python.pebc.pebc_energy_constraint import PEBCEnergyConstraint
|
6
|
+
from s2python.generated.gen_s2 import (
|
7
|
+
PEBCPowerEnvelopeConsequenceType,
|
8
|
+
PEBCPowerEnvelopeLimitType,
|
9
|
+
)
|
10
|
+
from s2python.pebc.pebc_instruction import PEBCInstruction
|
11
|
+
|
12
|
+
__all__ = [
|
13
|
+
"PEBCAllowedLimitRange",
|
14
|
+
"PEBCPowerConstraints",
|
15
|
+
"PEBCPowerEnvelope",
|
16
|
+
"PEBCPowerEnvelopeElement",
|
17
|
+
"PEBCEnergyConstraint",
|
18
|
+
"PEBCPowerEnvelopeConsequenceType",
|
19
|
+
"PEBCPowerEnvelopeLimitType",
|
20
|
+
"PEBCInstruction",
|
21
|
+
]
|
@@ -0,0 +1,26 @@
|
|
1
|
+
from s2python.generated.gen_s2 import (
|
2
|
+
PEBCAllowedLimitRange as GenPEBCAllowedLimitRange,
|
3
|
+
PEBCPowerEnvelopeLimitType as GenPEBCPowerEnvelopeLimitType,
|
4
|
+
)
|
5
|
+
from s2python.common import CommodityQuantity, NumberRange
|
6
|
+
from s2python.validate_values_mixin import (
|
7
|
+
catch_and_convert_exceptions,
|
8
|
+
S2MessageComponent,
|
9
|
+
)
|
10
|
+
|
11
|
+
|
12
|
+
@catch_and_convert_exceptions
|
13
|
+
class PEBCAllowedLimitRange(GenPEBCAllowedLimitRange, S2MessageComponent):
|
14
|
+
model_config = GenPEBCAllowedLimitRange.model_config
|
15
|
+
model_config["validate_assignment"] = True
|
16
|
+
|
17
|
+
commodity_quantity: CommodityQuantity = GenPEBCAllowedLimitRange.model_fields[
|
18
|
+
"commodity_quantity"
|
19
|
+
] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
20
|
+
limit_type: GenPEBCPowerEnvelopeLimitType = GenPEBCAllowedLimitRange.model_fields[
|
21
|
+
"limit_type"
|
22
|
+
] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
23
|
+
range_boundary: NumberRange = GenPEBCAllowedLimitRange.model_fields["range_boundary"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
24
|
+
abnormal_condition_only: bool = [
|
25
|
+
GenPEBCAllowedLimitRange.model_fields["abnormal_condition_only"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
26
|
+
]
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import uuid
|
2
|
+
|
3
|
+
from s2python.generated.gen_s2 import (
|
4
|
+
PEBCEnergyConstraint as GenPEBCEnergyConstraint,
|
5
|
+
)
|
6
|
+
from s2python.common import CommodityQuantity
|
7
|
+
from s2python.validate_values_mixin import (
|
8
|
+
catch_and_convert_exceptions,
|
9
|
+
S2MessageComponent,
|
10
|
+
)
|
11
|
+
|
12
|
+
|
13
|
+
@catch_and_convert_exceptions
|
14
|
+
class PEBCEnergyConstraint(GenPEBCEnergyConstraint, S2MessageComponent):
|
15
|
+
model_config = GenPEBCEnergyConstraint.model_config
|
16
|
+
model_config["validate_assignment"] = True
|
17
|
+
|
18
|
+
message_id: uuid.UUID = GenPEBCEnergyConstraint.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
19
|
+
id: uuid.UUID = GenPEBCEnergyConstraint.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
20
|
+
|
21
|
+
upper_average_power: float = GenPEBCEnergyConstraint.model_fields["upper_average_power"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
22
|
+
lower_average_power: float = GenPEBCEnergyConstraint.model_fields["lower_average_power"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
23
|
+
commodity_quantity: CommodityQuantity = [
|
24
|
+
GenPEBCEnergyConstraint.model_fields["commodity_quantity"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
25
|
+
]
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import uuid
|
2
|
+
from typing import List
|
3
|
+
|
4
|
+
from s2python.generated.gen_s2 import (
|
5
|
+
PEBCInstruction as GenPEBCInstruction,
|
6
|
+
)
|
7
|
+
from s2python.pebc.pebc_power_envelope import PEBCPowerEnvelope
|
8
|
+
from s2python.validate_values_mixin import (
|
9
|
+
catch_and_convert_exceptions,
|
10
|
+
S2MessageComponent,
|
11
|
+
)
|
12
|
+
|
13
|
+
|
14
|
+
@catch_and_convert_exceptions
|
15
|
+
class PEBCInstruction(GenPEBCInstruction, S2MessageComponent):
|
16
|
+
model_config = GenPEBCInstruction.model_config
|
17
|
+
model_config["validate_assignment"] = True
|
18
|
+
|
19
|
+
message_id: uuid.UUID = GenPEBCInstruction.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
20
|
+
id: uuid.UUID = GenPEBCInstruction.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
21
|
+
power_constraints_id: uuid.UUID = [ # type: ignore[reportIncompatibleVariableOverride]
|
22
|
+
GenPEBCInstruction.model_fields["power_constraints_id"] # type: ignore[assignment]
|
23
|
+
]
|
24
|
+
power_envelopes: List[PEBCPowerEnvelope] = [ # type: ignore[reportIncompatibleVariableOverride]
|
25
|
+
GenPEBCInstruction.model_fields["power_envelopes"] # type: ignore[assignment]
|
26
|
+
]
|
27
|
+
abnormal_condition: bool = GenPEBCInstruction.model_fields["abnormal_condition"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import uuid
|
2
|
+
from typing import List
|
3
|
+
|
4
|
+
from s2python.generated.gen_s2 import (
|
5
|
+
PEBCPowerConstraints as GenPEBCPowerConstraints,
|
6
|
+
PEBCPowerEnvelopeConsequenceType as GenPEBCPowerEnvelopeConsequenceType,
|
7
|
+
)
|
8
|
+
from s2python.pebc.pebc_allowed_limit_range import PEBCAllowedLimitRange
|
9
|
+
from s2python.validate_values_mixin import (
|
10
|
+
catch_and_convert_exceptions,
|
11
|
+
S2MessageComponent,
|
12
|
+
)
|
13
|
+
|
14
|
+
|
15
|
+
@catch_and_convert_exceptions
|
16
|
+
class PEBCPowerConstraints(GenPEBCPowerConstraints, S2MessageComponent):
|
17
|
+
model_config = GenPEBCPowerConstraints.model_config
|
18
|
+
model_config["validate_assignment"] = True
|
19
|
+
|
20
|
+
message_id: uuid.UUID = GenPEBCPowerConstraints.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
21
|
+
id: uuid.UUID = GenPEBCPowerConstraints.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
22
|
+
consequence_type: GenPEBCPowerEnvelopeConsequenceType = GenPEBCPowerConstraints.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
23
|
+
"consequence_type"
|
24
|
+
] # type: ignore[assignment]
|
25
|
+
allowed_limit_ranges: List[PEBCAllowedLimitRange] = GenPEBCPowerConstraints.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
26
|
+
"allowed_limit_ranges"
|
27
|
+
] # type: ignore[assignment]
|
@@ -0,0 +1,23 @@
|
|
1
|
+
from typing import List
|
2
|
+
from s2python.generated.gen_s2 import (
|
3
|
+
PEBCPowerEnvelope as GenPEBCPowerEnvelope,
|
4
|
+
)
|
5
|
+
from s2python.pebc.pebc_power_envelope_element import PEBCPowerEnvelopeElement
|
6
|
+
from s2python.common import CommodityQuantity
|
7
|
+
from s2python.validate_values_mixin import (
|
8
|
+
catch_and_convert_exceptions,
|
9
|
+
S2MessageComponent,
|
10
|
+
)
|
11
|
+
|
12
|
+
|
13
|
+
@catch_and_convert_exceptions
|
14
|
+
class PEBCPowerEnvelope(GenPEBCPowerEnvelope, S2MessageComponent):
|
15
|
+
model_config = GenPEBCPowerEnvelope.model_config
|
16
|
+
model_config["validate_assignment"] = True
|
17
|
+
|
18
|
+
commodity_quantity: CommodityQuantity = GenPEBCPowerEnvelope.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
19
|
+
"commodity_quantity"
|
20
|
+
] # type: ignore[assignment]
|
21
|
+
power_envelope_elements: List[PEBCPowerEnvelopeElement] = GenPEBCPowerEnvelope.model_fields[ # type: ignore[assignment,reportIncompatibleVariableOverride]
|
22
|
+
"power_envelope_elements"
|
23
|
+
] # type: ignore[assignment]
|
@@ -0,0 +1,16 @@
|
|
1
|
+
from s2python.generated.gen_s2 import (
|
2
|
+
PEBCPowerEnvelopeElement as GenPEBCPowerEnvelopeElement,
|
3
|
+
)
|
4
|
+
from s2python.validate_values_mixin import (
|
5
|
+
catch_and_convert_exceptions,
|
6
|
+
S2MessageComponent,
|
7
|
+
)
|
8
|
+
|
9
|
+
|
10
|
+
@catch_and_convert_exceptions
|
11
|
+
class PEBCPowerEnvelopeElement(GenPEBCPowerEnvelopeElement, S2MessageComponent):
|
12
|
+
model_config = GenPEBCPowerEnvelopeElement.model_config
|
13
|
+
model_config["validate_assignment"] = True
|
14
|
+
|
15
|
+
lower_limit: float = GenPEBCPowerEnvelopeElement.model_fields["lower_limit"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
16
|
+
upper_limit: float = GenPEBCPowerEnvelopeElement.model_fields["upper_limit"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
s2python/ppbc/__init__.py
CHANGED
@@ -1,12 +1,21 @@
|
|
1
1
|
from s2python.ppbc.ppbc_schedule_instruction import PPBCScheduleInstruction
|
2
|
-
from s2python.ppbc.ppbc_end_interruption_instruction import
|
3
|
-
PPBCEndInterruptionInstruction,
|
4
|
-
)
|
2
|
+
from s2python.ppbc.ppbc_end_interruption_instruction import PPBCEndInterruptionInstruction
|
5
3
|
from s2python.ppbc.ppbc_power_profile_definition import PPBCPowerProfileDefinition
|
6
4
|
from s2python.ppbc.ppbc_power_sequence_container import PPBCPowerSequenceContainer
|
7
5
|
from s2python.ppbc.ppbc_power_sequence import PPBCPowerSequence
|
8
6
|
from s2python.ppbc.ppbc_power_profile_status import PPBCPowerProfileStatus
|
9
|
-
from s2python.ppbc.ppbc_power_sequence_container_status import
|
10
|
-
PPBCPowerSequenceContainerStatus,
|
11
|
-
)
|
7
|
+
from s2python.ppbc.ppbc_power_sequence_container_status import PPBCPowerSequenceContainerStatus
|
12
8
|
from s2python.ppbc.ppbc_power_sequence_element import PPBCPowerSequenceElement
|
9
|
+
from s2python.ppbc.ppbc_start_interruption_instruction import PPBCStartInterruptionInstruction
|
10
|
+
|
11
|
+
__all__ = [
|
12
|
+
"PPBCScheduleInstruction",
|
13
|
+
"PPBCEndInterruptionInstruction",
|
14
|
+
"PPBCPowerProfileDefinition",
|
15
|
+
"PPBCPowerSequenceContainer",
|
16
|
+
"PPBCPowerSequence",
|
17
|
+
"PPBCPowerProfileStatus",
|
18
|
+
"PPBCPowerSequenceContainerStatus",
|
19
|
+
"PPBCPowerSequenceElement",
|
20
|
+
"PPBCStartInterruptionInstruction",
|
21
|
+
]
|
@@ -11,22 +11,20 @@ from s2python.validate_values_mixin import (
|
|
11
11
|
|
12
12
|
|
13
13
|
@catch_and_convert_exceptions
|
14
|
-
class PPBCEndInterruptionInstruction(
|
15
|
-
GenPPBCEndInterruptionInstruction, S2MessageComponent["PPBCEndInterruptionInstruction"]
|
16
|
-
):
|
14
|
+
class PPBCEndInterruptionInstruction(GenPPBCEndInterruptionInstruction, S2MessageComponent):
|
17
15
|
model_config = GenPPBCEndInterruptionInstruction.model_config
|
18
16
|
model_config["validate_assignment"] = True
|
19
17
|
|
20
|
-
id: uuid.UUID = GenPPBCEndInterruptionInstruction.model_fields["id"] # type: ignore[assignment]
|
21
|
-
power_profile_id: uuid.UUID = GenPPBCEndInterruptionInstruction.model_fields[
|
18
|
+
id: uuid.UUID = GenPPBCEndInterruptionInstruction.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
19
|
+
power_profile_id: uuid.UUID = GenPPBCEndInterruptionInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
22
20
|
"power_profile_id"
|
23
21
|
] # type: ignore[assignment]
|
24
|
-
sequence_container_id: uuid.UUID = GenPPBCEndInterruptionInstruction.model_fields[
|
22
|
+
sequence_container_id: uuid.UUID = GenPPBCEndInterruptionInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
25
23
|
"sequence_container_id"
|
26
24
|
] # type: ignore[assignment]
|
27
|
-
power_sequence_id: uuid.UUID = GenPPBCEndInterruptionInstruction.model_fields[
|
25
|
+
power_sequence_id: uuid.UUID = GenPPBCEndInterruptionInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
28
26
|
"power_sequence_id"
|
29
27
|
] # type: ignore[assignment]
|
30
|
-
abnormal_condition: bool = GenPPBCEndInterruptionInstruction.model_fields[
|
28
|
+
abnormal_condition: bool = GenPPBCEndInterruptionInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
31
29
|
"abnormal_condition"
|
32
30
|
] # type: ignore[assignment]
|
@@ -14,14 +14,12 @@ from s2python.ppbc.ppbc_power_sequence_container import PPBCPowerSequenceContain
|
|
14
14
|
|
15
15
|
|
16
16
|
@catch_and_convert_exceptions
|
17
|
-
class PPBCPowerProfileDefinition(
|
18
|
-
GenPPBCPowerProfileDefinition, S2MessageComponent["PPBCPowerProfileDefinition"]
|
19
|
-
):
|
17
|
+
class PPBCPowerProfileDefinition(GenPPBCPowerProfileDefinition, S2MessageComponent):
|
20
18
|
model_config = GenPPBCPowerProfileDefinition.model_config
|
21
19
|
model_config["validate_assignment"] = True
|
22
20
|
|
23
|
-
message_id: uuid.UUID = GenPPBCPowerProfileDefinition.model_fields["message_id"] # type: ignore[assignment]
|
24
|
-
id: uuid.UUID = GenPPBCPowerProfileDefinition.model_fields["id"] # type: ignore[assignment]
|
25
|
-
power_sequences_containers: List[PPBCPowerSequenceContainer] = (
|
21
|
+
message_id: uuid.UUID = GenPPBCPowerProfileDefinition.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
22
|
+
id: uuid.UUID = GenPPBCPowerProfileDefinition.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
23
|
+
power_sequences_containers: List[PPBCPowerSequenceContainer] = ( # type: ignore[reportIncompatibleVariableOverride]
|
26
24
|
GenPPBCPowerProfileDefinition.model_fields["power_sequences_containers"] # type: ignore[assignment]
|
27
25
|
)
|
@@ -15,12 +15,10 @@ from s2python.ppbc.ppbc_power_sequence_container_status import (
|
|
15
15
|
|
16
16
|
|
17
17
|
@catch_and_convert_exceptions
|
18
|
-
class PPBCPowerProfileStatus(
|
19
|
-
GenPPBCPowerProfileStatus, S2MessageComponent["PPBCPowerProfileStatus"]
|
20
|
-
):
|
18
|
+
class PPBCPowerProfileStatus(GenPPBCPowerProfileStatus, S2MessageComponent):
|
21
19
|
model_config = GenPPBCPowerProfileStatus.model_config
|
22
20
|
model_config["validate_assignment"] = True
|
23
21
|
|
24
|
-
sequence_container_status: List[PPBCPowerSequenceContainerStatus] = (
|
22
|
+
sequence_container_status: List[PPBCPowerSequenceContainerStatus] = ( # type: ignore[reportIncompatibleVariableOverride]
|
25
23
|
GenPPBCPowerProfileStatus.model_fields["sequence_container_status"] # type: ignore[assignment]
|
26
24
|
)
|
@@ -15,16 +15,16 @@ from s2python.common import Duration
|
|
15
15
|
|
16
16
|
|
17
17
|
@catch_and_convert_exceptions
|
18
|
-
class PPBCPowerSequence(GenPPBCPowerSequence, S2MessageComponent
|
18
|
+
class PPBCPowerSequence(GenPPBCPowerSequence, S2MessageComponent):
|
19
19
|
model_config = GenPPBCPowerSequence.model_config
|
20
20
|
model_config["validate_assignment"] = True
|
21
21
|
|
22
|
-
id: uuid.UUID = GenPPBCPowerSequence.model_fields["id"] # type: ignore[assignment]
|
23
|
-
elements: List[PPBCPowerSequenceElement] = GenPPBCPowerSequence.model_fields[
|
22
|
+
id: uuid.UUID = GenPPBCPowerSequence.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
23
|
+
elements: List[PPBCPowerSequenceElement] = GenPPBCPowerSequence.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
24
24
|
"elements"
|
25
25
|
] # type: ignore[assignment]
|
26
|
-
is_interruptible: bool = GenPPBCPowerSequence.model_fields["is_interruptible"] # type: ignore[assignment]
|
27
|
-
max_pause_before: Duration = GenPPBCPowerSequence.model_fields["max_pause_before"] # type: ignore[assignment]
|
26
|
+
is_interruptible: bool = GenPPBCPowerSequence.model_fields["is_interruptible"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
27
|
+
max_pause_before: Duration = GenPPBCPowerSequence.model_fields["max_pause_before"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
28
28
|
abnormal_condition_only: bool = GenPPBCPowerSequence.model_fields[
|
29
29
|
"abnormal_condition_only"
|
30
|
-
] # type: ignore[assignment]
|
30
|
+
] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
@@ -15,13 +15,11 @@ from s2python.ppbc.ppbc_power_sequence import PPBCPowerSequence
|
|
15
15
|
|
16
16
|
|
17
17
|
@catch_and_convert_exceptions
|
18
|
-
class PPBCPowerSequenceContainer(
|
19
|
-
GenPPBCPowerSequenceContainer, S2MessageComponent["PPBCPowerSequenceContainer"]
|
20
|
-
):
|
18
|
+
class PPBCPowerSequenceContainer(GenPPBCPowerSequenceContainer, S2MessageComponent):
|
21
19
|
model_config = GenPPBCPowerSequenceContainer.model_config
|
22
20
|
model_config["validate_assignment"] = True
|
23
21
|
|
24
|
-
id: uuid.UUID = GenPPBCPowerSequenceContainer.model_fields["id"] # type: ignore[assignment]
|
25
|
-
power_sequences: List[PPBCPowerSequence] =
|
26
|
-
|
27
|
-
|
22
|
+
id: uuid.UUID = GenPPBCPowerSequenceContainer.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
23
|
+
power_sequences: List[PPBCPowerSequence] = GenPPBCPowerSequenceContainer.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
24
|
+
"power_sequences"
|
25
|
+
] # type: ignore[assignment]
|
@@ -12,21 +12,19 @@ from s2python.validate_values_mixin import (
|
|
12
12
|
|
13
13
|
|
14
14
|
@catch_and_convert_exceptions
|
15
|
-
class PPBCPowerSequenceContainerStatus(
|
16
|
-
GenPPBCPowerSequenceContainerStatus, S2MessageComponent["PPBCPowerSequenceContainerStatus"]
|
17
|
-
):
|
15
|
+
class PPBCPowerSequenceContainerStatus(GenPPBCPowerSequenceContainerStatus, S2MessageComponent):
|
18
16
|
model_config = GenPPBCPowerSequenceContainerStatus.model_config
|
19
17
|
model_config["validate_assignment"] = True
|
20
18
|
|
21
|
-
power_profile_id: uuid.UUID = GenPPBCPowerSequenceContainerStatus.model_fields[
|
19
|
+
power_profile_id: uuid.UUID = GenPPBCPowerSequenceContainerStatus.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
22
20
|
"power_profile_id" # type: ignore[assignment]
|
23
21
|
]
|
24
|
-
sequence_container_id: uuid.UUID = GenPPBCPowerSequenceContainerStatus.model_fields[
|
22
|
+
sequence_container_id: uuid.UUID = GenPPBCPowerSequenceContainerStatus.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
25
23
|
"sequence_container_id" # type: ignore[assignment]
|
26
24
|
]
|
27
|
-
selected_sequence_id: Union[uuid.UUID, None] =
|
28
|
-
|
29
|
-
|
30
|
-
progress: Union[uuid.UUID, None] = GenPPBCPowerSequenceContainerStatus.model_fields[
|
25
|
+
selected_sequence_id: Union[uuid.UUID, None] = GenPPBCPowerSequenceContainerStatus.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
26
|
+
"selected_sequence_id"
|
27
|
+
] # type: ignore[assignment]
|
28
|
+
progress: Union[uuid.UUID, None] = GenPPBCPowerSequenceContainerStatus.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
31
29
|
"progress" # type: ignore[assignment]
|
32
30
|
]
|
@@ -13,13 +13,11 @@ from s2python.common import Duration, PowerForecastValue
|
|
13
13
|
|
14
14
|
|
15
15
|
@catch_and_convert_exceptions
|
16
|
-
class PPBCPowerSequenceElement(
|
17
|
-
GenPPBCPowerSequenceElement, S2MessageComponent["PPBCPowerSequenceElement"]
|
18
|
-
):
|
16
|
+
class PPBCPowerSequenceElement(GenPPBCPowerSequenceElement, S2MessageComponent):
|
19
17
|
model_config = GenPPBCPowerSequenceElement.model_config
|
20
18
|
model_config["validate_assignment"] = True
|
21
19
|
|
22
|
-
duration: Duration = GenPPBCPowerSequenceElement.model_fields["duration"] # type: ignore[assignment]
|
23
|
-
power_values: List[PowerForecastValue] = GenPPBCPowerSequenceElement.model_fields[
|
20
|
+
duration: Duration = GenPPBCPowerSequenceElement.model_fields["duration"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
21
|
+
power_values: List[PowerForecastValue] = GenPPBCPowerSequenceElement.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
24
22
|
"power_values"
|
25
23
|
] # type: ignore[assignment]
|
@@ -10,24 +10,22 @@ from s2python.validate_values_mixin import (
|
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class PPBCScheduleInstruction(
|
14
|
-
GenPPBCScheduleInstruction, S2MessageComponent["PPBCScheduleInstruction"]
|
15
|
-
):
|
13
|
+
class PPBCScheduleInstruction(GenPPBCScheduleInstruction, S2MessageComponent):
|
16
14
|
model_config = GenPPBCScheduleInstruction.model_config
|
17
15
|
model_config["validate_assignment"] = True
|
18
16
|
|
19
|
-
id: uuid.UUID = GenPPBCScheduleInstruction.model_fields["id"] # type: ignore[assignment]
|
17
|
+
id: uuid.UUID = GenPPBCScheduleInstruction.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
20
18
|
|
21
|
-
power_profile_id: uuid.UUID = GenPPBCScheduleInstruction.model_fields[
|
19
|
+
power_profile_id: uuid.UUID = GenPPBCScheduleInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
22
20
|
"power_profile_id"
|
23
21
|
] # type: ignore[assignment]
|
24
22
|
|
25
|
-
message_id: uuid.UUID = GenPPBCScheduleInstruction.model_fields["message_id"] # type: ignore[assignment]
|
23
|
+
message_id: uuid.UUID = GenPPBCScheduleInstruction.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
26
24
|
|
27
|
-
sequence_container_id: uuid.UUID = GenPPBCScheduleInstruction.model_fields[
|
25
|
+
sequence_container_id: uuid.UUID = GenPPBCScheduleInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
28
26
|
"sequence_container_id"
|
29
27
|
] # type: ignore[assignment]
|
30
28
|
|
31
|
-
power_sequence_id: uuid.UUID = GenPPBCScheduleInstruction.model_fields[
|
29
|
+
power_sequence_id: uuid.UUID = GenPPBCScheduleInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
32
30
|
"power_sequence_id"
|
33
31
|
] # type: ignore[assignment]
|
@@ -11,22 +11,20 @@ from s2python.validate_values_mixin import (
|
|
11
11
|
|
12
12
|
|
13
13
|
@catch_and_convert_exceptions
|
14
|
-
class PPBCStartInterruptionInstruction(
|
15
|
-
GenPPBCStartInterruptionInstruction, S2MessageComponent["PPBCStartInterruptionInstruction"]
|
16
|
-
):
|
14
|
+
class PPBCStartInterruptionInstruction(GenPPBCStartInterruptionInstruction, S2MessageComponent):
|
17
15
|
model_config = GenPPBCStartInterruptionInstruction.model_config
|
18
16
|
model_config["validate_assignment"] = True
|
19
17
|
|
20
|
-
id: uuid.UUID = GenPPBCStartInterruptionInstruction.model_fields["id"] # type: ignore[assignment]
|
21
|
-
power_profile_id: uuid.UUID = GenPPBCStartInterruptionInstruction.model_fields[
|
18
|
+
id: uuid.UUID = GenPPBCStartInterruptionInstruction.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
19
|
+
power_profile_id: uuid.UUID = GenPPBCStartInterruptionInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
22
20
|
"power_profile_id"
|
23
21
|
] # type: ignore[assignment]
|
24
|
-
sequence_container_id: uuid.UUID = GenPPBCStartInterruptionInstruction.model_fields[
|
22
|
+
sequence_container_id: uuid.UUID = GenPPBCStartInterruptionInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
25
23
|
"sequence_container_id"
|
26
24
|
] # type: ignore[assignment]
|
27
|
-
power_sequence_id: uuid.UUID = GenPPBCStartInterruptionInstruction.model_fields[
|
25
|
+
power_sequence_id: uuid.UUID = GenPPBCStartInterruptionInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
28
26
|
"power_sequence_id"
|
29
27
|
] # type: ignore[assignment]
|
30
|
-
abnormal_condition: bool = GenPPBCStartInterruptionInstruction.model_fields[
|
28
|
+
abnormal_condition: bool = GenPPBCStartInterruptionInstruction.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
31
29
|
"abnormal_condition"
|
32
30
|
] # type: ignore[assignment]
|