implicit class CollectingContact[T] extends AnyRef
- Alphabetic
- By Inheritance
- CollectingContact
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CollectingContact(c: AccumulationDsl.Contact[T])(implicit sb: AccumulationDsl.SystemBuilder)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def collectReversedUntil[TTrigger](trigger: AccumulationDsl.Contact[TTrigger], name: String = c.name + "ReversedCollector"): AccumulationDsl.Contact[List[T]]
Creates intermediate state and collects all incoming signals in reversed order until some data appear on the trigger.
Creates intermediate state and collects all incoming signals in reversed order until some data appear on the trigger. Then clears the state and returns collected data in a single list.
- def collectUntil[TTrigger](trigger: AccumulationDsl.Contact[TTrigger], name: String = c.name + "CCollector"): AccumulationDsl.Contact[List[T]]
Creates intermediate state and collects all incoming signals in direct order until some data appear on the trigger.
Creates intermediate state and collects all incoming signals in direct order until some data appear on the trigger. Then clears the state and returns collected data in a single list.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lastJoinUntil[TTrigger](trigger: AccumulationDsl.Contact[TTrigger], name: String = c.name + "Collector", autoClear: Boolean = true): AccumulationDsl.Contact[(T, TTrigger)]
Saves incoming signals to internal state.
Saves incoming signals to internal state. The previous value is replaced with the new one. When a signal appears on the trigger contact the current remembered value
in1.lastJoinUntil(in2).map{ case (data1, data2) => }if there were no input, then the trigger signal do not appear on the output
- autoClear
should clear internal state on trigger. Otherwise keeps the previous state. Prefer to use rightJoin.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def prependUntil[TTrigger](trigger: AccumulationDsl.Contact[TTrigger], name: String = c.name + "PCollector"): AccumulationDsl.Contact[(List[T], TTrigger)]
JOINs two signals.
JOINs two signals.
Creates intermediate state and collects all incoming signals from the source contact until some data appear on the trigger. Then clears the state and returns collected data in a single list together with the trigger signal.
in1.prependUntil(in2).map{ case (list1, data2) => ... } - def rightJoin[TTrigger](trigger: AccumulationDsl.Contact[TTrigger], name: String = c.name + "RightJoin", delay: Int = 1): AccumulationDsl.Contact[(Option[T], TTrigger)]
Creates a state for temporary storing the value from the current contact.
Creates a state for temporary storing the value from the current contact.
A kind of a latch.
for all trigger signals that appear during
latch delaythe join is successful. If nothing has been remembered, then nothing appears on the output.The latched value is cleared automatically after the given delay. This is better than
lastJoinUntilwhen trigger do not appear in our timeslot. The remembered value is automatically removed anyway. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated