Source Class
Item Index
Methods
Methods
addEvent
(
-
An
Adds an event involving this source.
Parameters:
-
An
Objectinstance of Event
initialize
(
-
A
The initialization method of this object.
Parameters:
-
A
Mapmap of parameters
toString
()
String
Returns a string representing this object.
Returns:
String:
A string representing this object
updateState
()
This method updates the state of this source, it is triggered at each change of the current instant defined by Bgplay. The objective of this method is to find the current event in which the source is involved. If the current event changes then this method triggers a "curEventChange" event (pub/sub) containing the current event. If the current event is null then this method triggers a "curEventNull" event (pub/sub) containing the previous event.
validate
(
Array
-
A
The validation method of this object. This method is used to check the initialization parameters.
Parameters:
-
A
Mapmap of parameters
Returns:
Array:
An array of {String} errors