Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KWH40
fml40-reference-implementation
Commits
9b1d8946
Commit
9b1d8946
authored
May 01, 2021
by
Jiahang Chen
Browse files
add new ml40 values
parent
e81ad455
Pipeline
#458438
passed with stages
in 51 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ml/dt_factory.py
View file @
9b1d8946
...
...
@@ -63,10 +63,12 @@
from
ml.ml40.features.properties.property
import
Property
from
ml.ml40.features.properties.associations.shared
import
Shared
from
ml.ml40.features.properties.values.address
import
Address
from
ml.ml40.features.properties.values.count
import
Count
from
ml.ml40.features.properties.values.dimensions
import
Dimensions
from
ml.ml40.features.properties.values.expansion_length
import
ExpansionLength
from
ml.ml40.features.properties.values.generic_property
import
GenericProperty
from
ml.ml40.features.properties.values.last_service_check
import
LastServiceCheck
from
ml.ml40.features.properties.values.lot
import
Lot
from
ml.ml40.features.properties.values.lift
import
Lift
from
ml.ml40.features.properties.values.liquid_filling_level
import
LiquidFillingLevel
from
ml.ml40.features.properties.values.location
import
Location
...
...
ml/ml40/features/properties/values/count.py
0 → 100644
View file @
9b1d8946
from
ml.ml40.features.properties.values.value
import
Value
class
Count
(
Value
):
def
__init__
(
self
,
name
=
""
,
identifier
=
""
):
super
().
__init__
(
name
=
name
,
identifier
=
identifier
)
self
.
currentCount
=
None
self
.
maxCount
=
None
self
.
minCount
=
None
self
.
__json_out
=
dict
()
def
to_json
(
self
):
self
.
__json_out
=
super
().
to_json
()
if
self
.
currentCount
is
not
None
:
self
.
__json_out
[
"currentCount"
]
=
self
.
currentCount
if
self
.
maxCount
is
not
None
:
self
.
__json_out
[
"maxCount"
]
=
self
.
maxCount
if
self
.
minCount
is
not
None
:
self
.
__json_out
[
"minCount"
]
=
self
.
minCount
return
self
.
__json_out
ml/ml40/features/properties/values/lot.py
0 → 100644
View file @
9b1d8946
from
ml.ml40.features.properties.values.value
import
Value
class
Lot
(
Value
):
def
__init__
(
self
,
name
=
""
,
identifier
=
""
):
super
().
__init__
(
name
=
name
,
identifier
=
identifier
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment