implicit class ContactOps[T] extends AnyRef
New methods available on contacts that construct links.
- Alphabetic
- By Inheritance
- ContactOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ContactOps(c: SystemBuilderDsl.Contact[T])(implicit sb: SystemBuilderDsl.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
- def >>[T2 >: T](c2: SystemBuilderDsl.Contact[T2], name: String = ""): SystemBuilderDsl.Contact[T2]
- def activate(stateHolder: SystemBuilderDsl.StateHandle[Boolean], isActive: Boolean = true): SystemBuilderDsl.Contact[T]
- def addTo[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(implicit n: Numeric[S], ev: <:<[T, S]): Unit
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val c: SystemBuilderDsl.Contact[T]
- def castFilter[T3](t3Class: Class[T3], name: String = ""): SystemBuilderDsl.Contact[T3]
- def castFilter2[T3 <: T](implicit t3Class: ClassTag[T3]): SystemBuilderDsl.Contact[T3]
-
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.
- def clearList[S](stateHolder: SystemBuilderDsl.StateHandle[List[S]], name: String = ""): Unit
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def collect[T2](f: PartialFunction[T, T2], name: String = ""): SystemBuilderDsl.Contact[T2]
-
def
const[T2](value: T2, name: String = ""): SystemBuilderDsl.Contact[T2]
Replaces every input item with the provided constant.
- def deactivate(stateHolder: SystemBuilderDsl.StateHandle[Boolean]): SystemBuilderDsl.Contact[T]
- def dec[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(implicit arg0: Numeric[S]): Unit
-
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
-
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
csimultaneously with the contactc2. - def delayN(count: Int): SystemBuilderDsl.Contact[T]
- def delayOne: SystemBuilderDsl.Contact[T]
- def directly[T2 >: T](c2: SystemBuilderDsl.Contact[T2]): SystemBuilderDsl.Contact[T2]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exec(body: ⇒ Any, name: String = ""): SystemBuilderDsl.Contact[T]
Executes some code with side effects and passes the input data further.
-
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
- def filterEquals(const: T, name: String = ""): SystemBuilderDsl.Contact[T]
- def filterNot(predicateInv: (T) ⇒ Boolean, name: String = ""): SystemBuilderDsl.Contact[T]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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.
-
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.
- def flatMap[T2](f: (T) ⇒ TraversableOnce[T2], name: String = ""): SystemBuilderDsl.Contact[T2]
- def flatten[T2](name: String = "")(implicit ev: <:<[T, TraversableOnce[T2]]): SystemBuilderDsl.Contact[T2]
-
def
fold[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(fun: (S, T) ⇒ S): Unit
Fold incoming data with state.
- def foreach(body: (T) ⇒ Any, name: String = ""): SystemBuilderDsl.Contact[T]
- def from[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[(S, T)]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def getState[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[S]
-
def
getStateOld[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[S]
Extracts current state value.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- def ifConst(const: T, name: String = ""): SystemBuilderDsl.Contact[T]
- def inc[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(implicit arg0: Numeric[S]): Unit
- def input: SystemBuilderDsl.Contact[T]
-
def
inputMappedTo[T2 >: T](c2: SystemBuilderDsl.Contact[T2]): SystemBuilderDsl.Contact[T2]
Declares the first contact as input and creates link to the second
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def labelNext(label: String*): SystemBuilderDsl.Contact[T]
-
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
-
def
map[T2](f: (T) ⇒ T2, name: String = ""): SystemBuilderDsl.Contact[T2]
Creates another contact and links it to this one with transformation f.
- def mapTo[T2](f: (T) ⇒ T2, auxContact1: SystemBuilderDsl.Contact[T2] = sb.auxContact[T2]): SystemBuilderDsl.Contact[T2]
-
def
mapToOutput[T2 >: T](c2: SystemBuilderDsl.Contact[T2]): Unit
Declares the second contact as output and creates link from the first
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def output(): Unit
- def passByStateCondition[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(condition: (S) ⇒ Boolean): SystemBuilderDsl.Contact[T]
- def passByStateConditionAndUpdateState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(condition: (S, T) ⇒ Option[S]): SystemBuilderDsl.Contact[T]
- def passIfEnabled(stateHandle: SystemBuilderDsl.StateHandle[Boolean], name: String = ""): SystemBuilderDsl.Contact[T]
- def prependList[S >: T](stateHolder: SystemBuilderDsl.StateHandle[List[S]], name: String = ""): Unit
- def resetState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[Any]
- def saveTo[S >: T](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): Unit
- def setState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(fun: (T) ⇒ S): SystemBuilderDsl.Contact[Any]
- def stock(f: (T) ⇒ Any, name: String = ""): SystemBuilderDsl.Contact[T]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updateState[S](stateHandle: SystemBuilderDsl.StateHandle[S], name: String = "")(fun: (S, T) ⇒ S): Unit
Update state in state handle.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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.
- def withState[S](stateHandle: SystemBuilderDsl.StateHandle[S]): ContactWithState[T, S]
-
def
zipWithConst[T2](value: T2, name: String = ""): SystemBuilderDsl.Contact[(T2, T)]
Converts data to pair with current state value.
-
def
zipWithState[S](stateHolder: SystemBuilderDsl.StateHandle[S], name: String = ""): SystemBuilderDsl.Contact[(S, T)]
Converts data to pair with current state value.
Deprecated Value Members
-
def
splitToElements[T2](name: String = "")(implicit ev: <:<[T, TraversableOnce[T2]]): SystemBuilderDsl.Contact[T2]
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 13.04.2015) use #flatten