ControlBus

trait ControlBus extends Bus with ControlRated
Companion
object
trait ControlRated
trait Bus
class Object
trait Matchable
class Any

Value members

Abstract methods

def addReader(u: User)(implicit tx: RT): Unit

Adds a reading consumer to the bus. Note that the readers are kept in a Set and this method doesn't currently check whether the set already contains the reader. Adding the same reader more than once will cause malfunction.

Adds a reading consumer to the bus. Note that the readers are kept in a Set and this method doesn't currently check whether the set already contains the reader. Adding the same reader more than once will cause malfunction.

As a consequence, the user's busChanged method is invoked with the current bus.

def addWriter(u: User)(implicit tx: RT): Unit

Adds a writing consumer to the bus. Note that the writers are kept in a Set and this method doesn't currently check whether the set already contains the writer. Adding the same writer more than once will cause malfunction.

Adds a writing consumer to the bus. Note that the writers are kept in a Set and this method doesn't currently check whether the set already contains the writer. Adding the same writer more than once will cause malfunction.

As a consequence, the user's busChanged method is invoked with the current bus.

def busOption(implicit tx: RT): Option[ControlBus]
def removeReader(u: User)(implicit tx: RT): Unit

Removes a reading consumer from the bus. It is safe to call this method, passing in a user which has already been previously removed.

Removes a reading consumer from the bus. It is safe to call this method, passing in a user which has already been previously removed.

def removeWriter(u: User)(implicit tx: RT): Unit

Removes a writing consumer from the bus. It is safe to call this method, passing in a user which has already been previously removed.

Removes a writing consumer from the bus. It is safe to call this method, passing in a user which has already been previously removed.

Inherited methods

def numChannels: Int
Inherited from
Bus
final
def rate: Rate
Inherited from
ControlRated
Inherited from
Bus