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

This task will trigger a timer in our device which will make it complain about an error situation, even if at that time no task is trying to use it. More...

Inheritance diagram for MockPlugin.Tasks.PretendCoffeeMachineIsBroken:
Collaboration diagram for MockPlugin.Tasks.PretendCoffeeMachineIsBroken:

Public Member Functions

override void Execute ()
 Do whatever you have to do with your parameters.
override string GetTaskAction ()
 Description of the tasks's action (for hints/time table)
Public Member Functions inherited from MockPlugin.Tasks.CoffeeMachineBaseTask
void SetDevice (IDevice yourDevice)
virtual void PreValidate ()
 Called before the schedule construction is completed.
virtual 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.ITaskForDevice
void SetDevice (IDevice yourDevice)
 Will be called by chronos when building the schedule.

Properties

bool SoftStop [get, set]
Properties inherited from MockPlugin.Tasks.CoffeeMachineBaseTask
IConsumableManipulator Consumables [get, set]
 You will get an instance of a helper class that helps your task to find the correct consumable puddle.

Additional Inherited Members

Protected Member Functions inherited from MockPlugin.Tasks.CoffeeMachineBaseTask
void CheckForCoffeeMachine (IDevice yourDevice)
 It makes no sense to use any other "Autosampler" than our fake coffee machine here.
Protected Attributes inherited from MockPlugin.Tasks.CoffeeMachineBaseTask
MockDevice mDevice

Detailed Description

This task will trigger a timer in our device which will make it complain about an error situation, even if at that time no task is trying to use it.

Definition at line 415 of file MockUseDeviceTasks.cs.

Member Function Documentation

◆ Execute()

override void MockPlugin.Tasks.PretendCoffeeMachineIsBroken.Execute ( )

Do whatever you have to do with your parameters.

Implements AxelSemrau.Chronos.Plugin.ITask.

Definition at line 418 of file MockUseDeviceTasks.cs.

419 {
420 mDevice.TriggerAbort(LocalizeMockPlugin
421 .PretendCoffeeMachineIsBroken_Execute_The_coffee_machine_s_heater_failed_,SoftStop);
422 }

References MockPlugin.Tasks.CoffeeMachineBaseTask.mDevice, and SoftStop.

◆ GetTaskAction()

override string MockPlugin.Tasks.PretendCoffeeMachineIsBroken.GetTaskAction ( )

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

Implements AxelSemrau.Chronos.Plugin.ITask.

Definition at line 424 of file MockUseDeviceTasks.cs.

425 {
426 return String.Format(LocalizeMockPlugin.PretendCoffeeMachineIsBroken_GetTaskAction_Will_make_the_device_abort_the_schedule_after_a_few_seconds_,SoftStop);
427 }

References SoftStop.

Property Documentation

◆ SoftStop

bool MockPlugin.Tasks.PretendCoffeeMachineIsBroken.SoftStop
getset

Definition at line 417 of file MockUseDeviceTasks.cs.

417{ get; set; }

Referenced by Execute(), and GetTaskAction().


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