Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
This task demonstrates how to make the property list depend on the picked autosampler. More...
Classes | |
class | MyPropertyDescriptor |
Just a dynamic property named after the picked autosampler. The value is just redirected to the mDynPropValue of the task. More... | |
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) | |
void | SetDevice (IDevice yourDevice) |
Will be called by chronos when building the schedule. | |
void | PropertyEdited (string propName, object propValue) |
This will be called as soon as a property was changed in the method editor. | |
override PropertyDescriptorCollection | GetProperties () |
override object | GetPropertyOwner (PropertyDescriptor pd) |
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) | |
void | SetDevice (IDevice yourDevice) |
React to a picked device. | |
void | PropertyEdited (string propName, object propValue) |
This gets called by Chronos if there's some new text in the method editor, but Chronos could not find a matching device. | |
override PropertyDescriptorCollection | GetProperties () |
override object | GetPropertyOwner (PropertyDescriptor pd) |
Public Member Functions inherited from AxelSemrau.Chronos.Plugin.ITaskForDevice | |
Public Member Functions inherited from AxelSemrau.Chronos.Plugin.ITask | |
Public Member Functions inherited from AxelSemrau.Chronos.Plugin.IWantEditorUpdates |
Private Attributes | |
string | mDevName |
string | mDynPropValue |
IDevice | mDevice |
Static Private Attributes | |
const string | NoDevice = "No device" |
This task demonstrates how to make the property list depend on the picked autosampler.
The task has one dynamic property that is named after the picked autosampler.
Definition at line 14 of file Tasks/MockDynamicPropsDependingOnDevice.cs.
void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.Execute | ( | ) |
Do whatever you have to do with your parameters.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 26 of file MockDynamicPropsDependingOnDevice.cs.
void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.Execute | ( | ) |
Do whatever you have to do with your parameters.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 31 of file Tasks/MockDynamicPropsDependingOnDevice.cs.
override PropertyDescriptorCollection MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.GetProperties | ( | ) |
Definition at line 57 of file MockDynamicPropsDependingOnDevice.cs.
override PropertyDescriptorCollection MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.GetProperties | ( | ) |
Definition at line 73 of file Tasks/MockDynamicPropsDependingOnDevice.cs.
override object MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.GetPropertyOwner | ( | PropertyDescriptor | pd | ) |
Definition at line 63 of file MockDynamicPropsDependingOnDevice.cs.
override object MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.GetPropertyOwner | ( | PropertyDescriptor | pd | ) |
Definition at line 79 of file Tasks/MockDynamicPropsDependingOnDevice.cs.
string MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.GetTaskAction | ( | ) |
Description of the tasks's action (for hints/time table)
Implements AxelSemrau.Chronos.Plugin.ITask.
string MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.GetTaskAction | ( | ) |
Description of the tasks's action (for hints/time table)
Implements AxelSemrau.Chronos.Plugin.ITask.
void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.PostValidate | ( | ) |
Called after the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 22 of file MockDynamicPropsDependingOnDevice.cs.
void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.PostValidate | ( | ) |
Called after the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 27 of file Tasks/MockDynamicPropsDependingOnDevice.cs.
void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.PreValidate | ( | ) |
Called before the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 18 of file MockDynamicPropsDependingOnDevice.cs.
void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.PreValidate | ( | ) |
Called before the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 23 of file Tasks/MockDynamicPropsDependingOnDevice.cs.
void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.PropertyEdited | ( | string | propName, |
object | propValue ) |
This will be called as soon as a property was changed in the method editor.
propName | |
propValue |
Implements AxelSemrau.Chronos.Plugin.IWantEditorUpdates.
Definition at line 44 of file MockDynamicPropsDependingOnDevice.cs.
References MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.mDevName, and MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.NoDevice.
Referenced by MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.SetDevice().
void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.PropertyEdited | ( | string | propName, |
object | propValue ) |
This gets called by Chronos if there's some new text in the method editor, but Chronos could not find a matching device.
propName | |
propValue |
Implements AxelSemrau.Chronos.Plugin.IWantEditorUpdates.
Definition at line 60 of file Tasks/MockDynamicPropsDependingOnDevice.cs.
References MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.mDevName, and MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.NoDevice.
void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.SetDevice | ( | IDevice | yourDevice | ) |
Will be called by chronos when building the schedule.
yourDevice |
Implements AxelSemrau.Chronos.Plugin.ITaskForDevice.
Definition at line 33 of file MockDynamicPropsDependingOnDevice.cs.
References MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.mDevice, and MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.PropertyEdited().
void MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.SetDevice | ( | IDevice | yourDevice | ) |
React to a picked device.
yourDevice |
Implements AxelSemrau.Chronos.Plugin.ITaskForDevice.
Definition at line 44 of file Tasks/MockDynamicPropsDependingOnDevice.cs.
References MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.mDevice, and MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.PropertyEdited().
|
private |
Definition at line 16 of file MockDynamicPropsDependingOnDevice.cs.
Referenced by MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.SetDevice().
|
private |
Definition at line 14 of file MockDynamicPropsDependingOnDevice.cs.
Referenced by MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.PropertyEdited().
|
private |
Definition at line 15 of file MockDynamicPropsDependingOnDevice.cs.
|
staticprivate |
Definition at line 13 of file MockDynamicPropsDependingOnDevice.cs.
Referenced by MockPlugin.Tasks.MockDynamicPropsDependingOnDevice.PropertyEdited().