Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ControlComponent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Maximilian Rink
ControlComponent
Commits
f0a678e6
Commit
f0a678e6
authored
3 years ago
by
Tobias
Browse files
Options
Downloads
Patches
Plain Diff
comments
parent
d7270f75
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ControlComponents.ML/IMLControlComponent.cs
+0
-48
0 additions, 48 deletions
src/ControlComponents.ML/IMLControlComponent.cs
src/ControlComponents.ML/MLProviderOperationMode.cs
+1
-0
1 addition, 0 deletions
src/ControlComponents.ML/MLProviderOperationMode.cs
with
1 addition
and
48 deletions
src/ControlComponents.ML/IMLControlComponent.cs
+
0
−
48
View file @
f0a678e6
using
System.Threading.Tasks
;
using
ControlComponents.Core
;
/// <summary>
/// Field-based asynchronous interface for communication between <see cref="MLOperationMode"/>
/// and <see cref="MLModel"/>, which may be realised via network communication in the future.
/// </summary>
/// <remarks>
/// < para />
/// Interface variable definitions.
/// | # | I/O | Name | Langname | Datentyp | Beschreibung |
/// |----|-----|----------|---------------------|-------------------------|-------------------------------------|
/// | 1 | O | OPMODE | Operation Mode | String | Aktuelle Fahrweis |
/// | 2 | O | EXMODE | Execution Mode | String | Aktuelle Betriebsart |
/// | 3 | O | EXST | Execution State | String | Aktueller Betriebszustand |
/// |----|-----|----------|---------------------|-------------------------|-------------------------------------|
/// | 4 | I | MLSC | ML State Change | String | Rückmeldung Betriebszustandswechsel |
/// | 5 | O | MLMODEL | ML Model | String | Auswahl des ML-Modells |
/// | 6 | O | MLOBSERV | ML Oberservation | Float[1..*] \{ordered\} | Letzte Beobachtungen |
/// | 7 | O | MLENACT | ML Enable Action | Bool[1..*] \{ordered\} | Maskierung möglicher Aktionen |
/// | 8 | I | MLDECIDE | ML Decision | Float[1..*] \{ordered\} | Entscheidungen des ML-Modells |
/// | 9 | O | MLREWARD | ML Reward | Float | Bewertung |
/// | 10 | O | MLREWINC | ML Reward Increment | Bool | Inkrementelle / Absolute Bewertung |
/// | 11 | I | MLSTATS | ML Stats | String | Statistik des ML-Modells |
/// < para />
/// Variables involed in standard observe, decide (act), reward cycle:
/// | # | O/E | I/O | Variable 1 | Variable 2 | Trigger | MLSC |
/// |---|-----|-----|-----------------------------------|---------------------------------|--------------------|--------------|
/// | 1 | O | O | MLMODEL: String | EXMODE: String | OPMODE == Name | |
/// | 2 | O | I | MLSC: String | | EXST == STARTING | EXECUTE |
/// | 3 | E | O | MLOBSERV: Float[1..*] \{ordered\} | MLENACT: Bool[1..*] \{ordered\} | EXST == EXECUTE | |
/// | 4 | E | I | MLDECIDE: Float[1..*] \{ordered\} | MLSC: String | EXST == SUSPENDED | UNSUSPENDING |
/// | 5 | E | O | MLREWARD: Float | MLREWINC: Bool | EXST == SUSPENDING | |
/// | 6 | O | I | MLSC: String | | EXST == COMPLETING | COMPLETED |
/// | 7 | O | I | MLSTATS: String | | MLSTATS == NULL | |
/// TODO MLENACT: Array -> Matrix
/// TODO MLREWINC: Not necessary --> always use set?
/// </remarks>
namespace
ControlComponents.ML
{
public
interface
IMLControlComponent
:
IControlComponent
{
/* Control Component: can be read directly from cc */
// TODO define IControlComponentState and add one variable (cc) for it?
//OperationMode OPMODE { get; }
//ExecutionMode EXMODE { get; }
//ExecutionState EXST { get; }
/* ML Specific: */
// TODO getter and setter modifier
// use set in another interface for the operation mode
ExecutionState
MLSC
{
get
;
set
;
}
string
MLMODEL
{
get
;
}
float
[]
MLOBSERVE
{
get
;
set
;
}
...
...
This diff is collapsed.
Click to expand it.
src/ControlComponents.ML/MLProviderOperationMode.cs
+
1
−
0
View file @
f0a678e6
...
...
@@ -7,6 +7,7 @@ using ControlComponents.Core;
namespace
ControlComponents.ML
{
// TODO check of OperationMode as super class could be sufficient
public
abstract
class
MLProviderOperationMode
:
OperationModeWaitOutputs
{
private
readonly
IMLControlComponent
cc
;
...
...
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