Packages

  • package root
    Definition Classes
    root
  • package se
    Definition Classes
    root
  • package sics
    Definition Classes
    se
  • package kompics
    Definition Classes
    sics
  • package sl

    This package contains the Scala DSL for Kompics.

    This package contains the Scala DSL for Kompics.

    It is recommended to import this as import se.sics.kompics.sl._, since it contains a number of implicit conversions and convenience methods that are good to have in scope.

    Definition Classes
    kompics
  • package simulator

    The Kompics Simulator DSL for Scala

    The Kompics Simulator DSL for Scala

    Definition Classes
    sl
    Example:
    1. case object SimpleSimulation {
      
        import Distributions._
        // needed for the distributions, but needs to be initialised after setting the seed
        implicit val random = JSimulationScenario.getRandom();
      
        private def intToAddress(i: Int): Address = {
          try {
            new TAddress(new InetSocketAddress(InetAddress.getByName("192.193.0." + i), 10000));
          } catch {
            case ex: UnknownHostException => throw new RuntimeException(ex);
          }
        }
      
        val startResultSetterOp = Op { (self: Integer) =>
          val selfAddr = intToAddress(self);
          StartNode(selfAddr, Init[ResultSetter](selfAddr))
        };
        val startPongerOp = Op { (self: Integer) =>
          val selfAddr = intToAddress(self)
          StartNode(selfAddr, Init[PongerParent](selfAddr))
        };
        val startPingerOp = Op { (self: Integer, ponger: Integer) =>
          val selfAddr = intToAddress(self);
          val pongerAddr = intToAddress(ponger);
          StartNode(selfAddr, Init[PingerParent](selfAddr, pongerAddr))
        };
      
        val scenario = raise(5, startPongerOp, 1.toN)
          .arrival(constant(1000.millis))
          .andThen(1000.millis)
          .afterTermination(raise(5, startPingerOp, 6.toN, 1.toN).arrival(constant(1000.millis)))
          .inParallel(raise(1, startResultSetterOp, 1.toN).arrival(constant(1000.millis)))
          .andThen(10000.millis)
          .afterTermination(Terminate);
      }
  • AnyPort
  • ComponentAndPort
  • ComponentDefinition
  • Config
  • Init
  • Kompics
  • NegativePort
  • NegativeWrapper
  • Port
  • PortAndComponent
  • PortAndPort
  • PositivePort
  • PositiveWrapper
  • PrimitiveConverters
  • SConv
  • ScalaComponent
  • ScalaComponentWrapper
  • ScalaPort

class ScalaPort[P <: PortType] extends PortCore[P] with NegativePort[P] with PositivePort[P]

A Scala implementation of the se.sics.kompics.PortCore

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaPort
  2. PositivePort
  3. NegativePort
  4. AnyPort
  5. PortCore
  6. Positive
  7. Negative
  8. Port
  9. AnyRef
  10. Any
Implicitly
  1. by port2negative
  2. by port2positive
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ScalaPort(positive: Boolean, pType: P, parent: ComponentCore, rwLock: ReentrantReadWriteLock)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ScalaPort[P] toany2stringadd[ScalaPort[P]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ++(components: Component*): Seq[Channel[P]]

    Create a bidirectional channel to each Component in components.

    Create a bidirectional channel to each Component in components.

    Definition Classes
    ScalaPortNegativePort
  5. def ++(component: Component): Channel[P]

    Create a bidirectional channel to the component.

    Create a bidirectional channel to the component.

    Definition Classes
    ScalaPortNegativePort
  6. def --(components: Component*): Seq[Channel[P]]

    Create a bidirectional channel to each Component in components.

    Create a bidirectional channel to each Component in components.

    Definition Classes
    ScalaPortPositivePort
  7. def --(component: Component): Channel[P]

    Create a bidirectional channel to the component.

    Create a bidirectional channel to the component.

    Definition Classes
    ScalaPortPositivePort
  8. 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
    @inline()
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def addChannel(channel: ChannelCore[P], selector: ChannelSelector[_, _]): Unit
    Definition Classes
    ScalaPort → Port
  11. def addChannel(channel: ChannelCore[P]): Unit
    Definition Classes
    ScalaPort → Port
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def cleanChannels(): Unit
    Definition Classes
    ScalaPort → PortCore
  14. def cleanEvents(): Unit
    Definition Classes
    ScalaPort → PortCore
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  16. def doSubscribe(handler: Handler): Unit
    Attributes
    protected[kompics]
  17. 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
  18. def doSubscribe[E <: KompicsEvent](handler: kompics.Handler[E]): Unit
    Definition Classes
    ScalaPort → Port
  19. def doTrigger(event: KompicsEvent, wid: Int, component: ComponentCore): Unit
    Definition Classes
    ScalaPort → Port
  20. def doTrigger(event: KompicsEvent, wid: Int, channel: ChannelCore[_]): Unit
    Definition Classes
    ScalaPort → Port
  21. def doUnsubscribe(handler: Handler): Unit
    Attributes
    protected[kompics]
  22. def dualNegative: NegativePort[P]

    Get the negative pair/dual.

    Get the negative pair/dual.

    Definition Classes
    ScalaPortPositivePort
  23. def dualPositive: PositivePort[P]

    Get the positive pair/dual.

    Get the positive pair/dual.

    Definition Classes
    ScalaPortNegativePort
  24. def enqueue(event: KompicsEvent): Unit
    Definition Classes
    ScalaPort → Port
  25. def ensuring(cond: (ScalaPort[P]) => Boolean, msg: => Any): ScalaPort[P]
    Implicit
    This member is added by an implicit conversion from ScalaPort[P] toEnsuring[ScalaPort[P]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. def ensuring(cond: (ScalaPort[P]) => Boolean): ScalaPort[P]
    Implicit
    This member is added by an implicit conversion from ScalaPort[P] toEnsuring[ScalaPort[P]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: Boolean, msg: => Any): ScalaPort[P]
    Implicit
    This member is added by an implicit conversion from ScalaPort[P] toEnsuring[ScalaPort[P]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. def ensuring(cond: Boolean): ScalaPort[P]
    Implicit
    This member is added by an implicit conversion from ScalaPort[P] toEnsuring[ScalaPort[P]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  31. def findChannelsTo(port: PortCore[P]): List[Channel[P]]
    Definition Classes
    ScalaPort → PortCore
  32. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ScalaPort[P] toStringFormat[ScalaPort[P]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  34. def getOwner(): ComponentCore
    Definition Classes
    PortCore → Port
  35. def getPair(): PortCore[P]
    Definition Classes
    ScalaPort → Port
  36. def getPortType(): P
    Definition Classes
    PortCore → Port
  37. def hasEvent(): Boolean
  38. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  41. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  42. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. def pollFirstEvent(): KompicsEvent
  44. def removeChannel(channel: ChannelCore[P]): Unit
    Definition Classes
    ScalaPort → Port
  45. def setPair(port: PortCore[P]): Unit
    Definition Classes
    ScalaPort → Port
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def toString(): String
    Definition Classes
    AnyRef → Any
  48. 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
    ScalaPortAnyPort
    Example:
    1. val handler = myPort uponEvent {
        case AnEvent(field) => println(field)
      };
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Shadowed Implicit Value Members

  1. def ++(components: Component*): Seq[Channel[P]]

    Create a bidirectional channel to each Component in components.

    Create a bidirectional channel to each Component in components.

    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
  2. 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
  3. def --(components: Component*): Seq[Channel[P]]

    Create a bidirectional channel to each Component in components.

    Create a bidirectional channel to each Component in components.

    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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
    Example:
    1. val handler = myPort uponEvent {
        case AnEvent(field) => println(field)
      };
  32. 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
    Example:
    1. val handler = myPort uponEvent {
        case AnEvent(field) => println(field)
      };

Deprecated Value Members

  1. 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.

  2. 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.

Inherited from PositivePort[P]

Inherited from NegativePort[P]

Inherited from AnyPort

Inherited from PortCore[P]

Inherited from Positive[P]

Inherited from Negative[P]

Inherited from kompics.Port[P]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion port2negative fromScalaPort[P] to NegativePort[P]

Inherited by implicit conversion port2positive fromScalaPort[P] to PositivePort[P]

Inherited by implicit conversion any2stringadd fromScalaPort[P] to any2stringadd[ScalaPort[P]]

Inherited by implicit conversion StringFormat fromScalaPort[P] to StringFormat[ScalaPort[P]]

Inherited by implicit conversion Ensuring fromScalaPort[P] to Ensuring[ScalaPort[P]]

Inherited by implicit conversion ArrowAssoc fromScalaPort[P] to ArrowAssoc[ScalaPort[P]]

Ungrouped