blob: 60863a4eb28828c9b0f371d9fec08eb6641912da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
"""Lighweight Node to bridge to BSFS.
Part of the bsie module.
A copy of the license is provided with the project.
Author: Matthias Baumgartner, 2022
"""
# imports
import typing
# inner-module imports
from bsie.utils.bsfs import URI
# exports
__all__: typing.Sequence[str] = (
'Node'
)
## code ##
class Node():
"""Lightweight Node, disconnected from any bsfs structures."""
# node type.
node_type: URI
# node URI.
uri: URI
def __init__(
self,
node_type: URI,
uri: URI,
):
# assign members
self.node_type = URI(node_type)
self.uri = URI(uri)
## EOF ##
|