Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KWH40
fml40-reference-implementation
Commits
25d70488
Commit
25d70488
authored
Dec 03, 2020
by
GromeTT
Browse files
ENH: Added partial documentation for AcceptsProximityAlert
parent
cbd84b95
Changes
1
Show whitespace changes
Inline
Side-by-side
ml/fml40/features/functionalities/accepts_proximity_alert.py
View file @
25d70488
from
ml.ml40.features.functionalities.functionality
import
Functionality
"""This module implements the class AcceptsProximityAlert."""
from
ml.ml40.features.functionalities.functionality
import
Functionality
class
AcceptsProximityAlert
(
Functionality
):
"""This functionality signalizes that an alert is generated if things
are to close to this thing."""
def
__init__
(
self
,
name
=
""
,
identifier
=
""
):
"""Initializes the object.
:param name: Object name
:param identifier: Identifier
"""
super
().
__init__
(
name
=
name
,
identifier
=
identifier
)
def
proximityAlert
(
self
,
ids
:
list
,
distances
:
list
):
print
(
"Making Proximity Alert..."
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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