26 throw new InvalidOperationException(
"Need a train part as \"Autosampler\"");
39 return $
"{(DoorsOpen ? "Opening
" : "Closing
")} the doors of {mMyTrainPart?.Name ?? "N/A
"}";
Classes and interfaces that are meant for plugins. The classes and interfaces below this namespace ar...
A fake device. This namespace contains the fake device driver and auxiliary classes for settings,...
Example task implementations. Since there are lots of things that can be done from a task,...
To be implemented by the "device driver" part of a Chronos plugin.
To be implemented if the task needs to access a device ("Autosampler" property in Chronos)
The device part (well, train part) can't do much, just send status messages when the doors are opened...
Just show that some kind of operation can be done with our "Train" device parts.
void PreValidate()
Called before the schedule construction is completed.
void PostValidate()
Called after the schedule construction is completed.
void SetDevice(IDevice yourDevice)
Will be called by chronos when building the schedule.
string GetTaskAction()
Description of the tasks's action (for hints/time table)
void Execute()
Do whatever you have to do with your parameters.