waltz

1.0.10

Controller

Login controller

new Controller()

Type: LoginController

UserScript

new UserScript($0: Object)

Type: UserScript

Extends MVC.Model

Author: Igor Khokhriakov <igor.khokhriakov@hzg.de>
Since: 4/30/18
Parameters
$0 (Object)
Name Description
$0.id any
$0.code any
Properties
name (string)
code (string)
func (function)

execute

execute(context: any): Promise<any>
Parameters
context (any)
Returns
Promise<any>:

bottom_toolbar

Extends webix.ui.toolbar

bottom_toolbar
Properties
name (String)
Static Members
switchLogBtnIcon(type)

newBottomToolbar

newBottomToolbar(root: any)
Parameters
root (any)

logger

Extends webix.ui.list

logger
Properties
name (String)
Instance Members
new $init(config)
log(item)

ScriptingConsole

ScriptingConsole
Author: Igor Khokhriakov <igor.khokhriakov@hzg.de>
Since: 4/30/18
Static Members
upper_toolbar
script_code
scripts_list
output
scripting_console

onAfterSelect

Fires event:item_selected

onAfterSelect(id: string)
Parameters
id (string)

$init

$init(config: any)
Parameters
config (any)

DeviceViewPanel

This module contains two panels related to tango device: info panel and control panel.

Info panel is responsible for displaying device's info as datatable and commands, attributes and pipes as lists

Control panel executes commands; reads, writes attributes and pipes

DeviceViewPanel
Static Members
DevicePanelAttributes
DevicePanelCommands
device_tree_list
device_info_panel
info_panel_empty
info_control_panel
DevicePanelPipes
kInfoControlPanelHeaderIcon

run

run()

$init

new $init(config: any)
Parameters
config (any)

$drop

$drop()
Related
onBeforeDrop

AttrsMonitorView

AttrsMonitorView
Static Members
newScalarSettings(config)
scalars
newScalars(config)
attrs_monitor

addTrace

addTrace(trace: any, x: [], y: [], ndx: int)
Parameters
trace (any) name
x ([]) timestamps
y ([]) values
ndx (int)

addTraces

addTraces(traces: Array<string>, x: [], y: [])
Parameters
traces (Array<string>) names
x ([]) timestamps
y ([]) values

deleteTrace

deleteTrace(ndx: int)
Parameters
ndx (int) same as used in addTrace

updateTraces

updateTraces(traces: [], times: [], data: [])
Parameters
traces ([]) an array of traces indices
times ([])
data ([]) an array of data arrays

update

Updates this plot with single data item

update(data: {timestamp: int, value: data})
Parameters
data ({timestamp: int, value: data})

updateMulti

Updates this plot with multiple data items

updateMulti(data: [{timestamp: int, value: data}])
Parameters
data ([{timestamp: int, value: data}])

clearAll

clearAll()

$init

new $init(config: any)
Parameters
config (any)

update

update(data: any)
Parameters
data (any)

$init

new $init(config: any)
Parameters
config (any)

Plot

Plot
Static Members
spectrum_text
image_plot
kMargins
scalar_text
scalar
spectrum

InfoDatatable

InfoDatatable

DevicesTree

DevicesTree
Static Members
tree
kDevicesTreePanelHeaderIcon
kDevicesTreePanelHeader

dashboard_device_filters

Extends webix.ui.layout

dashboard_device_filters
Properties
name (String)
Static Members
new $init(config)

dashboard_tango_hosts

Extends webix.ui.layout

dashboard_tango_hosts
Properties
name (String)
Static Members
new $init(config)

textarea0

Extends webix.ui.textarea

textarea0
Properties
name (String)
Static Members
getValue()
setValue(value)

server_wizard

Extends webix.ui.layout

server_wizard
Properties
name (String)
Static Members
new $init(config)

clearAll

clearAll()

HintController

HintController
Author: Igor Khokhriakov <igor.khokhriakov@hzg.de>
Since: 05.11.2019

svg

svg
Static Members
new $init(config)

svg

svg

Type: webix.protoUI

Static Members
new $init(config)

astor

astor
Author: Igor Khokhriakov <igor.khokhriakov@hzg.de>
Since: 4/28/19

parseInfo

parseInfo(info: AttributeInfo): Array
Parameters
info (AttributeInfo)
Returns
Array:

kWidgetDashboardProfilesId

kWidgetDashboardProfilesId

Type: string

Author: Igor Khokhriakov <igor.khokhriakov@hzg.de>
Since: 6/12/19

onBindApply

TODO can be this done in a better way? dynamic building?

onBindApply(attr: TangoAttribute)
Parameters
attr (TangoAttribute)

onBindApply

onBindApply(command: Member)
Parameters
command (Member)

loadInfo

loadInfo(device: any): Array<{value: any, info: any}>
Parameters
device (any)
Returns
Array<{value: any, info: any}>:

getRestTangoDevice

getRestTangoDevice(): Promise<tango.TangoDevice>
Returns
Promise<tango.TangoDevice>:

setDevice

setDevice(device: TangoDevice): Promise<boolean>
Parameters
device (TangoDevice)
Returns
Promise<boolean>:

image

image
Author: Igor Khokhriakov <igor.khokhriakov@hzg.de>
Since: 3/25/19

groupAttributesByDeviceId

groupAttributesByDeviceId(attrs: Array<ContextEntity>): Map<TangoDevice, TangoAttribute>
Parameters
attrs (Array<ContextEntity>)
Returns
Map<TangoDevice, TangoAttribute>:

TangoId

TangoId
Author: Igor Khokhriakov <igor.khokhriakov@hzg.de>
Since: 6/12/19

addAttribute

addAttribute(attr: TangoAttribute, force: any)
Parameters
attr (TangoAttribute)
force (any)

addCommand

addCommand(cmd: TangoCommand)
Parameters
cmd (TangoCommand)

addDevice

addDevice(device: TangoDevice)
Parameters
device (TangoDevice)

scalar_text

scalar_text
Author: Igor Khokhriakov <igor.khokhriakov@hzg.de>
Since: 3/25/19

spectrum_text

spectrum_text
Author: Igor Khokhriakov <igor.khokhriakov@hzg.de>
Since: 3/25/19

getColumnConfig

getColumnConfig(attr: TangoAttribute)
Parameters
attr (TangoAttribute)

addAttribute

addAttribute(attr: TangoAttribute)
Parameters
attr (TangoAttribute)

addCommand

addCommand(cmd: TangoCommand)
Parameters
cmd (TangoCommand)

removeAttribute

removeAttribute(name: string): string
Parameters
name (string)
Returns
string: removed attr name

addDevice

addDevice(device: TangoDevice): Promise<void>
Parameters
device (TangoDevice)
Returns
Promise<void>:

leftPanel

leftPanel
Returns
webix.ui.baseview:

mainView

mainView
Returns
webix.ui.baseview:

rightPanel

rightPanel
Returns
webix.ui.baseview:

beforeCloseMain

Removes side panel before closing main tab

beforeCloseMain()

saveScript

saveScript(script: UserScript)
Parameters
script (UserScript)

removeScript

removeScript(id: string)
Parameters
id (string)

executeScript

executeScript(script: UserScript): Promise<any>
Parameters
script (UserScript)
Returns
Promise<any>:

constructor

constructor(app: Application, cmd: TangoCommand)
Parameters
app (Application)
cmd (TangoCommand)

getUserContext

getUserContext(): Promise<UserContext>
Returns
Promise<UserContext>:

shouldRetry

Should retry when errors stack does not contain DEVICE_NOT_EXPORTED or Api_NOT_SUPPORTED

shouldRetry(error: any): boolean
Parameters
error (any)
Returns
boolean:

setDevice

setDevice(id: TangoId)
Parameters
id (TangoId)

readAttribute

readAttribute(attribute: TangoAttribute)
Parameters
attribute (TangoAttribute)

openAttributeWindow

openAttributeWindow(attr: TangoAttribute)
Parameters
attr (TangoAttribute)

openCommandWindow

openCommandWindow(cmd: TangoCommand): CommandWidget
Parameters
cmd (TangoCommand)
Returns
CommandWidget:

openPipeWindow

openPipeWindow(pipe: TangoPipe): PipeWidget
Parameters
pipe (TangoPipe)
Returns
PipeWidget:

setDevice

setDevice(id: TangoId): Promise<void>
Parameters
id (TangoId)
Returns
Promise<void>:

setAttribute

setAttribute(id: TangoId): Promise<void>
Parameters
id (TangoId)
Returns
Promise<void>:

setCommand

setCommand(id: TangoId): Promise<void>
Parameters
id (TangoId)
Returns
Promise<void>:

setPipe

setPipe(id: TangoId): Promise<void>
Parameters
id (TangoId)
Returns
Promise<void>:

getTangoRest

getTangoRest(): Promise<TangoRestApi>
Returns
Promise<TangoRestApi>:

getUserContext

getUserContext(): Promise<UserContext>
Returns
Promise<UserContext>:

addAttribute

addAttribute(id: TangoId)
Parameters
id (TangoId)

writeAttribute

writeAttribute(id: TangoId, value: any)
Parameters
id (TangoId)
value (any)

removeAttribute

removeAttribute(id: TangoId): Promise<void>
Parameters
id (TangoId)
Returns
Promise<void>:

setTangoHost

setTangoHost(id: TangoId)
Parameters
id (TangoId)

setStarter

setStarter(admin: TangoAdmin): Promise<void>
Parameters
admin (TangoAdmin)
Returns
Promise<void>:

loadDevices

Clears devices list if server is undefined

loadDevices(server: TangoServer)
Parameters
server (TangoServer = undefined)

view

Returns this widget's webix view

view
Returns
webix.ui:

constructor

constructor(app: Application, pipe: TangoPipe)
Parameters
app (Application)
pipe (TangoPipe)

getTangoRest

getTangoRest(): Promise<TangoRestApi>
Returns
Promise<TangoRestApi>:

getUserContext

getUserContext(): Promise<UserContext>
Returns
Promise<UserContext>:

addAttribute

addAttribute(id: TangoId)
Parameters
id (TangoId)

removeAttribute

removeAttribute(id: TangoId)
Parameters
id (TangoId)

removeAttribute

removeAttribute(id: TangoId)
Parameters
id (TangoId)

addAttribute

addAttribute(id: TangoId, force: any): Promise<void>
Parameters
id (TangoId)
force (any = false)
Returns
Promise<void>:

writeAttribute

writeAttribute(id: TangoId, value: any)
Parameters
id (TangoId)
value (any)

addDevice

addDevice(id: TangoId): Promise<void>
Parameters
id (TangoId)
Returns
Promise<void>:

removeDevice

removeDevice(id: TangoId)
Parameters
id (TangoId)

addCommand

addCommand(id: TangoId, force: any)
Parameters
id (TangoId)
force (any = false)

execute

execute(id: TangoId)
Parameters
id (TangoId)

selectHost

selectHost(tangoHostId: TangoId): TangoHost
Parameters
tangoHostId (TangoId)
Returns
TangoHost:

selectDevice

selectDevice(tangoDeviceId: TangoId)
Parameters
tangoDeviceId (TangoId)

addTangoDevices

addTangoDevices($0: Object, tango_host: string, server: string, className: string, devices: [string]): Promise<void>
Parameters
$0 (Object)
Name Description
$0.tango_host any
$0.server any
$0.className any
$0.devices any
tango_host (string) e.g. localhost:10000
server (string)
className (string)
devices ([string])
Returns
Promise<void>: