39 lines
757 B
Python
39 lines
757 B
Python
"""
|
|
Join Exclude module
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
|
Contributor Milad milad.aghamohamadnia@concordia.ca
|
|
"""
|
|
|
|
from typing import List, TypeVar
|
|
|
|
Node = TypeVar['Node']
|
|
|
|
# todo: check if this class makes sense????
|
|
|
|
|
|
class JoinExclude:
|
|
"""
|
|
JoinExclude class
|
|
"""
|
|
|
|
def __init__(self):
|
|
self._nodes = None
|
|
self._nodes_ids = None
|
|
|
|
@property
|
|
def nodes(self) -> List[Node]:
|
|
"""
|
|
List of nodes which are excluded from the big cluster
|
|
:return: [Node]
|
|
"""
|
|
return self._nodes
|
|
|
|
@nodes.setter
|
|
def nodes(self, value):
|
|
"""
|
|
List of nodes setter
|
|
:param value: [Node]
|
|
"""
|
|
self._nodes = value
|