Class

ru.primetalk.synapse.core.dsl.SystemBuilderDsl

ContactOps

Related Doc: package SystemBuilderDsl

Permalink

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)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def >>[T2 >: T](c2: SystemBuilderDsl.Contact[T2], name: String = ""): SystemBuilderDsl.Contact[T2]

    Permalink
  5. def activate(stateHolder: SystemBuilderDsl.StateHandle[Boolean], isActive: Boolean = true): SystemBuilderDsl.Contact[T]

    Permalink
  6. def addTo[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(implicit n: Numeric[S], ev: <:<[T, S]): Unit

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. val c: SystemBuilderDsl.Contact[T]

    Permalink
  9. def castFilter[T3](t3Class: Class[T3], name: String = ""): SystemBuilderDsl.Contact[T3]

    Permalink
  10. def castFilter2[T3 <: T](implicit t3Class: ClassTag[T3]): SystemBuilderDsl.Contact[T3]

    Permalink
  11. def clearLatch[S](stateHolder: SystemBuilderDsl.StateHandle[Option[S]]): Unit

    Permalink

    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

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def collect[T2](f: PartialFunction[T, T2], name: String = ""): SystemBuilderDsl.Contact[T2]

    Permalink
  15. def const[T2](value: T2, name: String = ""): SystemBuilderDsl.Contact[T2]

    Permalink

    Replaces every input item with the provided constant.

  16. def deactivate(stateHolder: SystemBuilderDsl.StateHandle[Boolean]): SystemBuilderDsl.Contact[T]

    Permalink
  17. def dec[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(implicit arg0: Numeric[S]): Unit

    Permalink
  18. def delay(count: Int): SystemBuilderDsl.Contact[T]

    Permalink

    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]

    Permalink

    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]

    Permalink
  21. def delayOne: SystemBuilderDsl.Contact[T]

    Permalink
  22. def directly[T2 >: T](c2: SystemBuilderDsl.Contact[T2]): SystemBuilderDsl.Contact[T2]

    Permalink
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  25. def exec(body: ⇒ Any, name: String = ""): SystemBuilderDsl.Contact[T]

    Permalink

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

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

    Permalink

    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]

    Permalink
  28. def filterNot(predicateInv: (T) ⇒ Boolean, name: String = ""): SystemBuilderDsl.Contact[T]

    Permalink
  29. def finalize(): Unit

    Permalink
    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

    Permalink

    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

    Permalink

    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]

    Permalink
  33. def flatten[T2](name: String = "")(implicit ev: <:<[T, TraversableOnce[T2]]): SystemBuilderDsl.Contact[T2]

    Permalink
  34. def fold[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(fun: (S, T) ⇒ S): Unit

    Permalink

    Fold incoming data with state.

  35. def foreach(body: (T) ⇒ Any, name: String = ""): SystemBuilderDsl.Contact[T]

    Permalink
  36. def from[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[(S, T)]

    Permalink
  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  38. def getState[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[S]

    Permalink
  39. def getStateOld[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[S]

    Permalink

    Extracts current state value.

  40. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  41. def ifConst(const: T, name: String = ""): SystemBuilderDsl.Contact[T]

    Permalink
  42. def inc[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(implicit arg0: Numeric[S]): Unit

    Permalink
  43. def input: SystemBuilderDsl.Contact[T]

    Permalink
  44. def inputMappedTo[T2 >: T](c2: SystemBuilderDsl.Contact[T2]): SystemBuilderDsl.Contact[T2]

    Permalink

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

  45. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  46. def labelNext(label: String*): SystemBuilderDsl.Contact[T]

    Permalink
  47. def latchValue[S >: T](stateHolder: SystemBuilderDsl.StateHandle[Option[S]], f: (T) ⇒ S = locally[T](_)): SystemBuilderDsl.Contact[Any]

    Permalink

    Sets latch value it it has not been set yet

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

    Permalink

    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]

    Permalink
  50. def mapToOutput[T2 >: T](c2: SystemBuilderDsl.Contact[T2]): Unit

    Permalink

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

  51. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  53. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  54. def output(): Unit

    Permalink
  55. def passByStateCondition[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(condition: (S) ⇒ Boolean): SystemBuilderDsl.Contact[T]

    Permalink
  56. def passByStateConditionAndUpdateState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(condition: (S, T) ⇒ Option[S]): SystemBuilderDsl.Contact[T]

    Permalink
  57. def passIfEnabled(stateHandle: SystemBuilderDsl.StateHandle[Boolean], name: String = ""): SystemBuilderDsl.Contact[T]

    Permalink
  58. def prependList[S >: T](stateHolder: SystemBuilderDsl.StateHandle[List[S]], name: String = ""): Unit

    Permalink
  59. def resetState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[Any]

    Permalink
  60. def saveTo[S >: T](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): Unit

    Permalink
  61. def setState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(fun: (T) ⇒ S): SystemBuilderDsl.Contact[Any]

    Permalink
  62. def stock(f: (T) ⇒ Any, name: String = ""): SystemBuilderDsl.Contact[T]

    Permalink
  63. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  64. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  65. def updateState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(fun: (S, T) ⇒ S): Unit

    Permalink

    Update state in state handle.

  66. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. def withFilter(predicate: (T) ⇒ Boolean): SystemBuilderDsl.Contact[T]

    Permalink

    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]

    Permalink
  71. def zipWithConst[T2](value: T2, name: String = ""): SystemBuilderDsl.Contact[(T2, T)]

    Permalink

    Converts data to pair with current state value.

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

    Permalink

    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]

    Permalink
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 13.04.2015) use #flatten

Inherited from AnyRef

Inherited from Any

Ungrouped