Abstract
Create a new component and register it with the given container.
The reactor that will contain the new component,
null
if this is an instance of App
, in which case the component
will be designated as its own container.
Note that each subclass implementation needs to call the method
_linkToRuntimeObject
immediately after calling this super
constructor in order to establish a link with the runtime object.
Protected
_keyA symbol that identifies this component, and it also used to selectively grant access to its privileged functions.
Protected
reactionsReactions to trigger.
Static
pathProtected
_getConfirm whether or not this component is contained by the given reactor.
The presumptive container of this component.
Confirm whether or not this component is contained by the container of the given reactor.
The container presumptive container of the container of this component.
Report whether this component has been registered with its container or not. In principle, all components should have a container, but at the time of their construction there is a brief period where they are not. This is the only moment that a component is allowed register with its container.
Protected
_linkAbstract
_receiveStore a reference to the given runtime object as a private class member.
Abstract
getRequest the manager of this trigger. The request will only be honored if the correct key is given. Each component has a unique symbol (a key) that is handed to the owner upon instantiation of the component. If the wrong key is supplied, return undefined.
The private key embedded in this trigger.
Abstract
isStatic
keyStatic
keyGiven a component and its container (the global object if the component
is an App
), return the key of the entry that matches the component.
a component of which the object is assumed to be its container
the assumed container of the component
the key of the entry that matches the component
Static
key
Abstract class for a trigger. A trigger may be an action, port, or timer.