Tc.Connector Class
Base class for the different connectors.
Item Index
Methods
init
(
-
connectorId
Initializes the Connector.
Parameters:
-
connectorId
StringThe unique connector ID
notify
(
Boolean
-
origin
-
state
-
data
Notifies all registered components about a state change This can be be overriden in the specific connectors.
Parameters:
-
origin
ModuleThe module that sends the state change
-
state
StringThe component's state
-
data
ObjectContains the state relevant data (if any)
Returns:
Boolean:
Indicates whether the default action should be excuted or not
registerComponent
(
-
component
Registers a component.
Parameters:
-
component
ModuleThe module to register
unregisterComponent
(
-
component
Unregisters a component.
Parameters:
-
component
ModuleThe module to unregister