-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now that multiple use of same plugin can be done, only 1 reporter class required Now reports out via its name Reports function and data, low and high update reports data it was given and records it render_reasoning reports known data Added VERBOSITY constant for easy on/off of data reporting when True, all outputs when False, reporter only states function
- Loading branch information
Showing
10 changed files
with
44 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# GSC-19165-1, "The On-Board Artificial Intelligence Research (OnAIR) Platform" | ||
# | ||
# Copyright © 2023 United States Government as represented by the Administrator of | ||
# the National Aeronautics and Space Administration. No copyright is claimed in the | ||
# United States under Title 17, U.S. Code. All Other Rights Reserved. | ||
# | ||
# Licensed under the NASA Open Source Agreement version 1.3 | ||
# See "NOSA GSC-19165-1 OnAIR.pdf" | ||
|
||
from onair.src.ai_components.ai_plugin_abstract.ai_plugin import AIPlugin | ||
|
||
VERBOSE = False | ||
|
||
class Plugin(AIPlugin): | ||
def update(self, low_level_data=[], high_level_data={}): | ||
""" | ||
Reporter outputs that it is updating and outputs known headers and | ||
given low and high level data. | ||
""" | ||
print(f"{self.component_name}: UPDATE") | ||
if VERBOSE: | ||
print(f" : headers {self.headers}") | ||
print(f" : low_level_data {low_level_data.__class__} = '{low_level_data}'") | ||
self.low_level_data = low_level_data | ||
print(f" : high_level_data {high_level_data.__class__} = '{high_level_data}'") | ||
self.high_level_data = high_level_data | ||
|
||
def render_reasoning(self): | ||
""" | ||
Reporter outputs that it is reasoning and gives its known low and | ||
high level data. | ||
""" | ||
print(f"{self.component_name}: RENDER_REASONING") | ||
if VERBOSE: | ||
print(f" : My low_level_data is {self.low_level_data}") | ||
print(f" : My high_level_data is {self.high_level_data}") |
26 changes: 0 additions & 26 deletions
26
plugins/reporters/reporter_of_complexity/reporter_of_complexity_plugin.py
This file was deleted.
Oops, something went wrong.
Empty file.
26 changes: 0 additions & 26 deletions
26
plugins/reporters/reporter_of_knowledge/reporter_of_knowledge_plugin.py
This file was deleted.
Oops, something went wrong.
Empty file.
26 changes: 0 additions & 26 deletions
26
plugins/reporters/reporter_of_learning/reporter_of_learning_plugin.py
This file was deleted.
Oops, something went wrong.
Empty file.
26 changes: 0 additions & 26 deletions
26
plugins/reporters/reporter_of_planning/reporter_of_planning_plugin.py
This file was deleted.
Oops, something went wrong.