Commit cbd84b95 authored by GromeTT's avatar GromeTT
Browse files

ENHÖ: Added documentation for AcceptsMoveCommands

parent 0e9d79c0
from ml.ml40.features.functionalities.functionality import Functionality
"""This module implements the class AcceptsMoveCommands."""
from ml.ml40.features.functionalities.functionality import Functionality
class AcceptsMoveCommands(Functionality):
"""This functionality signalizes that the thing can be moved remotely
via S3I-B messages ."""
def __init__(self, name="", identifier=""):
"""Initializes the object.
:param name: Object name
:param identifier: Identifier
def move(self, longitude: float, latitude: float):
"""Moves the thing to the position specified longitude and latitude.
:param longitude: Longitude
:param latitude: Latitude
print("move to longitude: {}, latitude : {}".format(longitude, latitude))
return {"longitude": longitude, "latitude": latitude}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment