Chronos Plugins 5.4.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
We have a fancy coffee machine that can regulate the warmer temperature for the pot and has lamps for ambient light. More...
Public Member Functions | |
override string | ToString () |
override bool | Equals (object obj) |
override int | GetHashCode () |
Since all parameters are represented in the ToString representation, we can use its hash code instead of coming up with a different calculation method. | |
int | CompareTo (object obj) |
CoffeMakerParams | Clone () |
Properties | |
bool | AmbientLight [get, set] |
int? | WarmerTemperature [get, set] |
We have a fancy coffee machine that can regulate the warmer temperature for the pot and has lamps for ambient light.
You must override the Equals operator to allow Chronos to check if two method's settings are compatible. Any better ideas? Your suggestions are welcome.
Definition at line 16 of file CoffeMakerParams.cs.
CoffeMakerParams MockPlugin.Device.CoffeMakerParams.Clone | ( | ) |
Definition at line 57 of file CoffeMakerParams.cs.
References MockPlugin.Device.CoffeMakerParams.AmbientLight, and MockPlugin.Device.CoffeMakerParams.WarmerTemperature.
int MockPlugin.Device.CoffeMakerParams.CompareTo | ( | object | obj | ) |
Definition at line 45 of file CoffeMakerParams.cs.
References MockPlugin.Device.CoffeMakerParams.AmbientLight, and MockPlugin.Device.CoffeMakerParams.WarmerTemperature.
override bool MockPlugin.Device.CoffeMakerParams.Equals | ( | object | obj | ) |
Definition at line 28 of file CoffeMakerParams.cs.
References MockPlugin.Device.CoffeMakerParams.AmbientLight, and MockPlugin.Device.CoffeMakerParams.WarmerTemperature.
override int MockPlugin.Device.CoffeMakerParams.GetHashCode | ( | ) |
Since all parameters are represented in the ToString representation, we can use its hash code instead of coming up with a different calculation method.
Definition at line 38 of file CoffeMakerParams.cs.
References MockPlugin.Device.CoffeMakerParams.ToString().
override string MockPlugin.Device.CoffeMakerParams.ToString | ( | ) |
Definition at line 21 of file CoffeMakerParams.cs.
Referenced by MockPlugin.Device.CoffeMakerParams.GetHashCode().
|
getset |
Definition at line 18 of file CoffeMakerParams.cs.
Referenced by MockPlugin.Device.CoffeMakerParams.Clone(), MockPlugin.Device.CoffeMakerParams.CompareTo(), and MockPlugin.Device.CoffeMakerParams.Equals().
|
getset |
Definition at line 19 of file CoffeMakerParams.cs.
Referenced by MockPlugin.Device.CoffeMakerParams.Clone(), MockPlugin.Device.CoffeMakerParams.CompareTo(), and MockPlugin.Device.CoffeMakerParams.Equals().