mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-26 00:46:22 +02:00
21 lines
416 B
Python
21 lines
416 B
Python
|
|
from . spec import Spec
|
|
|
|
class Parameter:
|
|
def __init__(self, value):
|
|
self.value = value
|
|
async def start():
|
|
pass
|
|
async def stop():
|
|
pass
|
|
|
|
class ParameterSpec(Spec):
|
|
def __init__(self, name):
|
|
self.name = name
|
|
|
|
def add(self, flow, processor, definition):
|
|
|
|
value = definition.get(self.name, None)
|
|
|
|
flow.parameter[self.name] = Parameter(value)
|
|
|