fwAlarmScreenNg 0.9.8
AlarmScreenJCOP.ctl File Reference

Functions

Public functions
mapping AlarmScreenJCOP_getFilterCompletions (string sPropName, const dyn_string &dsSelectedSystems)
 
mapping AlarmScreenJCOP_getSlaveFilterCompletions (string sPropName, const mapping &mFilters)
 
void AlarmScreenJCOP_mouseTableEvent (const mapping &mArgs)
 
private void _AlarmScreenJCOP_mouseLeftClickEvent (const mapping &mArgs)
 
void AlarmScreenJCOP_ctrlActionRequested (const mapping &mArgs)
 
private void _AlarmScreenJCOP_ackMultiple (dyn_mapping &dmAlarms, int iAckType)
 
Private functions: processing of filter completions
private void _AlarmScreenJCOP_getFilterCompletions_deviceType (const dyn_string &dsSelectedSystems, mapping &mResult)
 

Variables

JCOP-specific names of alarm properties. This is extension of alarm properties,

defined in basic configuration, see AlarmScreenNg.ctl

const string ALARM_PROP_JCOP_ALIAS = "alias"
 Device alias.
 
const string ALARM_PROP_JCOP_DESCRIPTION = "deviceDescription"
 Device description.
 
const string ALARM_PROP_JCOP_ONLINE_VALUE = "onlineValue"
 (Formatted) DPE online value
 
const string ALARM_PROP_JCOP_CAME_TIME = "cameTime"
 Came time of alarm.
 
const string ALARM_PROP_JCOP_SCOPE = "scope"
 Alarm scope, magic logic on priority.
 
const string ALARM_PROP_JCOP_DEV_TYPE = "deviceType"
 Device type.
 
Flag for activating debug messages in this library, one flag for all functions
private const string ASNG_FW_DBG = "ASNG_DBG"
 

Detailed Description

JCOP-cpecific support for NextGen Alarm Screen

Function Documentation

◆ AlarmScreenJCOP_getFilterCompletions()

mapping AlarmScreenJCOP_getFilterCompletions ( string  sPropName,
const dyn_string &  dsSelectedSystems 
)

Get list of comletions for filter on given alarm property

Parameters
sPropNameThe name of alarm property for which filter is configured
dsSelectedSystemsThe list of selected system names
Returns
mapping with 3 fields (keys are strings):
  • "type" The type of completions used for this filter, see enum FilterCompletionsType
  • "list" The list of completion strings for this filter
  • "map" The list of completion strings for this filter in case complitions are related to connected systems. Key is string (system name), value is dyn_string = list of completions if this system is connected

◆ AlarmScreenJCOP_getSlaveFilterCompletions()

mapping AlarmScreenJCOP_getSlaveFilterCompletions ( string  sPropName,
const mapping &  mFilters 
)

Get list of comletions for slave filter on given alarm property

Parameters
sPropNameThe name of alarm property for which filter is configured
mFiltersCurrent settings for all 'master' filters of this slave:
  • key: alarm property name of filter
  • value: current filter value for this alarm property
Returns
mapping with 1 field (key is string):
  • "list" The list of completion strings for this filter

◆ AlarmScreenJCOP_mouseTableEvent()

void AlarmScreenJCOP_mouseTableEvent ( const mapping &  mArgs)

Process mouse event in alarm table cell.

Parameters
mArgsThe mapping with arguments, see description of AlarmScreenNgEwo_mouseEvent()

◆ _AlarmScreenJCOP_mouseLeftClickEvent()

private void _AlarmScreenJCOP_mouseLeftClickEvent ( const mapping &  mArgs)

Process event in table: left mouse button was clicked on row with alarm data. There is special processing for clicking at some columns: acknowledge alarm, open details etc.

Parameters
mArgsThe mapping with arguments, see description of AlarmScreenNgEwo_mouseEvent()

◆ AlarmScreenJCOP_ctrlActionRequested()

void AlarmScreenJCOP_ctrlActionRequested ( const mapping &  mArgs)

Process ctrlActionRequested() event of AS EWO in UNICOS-specific way

Parameters
mArgsevent arguments, see description of AlarmScreenNgEwo_ctrlActionRequested()

◆ _AlarmScreenJCOP_ackMultiple()

private void _AlarmScreenJCOP_ackMultiple ( dyn_mapping &  dmAlarms,
int  iAckType 
)

Acknowledge multiple alarms from EWO (selected/all/etc.)

Parameters
dmAlarmsThe list of alarm parameters from EWO which shall be acknowledged. Every mapping contains:
  • key = ID of alarm property (see ALARM_PROP_XXX constants)
  • value = value of alarm property with this ID
iAckTypeAcknowledgement type, one of DPATTR_ACKTYPE_SINGLE/DPATTR_ACKTYPE_MULTIPLE

◆ _AlarmScreenJCOP_getFilterCompletions_deviceType()

private void _AlarmScreenJCOP_getFilterCompletions_deviceType ( const dyn_string &  dsSelectedSystems,
mapping &  mResult 
)

Get completions for filter on device type

Parameters
dsSelectedSystemsThe list of selected system names
mResultmapping where result shall be placed, 3 fields are available (keys are strings):
  • "type" The type of completions used for this filter, see enum FilterCompletionsType
  • "list" The list of completion strings for this filter
  • "map" The list of completion strings for this filter in case complitions are related to connected systems. Key is string (system name), value is dyn_string = list of completions if this system is connected