This is historical information of device classes implemented in PyStateComposer device server.

Use this link to find the valid information.

Development status: Released
Information status: Updated

Contact:



Class Description


When a new Device is added the composer subscribes to its State changes.
If it is not able to subscribe to events, then a polling thread is started. relays on PyTango_utils package to provide DynamicAttributes and DynamicStates. Either StatePolicy or DynamicStates property can be used to compose the State. StatePolicy uses the same format than Soleil`s composer, the default policy is generated the first time the composer is launched

Families: Calculation

Key words:

Language: Python

License:

Contact:

Class interface


Attributes:

Name Description
VersionNumberScalar: DevString
StatesListSpectrum: DevString
DevicesListSpectrum: DevString
DevStatesSpectrum: DevString

Commands:

Name Description
StateInput: DevVoid
Output: State
This command gets the device state (stored in its device_state data member) and returns it to the caller.
StatusInput: DevVoid
Output: DevString
This command gets the device status (stored in its device_status data member) and returns it to the caller.
AddDeviceInput: DevString
Output: DevVoid
None.
RemoveDeviceInput: DevString
Output: DevVoid
None.
UpdateStatePolicyInput: DevVoid
Output: DevVoid
Updates the way State is computed

Pipes:

Properties:

Name Description
DynamicAttributesString[]Type Attributes and formulas to create for this device.This Tango Attributes will be generated dynamically using this syntax: AllPressures=DevVarDoubleArray([XAttr(dev+`/Pressure`) or 0 for dev in DEVICES])
DynamicStatesString[]Type This property will allow to declare new States dinamically based on dynamic attributes changes: FAULT=any([s==FAULT for s in STATES]) ON=1
DynamicStatusString[]Type Each line generated by this property code will be added to status
CheckDependenciesDevBoolean This property manages if dependencies between attributes are used to check readability.
PollingCycleDevLong Default period for polling all device states.
UseEventsString[]Type This property allows to enable/disable events management.
DevicesListString[]Type A list of device names, wildcards like domain/family/ * are allowed.If this property is not initialized DeviceNameList is read instead.
IgnoreListString[]Type A list of device names, wildcards like domain/family/ * are allowed.The devices in this list will not be used to compose the state.
SubComposersString[]Type A list of composer device names from which devices/states lists will be imported.
StatePolicyString[]Type A list of States and its priority. this property is not used if DynamicStates has been initialized.
SortListsDevBoolean A property to control whether DEVICES/STATES lists will be sorted or not
LogLevelDevString This property selects the log level (DEBUG/INFO/WARNING/ERROR)

22 Feb 2018, DS Admin
Updated:
The device class has been updated.
You are looking at this version now.



20 Apr 2017, Piotr Goryl
Updated:
The device class has been updated.
You can see previous version here .



23 Feb 2017, Piotr Goryl
Created:
The device class has been added to catalogue.
Added by:pgoryl2 on:22 Feb 2018, 2:28 p.m.