class PositiveWrapper[P <: PortType] extends PositivePort[P]
A wrapper for java ports to implement PositivePort
- Alphabetic
- By Inheritance
- PositiveWrapper
- PositivePort
- AnyPort
- Positive
- Port
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from PositiveWrapper[P] toany2stringadd[PositiveWrapper[P]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def --(components: Component*): Seq[Channel[P]]
Create a bidirectional channel to each
Component
incomponents
.Create a bidirectional channel to each
Component
incomponents
.- Definition Classes
- PositiveWrapper → PositivePort
- def --(component: Component): Channel[P]
Create a bidirectional channel to the
component
.Create a bidirectional channel to the
component
.- Definition Classes
- PositiveWrapper → PositivePort
- def ->[B](y: B): (PositiveWrapper[P], B)
- Implicit
- This member is added by an implicit conversion from PositiveWrapper[P] toArrowAssoc[PositiveWrapper[P]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addChannel(channel: ChannelCore[P], selector: ChannelSelector[_, _]): Unit
- Definition Classes
- PositiveWrapper → Port
- def addChannel(channel: ChannelCore[P]): Unit
- Definition Classes
- PositiveWrapper → Port
- 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 doSubscribe(handler: MatchedHandler[_, _, _]): Unit
- Definition Classes
- PositiveWrapper → Port
- def doSubscribe[E <: KompicsEvent](handler: kompics.Handler[E]): Unit
- Definition Classes
- PositiveWrapper → Port
- def doTrigger(event: KompicsEvent, wid: Int, component: ComponentCore): Unit
- Definition Classes
- PositiveWrapper → Port
- def doTrigger(event: KompicsEvent, wid: Int, channel: ChannelCore[_]): Unit
- Definition Classes
- PositiveWrapper → Port
- def dualNegative: NegativePort[P]
Get the negative pair/dual.
Get the negative pair/dual.
- Definition Classes
- PositiveWrapper → PositivePort
- def enqueue(event: KompicsEvent): Unit
- Definition Classes
- PositiveWrapper → Port
- def ensuring(cond: (PositiveWrapper[P]) => Boolean, msg: => Any): PositiveWrapper[P]
- Implicit
- This member is added by an implicit conversion from PositiveWrapper[P] toEnsuring[PositiveWrapper[P]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (PositiveWrapper[P]) => Boolean): PositiveWrapper[P]
- Implicit
- This member is added by an implicit conversion from PositiveWrapper[P] toEnsuring[PositiveWrapper[P]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): PositiveWrapper[P]
- Implicit
- This member is added by an implicit conversion from PositiveWrapper[P] toEnsuring[PositiveWrapper[P]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): PositiveWrapper[P]
- Implicit
- This member is added by an implicit conversion from PositiveWrapper[P] toEnsuring[PositiveWrapper[P]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from PositiveWrapper[P] toStringFormat[PositiveWrapper[P]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getOwner(): ComponentCore
- Definition Classes
- PositiveWrapper → Port
- def getPair(): PortCore[P]
- Definition Classes
- PositiveWrapper → Port
- def getPortType(): P
- Definition Classes
- PositiveWrapper → Port
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 removeChannel(channel: ChannelCore[P]): Unit
- Definition Classes
- PositiveWrapper → Port
- def setPair(port: PortCore[P]): Unit
- Definition Classes
- PositiveWrapper → Port
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def uponEvent(handler: Handler): Handler
Subscribe an event handler
Subscribe an event handler
- handler
the handler to be subscribed
- returns
the subscribed event handler
- Definition Classes
- PositiveWrapper → AnyPort
val handler = myPort uponEvent { case AnEvent(field) => println(field) };
Example: - 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
- Deprecated
(Since version ) see corresponding Javadoc for more information.
- def →[B](y: B): (PositiveWrapper[P], B)
- Implicit
- This member is added by an implicit conversion from PositiveWrapper[P] toArrowAssoc[PositiveWrapper[P]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.