implicit class ContactOps[T] extends AnyRef

New methods available on contacts that construct links.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContactOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ContactOps(c: SystemBuilderDsl.Contact[T])(implicit sb: SystemBuilderDsl.SystemBuilder)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def >>[T2 >: T](c2: SystemBuilderDsl.Contact[T2], name: String = ""): SystemBuilderDsl.Contact[T2]
  5. def activate(stateHolder: SystemBuilderDsl.StateHandle[Boolean], isActive: Boolean = true): SystemBuilderDsl.Contact[T]
  6. def addTo[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(implicit n: Numeric[S], ev: <:<[T, S]): Unit
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. val c: SystemBuilderDsl.Contact[T]
  9. def castFilter[T3](t3Class: Class[T3], name: String = ""): SystemBuilderDsl.Contact[T3]
  10. def castFilter2[T3 <: T](implicit t3Class: ClassTag[T3]): SystemBuilderDsl.Contact[T3]
  11. def clearLatch[S](stateHolder: SystemBuilderDsl.StateHandle[Option[S]]): Unit

    Latch is a state of type Option[S].

    Latch is a state of type Option[S]. It can be cleared to None by one signal, and set to Some() by another signal. After setting it doesn't change until cleared.

  12. def clearList[S](stateHolder: SystemBuilderDsl.StateHandle[List[S]], name: String = ""): Unit
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def collect[T2](f: PartialFunction[T, T2], name: String = ""): SystemBuilderDsl.Contact[T2]
  15. def const[T2](value: T2, name: String = ""): SystemBuilderDsl.Contact[T2]

    Replaces every input item with the provided constant.

  16. def deactivate(stateHolder: SystemBuilderDsl.StateHandle[Boolean]): SystemBuilderDsl.Contact[T]
  17. def dec[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(implicit arg0: Numeric[S]): Unit
  18. def delay(count: Int): SystemBuilderDsl.Contact[T]

    Create delay line that delays propagation of the signal by the given number of ticks.

    Create delay line that delays propagation of the signal by the given number of ticks. For big counts there should be another implementation based on creating single special contact and sending pair - (count, data) circulating until count == 0. See #delayN and #countDown and #isZeroCase

  19. def delayCorrelated(c2: SystemBuilderDsl.Contact[_]): SystemBuilderDsl.Contact[T]

    Calculates trellis positions of the given contacts using available links and creates a delayed contact that will get the data from this contact c simultaneously with the contact c2.

  20. def delayN(count: Int): SystemBuilderDsl.Contact[T]
  21. def delayOne: SystemBuilderDsl.Contact[T]
  22. def directly[T2 >: T](c2: SystemBuilderDsl.Contact[T2]): SystemBuilderDsl.Contact[T2]
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  25. def exec(body: ⇒ Any, name: String = ""): SystemBuilderDsl.Contact[T]

    Executes some code with side effects and passes the input data further.

  26. def filter(predicate: (T) ⇒ Boolean, name: String = ""): SystemBuilderDsl.Contact[T]

    Filters the data from this contact.

    Filters the data from this contact. Returns another contact that will contain filtered data

  27. def filterEquals(const: T, name: String = ""): SystemBuilderDsl.Contact[T]
  28. def filterNot(predicateInv: (T) ⇒ Boolean, name: String = ""): SystemBuilderDsl.Contact[T]
  29. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. def fire[T2 <: T](start: SystemBuilderDsl.Contact[T2], finishContacts: SystemBuilderDsl.Contact[_]*): Unit

    fires fast execution until the given finishContacts.

    fires fast execution until the given finishContacts. Be careful.

  31. def fireUntilSet[T2 <: T](start: SystemBuilderDsl.Contact[T2], finishContacts: Set[SystemBuilderDsl.Contact[_]], name: String = ""): Unit

    fires fast execution until the given finishContacts.

    fires fast execution until the given finishContacts. Be careful.

  32. def flatMap[T2](f: (T) ⇒ TraversableOnce[T2], name: String = ""): SystemBuilderDsl.Contact[T2]
  33. def flatten[T2](name: String = "")(implicit ev: <:<[T, TraversableOnce[T2]]): SystemBuilderDsl.Contact[T2]
  34. def fold[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(fun: (S, T) ⇒ S): Unit

    Fold incoming data with state.

  35. def foreach(body: (T) ⇒ Any, name: String = ""): SystemBuilderDsl.Contact[T]
  36. def from[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[(S, T)]
  37. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  38. def getState[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[S]
  39. def getStateOld[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[S]

    Extracts current state value.

  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  41. def ifConst(const: T, name: String = ""): SystemBuilderDsl.Contact[T]
  42. def inc[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(implicit arg0: Numeric[S]): Unit
  43. def input: SystemBuilderDsl.Contact[T]
  44. def inputMappedTo[T2 >: T](c2: SystemBuilderDsl.Contact[T2]): SystemBuilderDsl.Contact[T2]

    Declares the first contact as input and creates link to the second

  45. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  46. def labelNext(label: String*): SystemBuilderDsl.Contact[T]
  47. def latchValue[S >: T](stateHolder: SystemBuilderDsl.StateHandle[Option[S]], f: (T) ⇒ S = locally[T](_)): SystemBuilderDsl.Contact[Any]

    Sets latch value it it has not been set yet

  48. def map[T2](f: (T) ⇒ T2, name: String = ""): SystemBuilderDsl.Contact[T2]

    Creates another contact and links it to this one with transformation f.

  49. def mapTo[T2](f: (T) ⇒ T2, auxContact1: SystemBuilderDsl.Contact[T2] = sb.auxContact[T2]): SystemBuilderDsl.Contact[T2]
  50. def mapToOutput[T2 >: T](c2: SystemBuilderDsl.Contact[T2]): Unit

    Declares the second contact as output and creates link from the first

  51. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  52. final def notify(): Unit
    Definition Classes
    AnyRef
  53. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  54. def output(): Unit
  55. def passByStateCondition[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(condition: (S) ⇒ Boolean): SystemBuilderDsl.Contact[T]
  56. def passByStateConditionAndUpdateState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(condition: (S, T) ⇒ Option[S]): SystemBuilderDsl.Contact[T]
  57. def passIfEnabled(stateHandle: SystemBuilderDsl.StateHandle[Boolean], name: String = ""): SystemBuilderDsl.Contact[T]
  58. def prependList[S >: T](stateHolder: SystemBuilderDsl.StateHandle[List[S]], name: String = ""): Unit
  59. def resetState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[Any]
  60. def saveTo[S >: T](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): Unit
  61. def setState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(fun: (T) ⇒ S): SystemBuilderDsl.Contact[Any]
  62. def stock(f: (T) ⇒ Any, name: String = ""): SystemBuilderDsl.Contact[T]
  63. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  64. def toString(): String
    Definition Classes
    AnyRef → Any
  65. def updateState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(fun: (S, T) ⇒ S): Unit

    Update state in state handle.

  66. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. def withFilter(predicate: (T) ⇒ Boolean): SystemBuilderDsl.Contact[T]

    Filters the data from this contact.

    Filters the data from this contact. Returns another contact that will get filtered data.

  70. def withState[S](stateHandle: SystemBuilderDsl.StateHandle[S]): ContactWithState[T, S]
  71. def zipWithConst[T2](value: T2, name: String = ""): SystemBuilderDsl.Contact[(T2, T)]

    Converts data to pair with current state value.

  72. def zipWithState[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[(S, T)]

    Converts data to pair with current state value.

Deprecated Value Members

  1. def splitToElements[T2](name: String = "")(implicit ev: <:<[T, TraversableOnce[T2]]): SystemBuilderDsl.Contact[T2]
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 13.04.2015) use #flatten

Inherited from AnyRef

Inherited from Any

Ungrouped