Class
ContinuousIconPlaceHolder
Continuous sensors SVG placeholder.
Inherits from:
These placeholders will contain a dynamic icon to represent the value of a continuous sensor. Relevant sensors are lamp, thermometer, etc.
- edit Alexis BRENON brenon.alexis+arcades@gmail.com
Fields
keyboard_arrow_upMetamethods
keyboard_arrow_up-
__init ( element, spec )
Constructor.
Parameters:-
Doc
element
XML element to parse -
table
spec
PlaceHolder's specification extracted from SVG description
-
Doc
Public Methods
keyboard_arrow_up-
get_random_value ()
Get a random value from the placeholder.
The value is sampled from the range
[
self.min_value,
self.max_value]
.Overrides: PlaceHolder:get_random_value
-
number
A value in the range
[
self.min_value,
self.max_value]
-
number
A value in the range
-
set_value ( value )
Change current value of the placeholder.
Overrides: PlaceHolder:set_value
-
number
value
New value to apply
-
ContinuousIconPlaceHolder
self
- boolean Is the value modified
-
number
Private Methods
keyboard_arrow_up-
_prepare_string ( element )
Initialize string and placed_values from given XML element.
Overrides: PlaceHolder._prepare_string
-
Doc
element
XML element
-
Doc