Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
The device part (well, train part) can't do much, just send status messages when the doors are opened/closed. More...
Public Member Functions | |
override string | ToString () |
Important! Without overriding ToString here, you will not be able to pick the device from an autosampler column in the sample list. | |
void | Connect () |
You may have connected to the device before this, but make sure you are connected after this. | |
void | Disconnect () |
You may disconnect now. | |
Public Member Functions inherited from AxelSemrau.Chronos.Plugin.IDevice |
Properties | |
string | DisplayedTypeName [get] |
Text which is displayed in the instruments settings "Autosampler Type" column and in many other places. | |
string | DeviceTypeDescription [get] |
Text which is displayed to make clear which kind of device a named sampler is. | |
string | Name [get, set] |
We have to return a descriptive name that also allows identification of the base device - just do it like the PAL3 and return BaseName + ":" + PartName. | |
int | Num [get, set] |
bool? | DoorsOpen [get, set] |
Properties inherited from AxelSemrau.Chronos.Plugin.IDevice |
Events | |
Action< ConnectionState > | ConnectionStateChanged [add, remove] |
Not used. | |
Action< string > | SetStatusMessage |
Events inherited from AxelSemrau.Chronos.Plugin.IDevice | |
Action< ConnectionState > | ConnectionStateChanged |
Raise this event when your connection state has changed. | |
Events inherited from AxelSemrau.Chronos.Plugin.IProvideStatusMessages | |
Action< string > | SetStatusMessage |
Raise this event to set your current status while doing something on the device. Messages passed to this event will be shown in the "Autosampler status" line. | |
Private Member Functions | |
string | BuildName () |
Private Attributes | |
readonly Train | mTrain |
readonly TrainPartType | mMyType |
bool | mDoorsAreOpen |
The device part (well, train part) can't do much, just send status messages when the doors are opened/closed.
|
private |
Definition at line 100 of file Train.cs.
References MockPlugin.Device.TrainPart.mMyType.
void MockPlugin.Device.TrainPart.Connect | ( | ) |
You may have connected to the device before this, but make sure you are connected after this.
Implements AxelSemrau.Chronos.Plugin.IDevice.
Definition at line 113 of file Train.cs.
void MockPlugin.Device.TrainPart.Disconnect | ( | ) |
You may disconnect now.
Implements AxelSemrau.Chronos.Plugin.IDevice.
Definition at line 118 of file Train.cs.
override string MockPlugin.Device.TrainPart.ToString | ( | ) |
Important! Without overriding ToString here, you will not be able to pick the device from an autosampler column in the sample list.
|
private |
Definition at line 79 of file Train.cs.
Referenced by MockPlugin.Device.TrainPart.BuildName().
|
get |
Text which is displayed to make clear which kind of device a named sampler is.
Implements AxelSemrau.Chronos.Plugin.IDevice.
|
get |
Text which is displayed in the instruments settings "Autosampler Type" column and in many other places.
Implements AxelSemrau.Chronos.Plugin.IDevice.
|
getset |
Definition at line 130 of file Train.cs.
|
getset |
We have to return a descriptive name that also allows identification of the base device - just do it like the PAL3 and return BaseName + ":" + PartName.
Implements AxelSemrau.Chronos.Plugin.IDevice.
Definition at line 86 of file Train.cs.
|
addremove |
Action<string> MockPlugin.Device.TrainPart.SetStatusMessage |