class ScalaPort[P <: PortType] extends PortCore[P] with NegativePort[P] with PositivePort[P]
A Scala implementation of the se.sics.kompics.PortCore
- Alphabetic
- By Inheritance
- ScalaPort
- PositivePort
- NegativePort
- AnyPort
- PortCore
- Positive
- Negative
- Port
- AnyRef
- Any
- by port2negative
- by port2positive
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ScalaPort(positive: Boolean, pType: P, parent: ComponentCore, rwLock: ReentrantReadWriteLock)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ++(components: Component*): Seq[Channel[P]]
Create a bidirectional channel to each
Component
incomponents
.Create a bidirectional channel to each
Component
incomponents
.- Definition Classes
- ScalaPort → NegativePort
- def ++(component: Component): Channel[P]
Create a bidirectional channel to the
component
.Create a bidirectional channel to the
component
.- Definition Classes
- ScalaPort → NegativePort
- def --(components: Component*): Seq[Channel[P]]
Create a bidirectional channel to each
Component
incomponents
.Create a bidirectional channel to each
Component
incomponents
.- Definition Classes
- ScalaPort → PositivePort
- def --(component: Component): Channel[P]
Create a bidirectional channel to the
component
.Create a bidirectional channel to the
component
.- Definition Classes
- ScalaPort → PositivePort
- def ->[B](y: B): (ScalaPort[P], B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addChannel(channel: ChannelCore[P], selector: ChannelSelector[_, _]): Unit
- Definition Classes
- ScalaPort → Port
- def addChannel(channel: ChannelCore[P]): Unit
- Definition Classes
- ScalaPort → Port
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cleanChannels(): Unit
- Definition Classes
- ScalaPort → PortCore
- def cleanEvents(): Unit
- Definition Classes
- ScalaPort → PortCore
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def doSubscribe(handler: Handler): Unit
- Attributes
- protected[kompics]
- def doSubscribe(handler: MatchedHandler[_, _, _]): Unit
This method has no implementation in Scala!
This method has no implementation in Scala!
Use pattern matching instead!
- Definition Classes
- ScalaPort → Port
- def doSubscribe[E <: KompicsEvent](handler: kompics.Handler[E]): Unit
- Definition Classes
- ScalaPort → Port
- def doTrigger(event: KompicsEvent, wid: Int, component: ComponentCore): Unit
- Definition Classes
- ScalaPort → Port
- def doTrigger(event: KompicsEvent, wid: Int, channel: ChannelCore[_]): Unit
- Definition Classes
- ScalaPort → Port
- def doUnsubscribe(handler: Handler): Unit
- Attributes
- protected[kompics]
- def dualNegative: NegativePort[P]
Get the negative pair/dual.
Get the negative pair/dual.
- Definition Classes
- ScalaPort → PositivePort
- def dualPositive: PositivePort[P]
Get the positive pair/dual.
Get the positive pair/dual.
- Definition Classes
- ScalaPort → NegativePort
- def enqueue(event: KompicsEvent): Unit
- Definition Classes
- ScalaPort → Port
- def ensuring(cond: (ScalaPort[P]) => Boolean, msg: => Any): ScalaPort[P]
- def ensuring(cond: (ScalaPort[P]) => Boolean): ScalaPort[P]
- def ensuring(cond: Boolean, msg: => Any): ScalaPort[P]
- def ensuring(cond: Boolean): ScalaPort[P]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def findChannelsTo(port: PortCore[P]): List[Channel[P]]
- Definition Classes
- ScalaPort → PortCore
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getOwner(): ComponentCore
- Definition Classes
- PortCore → Port
- def getPair(): PortCore[P]
- Definition Classes
- ScalaPort → Port
- def getPortType(): P
- Definition Classes
- PortCore → Port
- def hasEvent(): Boolean
- 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 pollFirstEvent(): KompicsEvent
- def removeChannel(channel: ChannelCore[P]): Unit
- Definition Classes
- ScalaPort → Port
- def setPair(port: PortCore[P]): Unit
- Definition Classes
- ScalaPort → 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
- 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])
Shadowed Implicit Value Members
- def ++(components: Component*): Seq[Channel[P]]
Create a bidirectional channel to each
Component
incomponents
.Create a bidirectional channel to each
Component
incomponents
.- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).++(components)
- Definition Classes
- NegativePort
- def ++(component: Component): Channel[P]
Create a bidirectional channel to the
component
.Create a bidirectional channel to the
component
.- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).++(component)
- Definition Classes
- NegativePort
- def --(components: Component*): Seq[Channel[P]]
Create a bidirectional channel to each
Component
incomponents
.Create a bidirectional channel to each
Component
incomponents
.- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).--(components)
- Definition Classes
- PositivePort
- def --(component: Component): Channel[P]
Create a bidirectional channel to the
component
.Create a bidirectional channel to the
component
.- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).--(component)
- Definition Classes
- PositivePort
- def addChannel(arg0: ChannelCore[P], arg1: ChannelSelector[_ <: AnyRef, _ <: AnyRef]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).addChannel(arg0, arg1)
- Definition Classes
- Port
- def addChannel(arg0: ChannelCore[P]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).addChannel(arg0)
- Definition Classes
- Port
- def addChannel(arg0: ChannelCore[P], arg1: ChannelSelector[_ <: AnyRef, _ <: AnyRef]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).addChannel(arg0, arg1)
- Definition Classes
- Port
- def addChannel(arg0: ChannelCore[P]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).addChannel(arg0)
- Definition Classes
- Port
- def doSubscribe(arg0: MatchedHandler[_ <: AnyRef, _ <: AnyRef, _ <: AnyRef]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).doSubscribe(arg0)
- Definition Classes
- Port
- def doSubscribe[E <: kompics.KompicsEvent](arg0: kompics.Handler[E]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).doSubscribe(arg0)
- Definition Classes
- Port
- def doSubscribe(arg0: MatchedHandler[_ <: AnyRef, _ <: AnyRef, _ <: AnyRef]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).doSubscribe(arg0)
- Definition Classes
- Port
- def doSubscribe[E <: kompics.KompicsEvent](arg0: kompics.Handler[E]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).doSubscribe(arg0)
- Definition Classes
- Port
- def doTrigger(arg0: kompics.KompicsEvent, arg1: Int, arg2: ComponentCore): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).doTrigger(arg0, arg1, arg2)
- Definition Classes
- Port
- def doTrigger(arg0: kompics.KompicsEvent, arg1: Int, arg2: ChannelCore[_ <: AnyRef]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).doTrigger(arg0, arg1, arg2)
- Definition Classes
- Port
- def doTrigger(arg0: kompics.KompicsEvent, arg1: Int, arg2: ComponentCore): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).doTrigger(arg0, arg1, arg2)
- Definition Classes
- Port
- def doTrigger(arg0: kompics.KompicsEvent, arg1: Int, arg2: ChannelCore[_ <: AnyRef]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).doTrigger(arg0, arg1, arg2)
- Definition Classes
- Port
- def dualNegative: NegativePort[P]
Get the negative pair/dual.
Get the negative pair/dual.
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).dualNegative
- Definition Classes
- PositivePort
- def dualPositive: PositivePort[P]
Get the positive pair/dual.
Get the positive pair/dual.
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).dualPositive
- Definition Classes
- NegativePort
- def enqueue(arg0: kompics.KompicsEvent): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).enqueue(arg0)
- Definition Classes
- Port
- def enqueue(arg0: kompics.KompicsEvent): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).enqueue(arg0)
- Definition Classes
- Port
- def getOwner(): ComponentCore
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).getOwner()
- Definition Classes
- Port
- def getOwner(): ComponentCore
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).getOwner()
- Definition Classes
- Port
- def getPair(): PortCore[P]
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).getPair()
- Definition Classes
- Port
- def getPair(): PortCore[P]
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).getPair()
- Definition Classes
- Port
- def getPortType(): P
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).getPortType()
- Definition Classes
- Port
- def getPortType(): P
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).getPortType()
- Definition Classes
- Port
- def removeChannel(arg0: ChannelCore[P]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).removeChannel(arg0)
- Definition Classes
- Port
- def removeChannel(arg0: ChannelCore[P]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).removeChannel(arg0)
- Definition Classes
- Port
- def setPair(arg0: PortCore[P]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).setPair(arg0)
- Definition Classes
- Port
- def setPair(arg0: PortCore[P]): Unit
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).setPair(arg0)
- Definition Classes
- Port
- def uponEvent(handler: Handler): Handler
Subscribe an event handler
Subscribe an event handler
- handler
the handler to be subscribed
- returns
the subscribed event handler
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toNegativePort[P] performed by method port2negative in se.sics.kompics.sl.NegativePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: NegativePort[P]).uponEvent(handler)
- Definition Classes
- AnyPort
val handler = myPort uponEvent { case AnEvent(field) => println(field) };
Example: - def uponEvent(handler: Handler): Handler
Subscribe an event handler
Subscribe an event handler
- handler
the handler to be subscribed
- returns
the subscribed event handler
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toPositivePort[P] performed by method port2positive in se.sics.kompics.sl.PositivePort.This conversion will take place only if P is a subclass of PortType (P <: PortType).
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(scalaPort: PositivePort[P]).uponEvent(handler)
- Definition Classes
- AnyPort
val handler = myPort uponEvent { case AnEvent(field) => println(field) };
Example:
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): (ScalaPort[P], B)
- Implicit
- This member is added by an implicit conversion from ScalaPort[P] toArrowAssoc[ScalaPort[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.