class Dep[T, V] extends StateChannel[T]

Dep is very much like a Val, but is also a Channel. The basic purpose is to represent a value dependent upon another variable. An example of this might be if you are representing a position left and you also wanted to represent right as well (which would be left + width). These two variables are dependent upon each other and don't fit well as Vars. An example usage might be:

val left: Var[Double] = Var(0.0) val width: Var[Double] = Var(0.0) val right: Dep[Double, Double] = Dep(left, width)

If an instance is submissive it removes adjustment from being part of the mutation dependency. For example: in the above scenario if you set width to 100.0 and right to 125.0 then left will be 25.0. Now, what should happen if you change width to 50.0? Should left change to 75.0 (submissive = false) or should right change to 75.0 (submissive = true)?

Linear Supertypes
StateChannel[T], Channel[T], State[T], Observable[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Dep
  2. StateChannel
  3. Channel
  4. State
  5. Observable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Dep(variable: Var[V], adjustment: ⇒ T, submissive: Boolean)(implicit connector: DepConnector[T, V])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def :=(value: ⇒ T): Unit

    Convenience method to send a value to set similarly to an assignment operator.

    Convenience method to send a value to set similarly to an assignment operator.

    value

    the value to apply

    Definition Classes
    Channel
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def apply(): T
    Definition Classes
    DepState
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def attach(f: (T) ⇒ Unit): (T) ⇒ Unit
    Definition Classes
    DepObservable
  8. def attachAndFire(f: (T) ⇒ Unit): (T) ⇒ Unit
    Definition Classes
    State
  9. def changes(listener: ChangeListener[T]): (T) ⇒ Unit
    Definition Classes
    DepStateObservable
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def detach(f: (T) ⇒ Unit): Unit
    Definition Classes
    DepObservable
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fire(value: T): Unit
    Attributes
    protected[reactify]
    Definition Classes
    DepObservable
  16. def get: T
    Definition Classes
    DepState
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  23. def observing: Set[Observable[_]]
    Definition Classes
    DepState
  24. def set(value: ⇒ T, submissive: Boolean): Unit
  25. def set(value: ⇒ T): Unit

    Fires the value to all attached listeners.

    Fires the value to all attached listeners.

    value

    the value to apply

    Definition Classes
    DepChannel
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. def value: T
    Definition Classes
    State
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StateChannel[T]

Inherited from Channel[T]

Inherited from State[T]

Inherited from Observable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped