RegistrySingleton
Use this singleton to register events you want to record/replay. the objects registered should extend EventBaseClass.
Static Member Summary
| Static Public Members | ||
| public static | instance: * | |
Constructor Summary
| Public Constructor | ||
| public | ||
Method Summary
| Public Methods | ||
| public | Clears all events from registry. | |
| public | deleteEvent(eventType: String) Delete an event from registry by event type. | |
| public | Gets an event from registry by event type. | |
| public | getEventTypes(): IterableIterator<String> Gets event types in registry. | |
| public | getEventsByTagname(tagname: String): Array[] Gets a list of events by tagname | |
| public | getTagnames(): Array Gets tag names in registry. | |
| public | registerEvent(event: EventBaseClass) Register an event. | |
| public | setReplaySpeedForAllEventsInRegistry(divider: *) Sets replay speed for all events in registry 2.0 is twice as fast. | |
| public | setTimingForAllEventsInRegistry(timing: Number) | |
| public | setTrackerFuncForAllEventsInRegistry(trackerFunc: function) Sets tracker function for all events in registry. | |
| public | setTrailFuncForAllEventsInRegistry(trailFunc: function) Sets trail function for all events in registry. | |
Static Public Members
public static instance: * source
Public Constructors
public constructor() source
Public Members
public instance: * source
Public Methods
public clearAllEvents() source
Clears all events from registry.
public deleteEvent(eventType: String) source
Delete an event from registry by event type.
Params:
| Name | Type | Attribute | Description |
| eventType | String |
public getEvent(eventType: String): String | undefined source
Gets an event from registry by event type.
Params:
| Name | Type | Attribute | Description |
| eventType | String |
Return:
| String | undefined |
public getEventTypes(): IterableIterator<String> source
Gets event types in registry.
Return:
| IterableIterator<String> |
public getEventsByTagname(tagname: String): Array[] source
Gets a list of events by tagname
Params:
| Name | Type | Attribute | Description |
| tagname | String |
Return:
| Array[] |
public registerEvent(event: EventBaseClass) source
Register an event. Object passed should be an instance of EventBaseClass.
Params:
| Name | Type | Attribute | Description |
| event | EventBaseClass |
public setReplaySpeedForAllEventsInRegistry(divider: *) source
Sets replay speed for all events in registry 2.0 is twice as fast.
Params:
| Name | Type | Attribute | Description |
| divider | * | higher is faster, lower is slower. |
public setTimingForAllEventsInRegistry(timing: Number) source
Params:
| Name | Type | Attribute | Description |
| timing | Number | timing in ms |
