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. Protected

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  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: AnyRef): 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 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.

  30. 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.

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

    Fold incoming data with state.

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

    Extracts current state value.

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

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

  44. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  45. def labelNext(label: String*): SystemBuilderDsl.Contact[T]
  46. 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

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

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

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

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

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

    Update state in state handle.

  65. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  66. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  67. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  68. 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.

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

    Converts data to pair with current state value.

  71. 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 finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. 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