Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adham Hashibon
force-bdss
Commits
d2736ebd
Commit
d2736ebd
authored
7 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
Added slots abstract method
parent
9bc2218c
No related branches found
No related tags found
1 merge request
!69
Introduce slots and resolution of named variables
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
force_bdss/data_sources/base_data_source.py
+23
-0
23 additions, 0 deletions
force_bdss/data_sources/base_data_source.py
with
23 additions
and
0 deletions
force_bdss/data_sources/base_data_source.py
+
23
−
0
View file @
d2736ebd
...
...
@@ -37,3 +37,26 @@ class BaseDataSource(ABCHasStrictTraits):
List(DataValue)
A list containing the computed Data Values.
"""
@abc.abstractmethod
def
slots
(
self
,
model
):
"""
Returns the input (and output) slots of the DataSource.
Slots are the entities that are needed (and produced) by this
DataSource.
The slots may depend on the configuration options, and thus the model.
This allows, for example, to change the slots depending if an option
is enabled or not.
Parameters
----------
model: BaseDataSourceModel
The model of the DataSource, instantiated through create_model()
Returns
-------
list[tuple, tuple]
A list containing two tuples, the first element is the input slots,
the second element is the output slots. Each slot must be an
instance of the Slot class.
"""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment