Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
MockPlugin.Tasks.DumpConfigInfo Class Reference

This tasks uses the config helper to access some information about the instrument configuration and just dumps it to the runlog. More...

+ Inheritance diagram for MockPlugin.Tasks.DumpConfigInfo:
+ Collaboration diagram for MockPlugin.Tasks.DumpConfigInfo:

Public Member Functions

void PreValidate ()
 Called before the schedule construction is completed.
 
void PostValidate ()
 Called after the schedule construction is completed.
 
void Execute ()
 Do whatever you have to do with your parameters.
 
string GetTaskAction ()
 Description of the tasks's action (for hints/time table)
 
- Public Member Functions inherited from AxelSemrau.Chronos.Plugin.ITask

Events

Action< string > WriteToRunlog
 
- Events inherited from AxelSemrau.Chronos.Plugin.IHaveRunlogOutput
Action< string > WriteToRunlog
 Use this event to send output to the Run Control / Runlog page and, if applicable, to the runlog file.
 

Detailed Description

This tasks uses the config helper to access some information about the instrument configuration and just dumps it to the runlog.

Definition at line 11 of file MockConfigUsingTask.cs.

Member Function Documentation

◆ Execute()

void MockPlugin.Tasks.DumpConfigInfo.Execute ( )

Do whatever you have to do with your parameters.

Implements AxelSemrau.Chronos.Plugin.ITask.

Definition at line 25 of file MockConfigUsingTask.cs.

26 {
27 var info = Helpers.Config;
28 var sb = new StringBuilder();
29 sb.AppendLine($"Path to methods: {info.PathToMethods}");
30 sb.AppendLine($"Default sample lists location: {info.PathToSampleLists}");
31 sb.AppendLine($"Location of instrument configuration: {info.PathToInstrumentConfig}");
32 sb.AppendLine();
33 sb.AppendLine("Trays:");
34 foreach (var tray in info.Trays)
35 {
36 sb.AppendLine($"{tray.Name} on sampler {tray.Sampler?.ToString() ?? "N/A"}, valid indices {tray.FirstIndex} - {tray.LastIndex} ({tray.NoOfPositions} total)");
37 }
38 WriteToRunlog?.Invoke(sb.ToString());
39 }
Static instance for access to utility functions and resources.
Definition Helpers.cs:78
static IConfigInfo Config
Information about general program configuration, standard folders and similar.
Definition Helpers.cs:102

References AxelSemrau.Chronos.Plugin.Helpers.Config, and MockPlugin.Tasks.DumpConfigInfo.WriteToRunlog.

◆ GetTaskAction()

string MockPlugin.Tasks.DumpConfigInfo.GetTaskAction ( )

Description of the tasks's action (for hints/time table)

Implements AxelSemrau.Chronos.Plugin.ITask.

◆ PostValidate()

void MockPlugin.Tasks.DumpConfigInfo.PostValidate ( )

Called after the schedule construction is completed.

Implements AxelSemrau.Chronos.Plugin.ITask.

Definition at line 20 of file MockConfigUsingTask.cs.

21 {
22 // nothing
23 }

◆ PreValidate()

void MockPlugin.Tasks.DumpConfigInfo.PreValidate ( )

Called before the schedule construction is completed.

Implements AxelSemrau.Chronos.Plugin.ITask.

Definition at line 15 of file MockConfigUsingTask.cs.

16 {
17 // nothing
18 }

Event Documentation

◆ WriteToRunlog

Action<string> MockPlugin.Tasks.DumpConfigInfo.WriteToRunlog

Definition at line 47 of file MockConfigUsingTask.cs.

Referenced by MockPlugin.Tasks.DumpConfigInfo.Execute().


The documentation for this class was generated from the following file: