traitNode[S <: Sys[S]] extends Elem[S] with Mutable[event.Node.S.ID, event.Node.S.Tx]
XXX TODO -- this documentation is outdated.
An Event.Node is most similar to EScala's EventNode class. It represents an observable
object and can also act as an observer itself. It adds the Reactor functionality in the
form of a proxy, forwarding to internally stored Targets. It also provides a final
implementation of the Writable and Disposable traits, asking sub classes to provide
methods writeData and disposeData. That way it is ensured that the sealed Reactor trait
is written first as the Targets stub, providing a means for partial deserialization during
the push phase of event propagation.
This trait also implements equals and hashCode in terms of the id inherited from the
targets.
XXX TODO -- this documentation is outdated.
An
Event.Node
is most similar to EScala'sEventNode
class. It represents an observable object and can also act as an observer itself. It adds theReactor
functionality in the form of a proxy, forwarding to internally storedTargets
. It also provides a final implementation of theWritable
andDisposable
traits, asking sub classes to provide methodswriteData
anddisposeData
. That way it is ensured that the sealedReactor
trait is written first as theTargets
stub, providing a means for partial deserialization during the push phase of event propagation.This trait also implements
equals
andhashCode
in terms of theid
inherited from the targets.