alarm-event-selector/alarm-event-selector.service.ts
Methods |
|
constructor(alarmService: AlarmService, eventsService: EventService, color: ColorService)
|
||||||||||||
Parameters :
|
Async createItem | |||||||||
createItem(timelineType, item: IAlarm)
|
|||||||||
Parameters :
Returns :
Promise<AlarmDetails>
|
Async createItem | |||||||||
createItem(timelineType, item: IEvent)
|
|||||||||
Parameters :
Returns :
Promise<EventDetails>
|
Async createItem | |||||||||
createItem(timelineType: TimelineType, item: IAlarm | IEvent)
|
|||||||||
Parameters :
Returns :
Promise<any>
|
Async getAlarmsOrEvents | ||||||||||||
getAlarmsOrEvents(parentReference: IIdentified, timelineType: TimelineType)
|
||||||||||||
This method returns the items of the asset based on the timeline type.
Parameters :
Returns :
Promise<AlarmOrEvent[]>
The alarms or events of the asset. |
Async getItems | ||||||||
getItems(timelineType: TimelineType)
|
||||||||
This method returns all alarms or events of the platform based on the timeline type
Parameters :
Returns :
Promise<AlarmOrEvent[]>
The alarms or events of the asset. |
Async getUniqueAlarmsOnly | ||||||
getUniqueAlarmsOnly(data: IAlarm[])
|
||||||
Parameters :
Returns :
Promise<AlarmDetails[]>
|
Async getUniqueEventsOnly | ||||||
getUniqueEventsOnly(data: IEvent[])
|
||||||
Parameters :
Returns :
Promise<EventDetails[]>
|
timelineTypeTexts | ||||||||
timelineTypeTexts(timelineType: TimelineType)
|
||||||||
This method returns the texts for the timeline type.
Parameters :
Returns :
TimelineTypeTexts
The texts for the timeline type. |