Target

trait Target[T <: Txn[T]] extends Observable[T, Value]

An AuralAttribute.Target describes the mechanism by which the attribute inputs can contribute their values. It is internally connected to the process's node. One or multiple inputs then supply their values by calling put and detach themselves by calling remove. The target automatically manages summing multiple inputs. While the Value parameter for put corresponds to a particular attribute input, its valueOption gives the overall signal output as sent to the node. For instance, a stream input will have a bus to which is ''writes'', whereas the target itself may provide a bus from which this node ''reads''.

It is possible for an attribute to call put repeatedly, the target will then automatically dispose the previous value it had associated with that attribute.

Companion
object
trait Observable[T, Value]
class Object
trait Matchable
class Any

Value members

Abstract methods

def put(attr: AuralAttribute[T], value: Value)(implicit tx: T): Unit
def remove(attr: AuralAttribute[T])(implicit tx: T): Unit

It is allowed to call this with an attribute that was already removed (this is a no-op).

It is allowed to call this with an attribute that was already removed (this is a no-op).

def valueOption(implicit tx: T): Option[Value]

Inherited methods

def react(fun: T => Value => Unit)(implicit tx: T): Disposable[T]

Registers a live observer with this observable. The method is called with the observing function which receives the observable's update message of type A, and the method generates an opaque Disposable instance, which may be used to remove the observer eventually (through the dispose method).

Registers a live observer with this observable. The method is called with the observing function which receives the observable's update message of type A, and the method generates an opaque Disposable instance, which may be used to remove the observer eventually (through the dispose method).

Inherited from
Observable