Format docstrings
This commit is contained in:
@@ -6,8 +6,7 @@ class Protocol(object):
|
||||
"""Protocol class."""
|
||||
|
||||
def __init__(self, _name):
|
||||
"""
|
||||
Init.
|
||||
"""Init.
|
||||
|
||||
Args:
|
||||
_name: The protocol name
|
||||
@@ -16,8 +15,7 @@ class Protocol(object):
|
||||
self.load = 0 # bps
|
||||
|
||||
def get_name(self):
|
||||
"""
|
||||
Gets the protocol name.
|
||||
"""Gets the protocol name.
|
||||
|
||||
Returns:
|
||||
The protocol name
|
||||
@@ -25,8 +23,7 @@ class Protocol(object):
|
||||
return self.name
|
||||
|
||||
def get_load(self):
|
||||
"""
|
||||
Gets the protocol load.
|
||||
"""Gets the protocol load.
|
||||
|
||||
Returns:
|
||||
The protocol load (bps)
|
||||
@@ -34,8 +31,7 @@ class Protocol(object):
|
||||
return self.load
|
||||
|
||||
def add_load(self, _load):
|
||||
"""
|
||||
Adds load to the protocol.
|
||||
"""Adds load to the protocol.
|
||||
|
||||
Args:
|
||||
_load: The load to add
|
||||
|
||||
@@ -8,8 +8,7 @@ class Service(object):
|
||||
"""Service class."""
|
||||
|
||||
def __init__(self, name: str, port: str, software_state: SoftwareState):
|
||||
"""
|
||||
Init.
|
||||
"""Init.
|
||||
|
||||
:param name: The service name.
|
||||
:param port: The service port.
|
||||
|
||||
Reference in New Issue
Block a user