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 ScalaComponent extends ComponentCoreScala

The Scala implementation of se.sics.kompics.Component

Attributes
protected
Linear Supertypes
ComponentCoreScala, ComponentCore, Component, Runnable, ForkJoinTask[Void], Serializable, Future[Void], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaComponent
  2. ComponentCoreScala
  3. ComponentCore
  4. Component
  5. Runnable
  6. ForkJoinTask
  7. Serializable
  8. Future
  9. AnyRef
  10. Any
Implicitly
  1. by component2Scala
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ScalaComponent(component: ComponentDefinition)

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 ScalaComponent toany2stringadd[ScalaComponent] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ++[P <: PortType](portType: Class[P]): PositivePort[_ <: P]

    Get a positive port instance

    Get a positive port instance

    P

    the port type of the port instance

    portType

    a class instance of the port type

    returns

    a positive port instance of the requested type

    Implicit
    This member is added by an implicit conversion from ScalaComponent toScalaComponentWrapper performed by method component2Scala in se.sics.kompics.sl.ScalaComponent.
    Definition Classes
    ScalaComponentWrapper
  5. def ++[P <: PortType](port: P): PositivePort[_ <: P]

    Get a positive port instance

    Get a positive port instance

    P

    the port type of the port instance

    port

    the instance object of the port

    returns

    a positive port instance of the requested type

    Implicit
    This member is added by an implicit conversion from ScalaComponent toScalaComponentWrapper performed by method component2Scala in se.sics.kompics.sl.ScalaComponent.
    Definition Classes
    ScalaComponentWrapper
  6. def --[P <: PortType](portType: Class[P]): NegativePort[_ <: P]

    Get a negative port instance

    Get a negative port instance

    P

    the port type of the port instance

    portType

    a class instance of the port type

    returns

    a negative port instance of the requested type

    Implicit
    This member is added by an implicit conversion from ScalaComponent toScalaComponentWrapper performed by method component2Scala in se.sics.kompics.sl.ScalaComponent.
    Definition Classes
    ScalaComponentWrapper
  7. def --[P <: PortType](port: P): NegativePort[_ <: P]

    Get a negative port instance

    Get a negative port instance

    P

    the port type of the port instance

    port

    the instance object of the port

    returns

    a negative port instance of the requested type

    Implicit
    This member is added by an implicit conversion from ScalaComponent toScalaComponentWrapper performed by method component2Scala in se.sics.kompics.sl.ScalaComponent.
    Definition Classes
    ScalaComponentWrapper
  8. def ->[B](y: B): (ScalaComponent, B)
    Implicit
    This member is added by an implicit conversion from ScalaComponent toArrowAssoc[ScalaComponent] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def cancel(arg0: Boolean): Boolean
    Definition Classes
    ForkJoinTask → Future
  12. def cleanPorts(): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ScalaComponent → ComponentCore
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  14. final def compareAndSetForkJoinTaskTag(arg0: Short, arg1: Short): Boolean
    Definition Classes
    ForkJoinTask
  15. def complete(arg0: Void): Unit
    Definition Classes
    ForkJoinTask
  16. def completeExceptionally(arg0: Throwable): Unit
    Definition Classes
    ForkJoinTask
  17. val component: ComponentDefinition
  18. def config(): config.Config
    Definition Classes
    ComponentCore
  19. val configHandler: Handler
  20. def control(): Positive[ControlPort]
    Definition Classes
    ScalaComponent → Component
  21. def createControlPort(): Negative[ControlPort]
    Definition Classes
    ScalaComponent → ComponentCore
  22. def createNegativePort[P <: PortType](portType: Class[P]): Negative[P]
    Definition Classes
    ScalaComponent → ComponentCore
  23. def createPositivePort[P <: PortType](portType: Class[P]): Positive[P]
    Definition Classes
    ScalaComponent → ComponentCore
  24. def ctrl: PositivePort[ControlPort]
  25. def destroyTree(arg0: ComponentCore): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ComponentCore
  26. def destroyTreeAtParentOf(arg0: ComponentCore): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ComponentCore
  27. def doConfigUpdateScala(update: ConfigUpdate): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ScalaComponentComponentCoreScala
  28. def doCreate[T <: kompics.ComponentDefinition](definition: Class[T], initEvent: Optional[kompics.Init[T]], update: Optional[ConfigUpdate]): Component
    Attributes
    protected[sl]
    Definition Classes
    ScalaComponent → ComponentCore
  29. def doCreate[T <: kompics.ComponentDefinition](definition: Class[T], initEvent: Optional[kompics.Init[T]]): Component
    Attributes
    protected[sl]
    Definition Classes
    ScalaComponent → ComponentCore
  30. def doCreateScala[C <: kompics.ComponentDefinition](definition: Class[C], initEvent: Option[kompics.Init[C]], update: Optional[ConfigUpdate]): Component
    Attributes
    protected[sl]
  31. def doDestroy(arg0: Component): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ComponentCore
  32. def ensuring(cond: (ScalaComponent) => Boolean, msg: => Any): ScalaComponent
    Implicit
    This member is added by an implicit conversion from ScalaComponent toEnsuring[ScalaComponent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  33. def ensuring(cond: (ScalaComponent) => Boolean): ScalaComponent
    Implicit
    This member is added by an implicit conversion from ScalaComponent toEnsuring[ScalaComponent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  34. def ensuring(cond: Boolean, msg: => Any): ScalaComponent
    Implicit
    This member is added by an implicit conversion from ScalaComponent toEnsuring[ScalaComponent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  35. def ensuring(cond: Boolean): ScalaComponent
    Implicit
    This member is added by an implicit conversion from ScalaComponent toEnsuring[ScalaComponent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  36. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. def equals(that: Any): Boolean
    Definition Classes
    ScalaComponent → ComponentCore → AnyRef → Any
  38. def escalateFault(fault: Fault): Unit
    Definition Classes
    ScalaComponent → Component
  39. def escalateFaultToKompics(arg0: Fault): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ComponentCore
  40. def eventReceived(arg0: PortCore[_ <: AnyRef], arg1: kompics.KompicsEvent, arg2: Int): Unit
    Definition Classes
    ComponentCore
  41. def exec(): Boolean
    Attributes
    protected[kompics]
    Definition Classes
    ComponentCore → ForkJoinTask
  42. def execute(wid: Int): Unit
    Definition Classes
    ScalaComponent → ComponentCore
  43. final def fork(): ForkJoinTask[Void]
    Definition Classes
    ForkJoinTask
  44. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ScalaComponent toStringFormat[ScalaComponent] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  45. final def get(arg0: Long, arg1: TimeUnit): Void
    Definition Classes
    ForkJoinTask → Future
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.util.concurrent.TimeoutException])
  46. final def get(): Void
    Definition Classes
    ForkJoinTask → Future
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.util.concurrent.ExecutionException])
  47. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  48. def getComponent(): kompics.ComponentDefinition
    Definition Classes
    ScalaComponent → Component
  49. def getControl(): Positive[ControlPort]
    Definition Classes
    ScalaComponent → Component
  50. final def getException(): Throwable
    Definition Classes
    ForkJoinTask
  51. final def getForkJoinTaskTag(): Short
    Definition Classes
    ForkJoinTask
  52. def getNegative[P <: PortType](portType: Class[P]): Negative[P]
    Definition Classes
    ScalaComponent → Component
  53. def getParent(): ComponentCore
    Definition Classes
    ComponentCore
  54. def getPositive[P <: PortType](portType: Class[P]): Positive[P]
    Definition Classes
    ScalaComponent → Component
  55. def getRawResult(): Void
    Definition Classes
    ComponentCore → ForkJoinTask
  56. val handleFault: Handler
  57. val handleLifecycle: Handler
  58. def hashCode(): Int
    Definition Classes
    ScalaComponent → ComponentCore → AnyRef → Any
  59. def id(): UUID
    Definition Classes
    ComponentCore → Component
  60. final def invoke(): Void
    Definition Classes
    ForkJoinTask
  61. final def isCancelled(): Boolean
    Definition Classes
    ForkJoinTask → Future
  62. final def isCompletedAbnormally(): Boolean
    Definition Classes
    ForkJoinTask
  63. final def isCompletedNormally(): Boolean
    Definition Classes
    ForkJoinTask
  64. final def isDone(): Boolean
    Definition Classes
    ForkJoinTask → Future
  65. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  66. final def join(): Void
    Definition Classes
    ForkJoinTask
  67. def logger(): Logger
    Attributes
    protected[kompics]
    Definition Classes
    ScalaComponent → ComponentCore
  68. def markSubtreeAs(arg0: State): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ComponentCore
  69. def markSubtreeAtAs(arg0: ComponentCore, arg1: State): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ComponentCore
  70. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  71. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  72. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  73. def provided[P <: PortType](portType: Class[P]): Positive[P]
    Definition Classes
    ScalaComponent → Component
  74. final def quietlyComplete(): Unit
    Definition Classes
    ForkJoinTask
  75. final def quietlyInvoke(): Unit
    Definition Classes
    ForkJoinTask
  76. final def quietlyJoin(): Unit
    Definition Classes
    ForkJoinTask
  77. def reinitialize(): Unit
    Definition Classes
    ForkJoinTask
  78. def required[P <: PortType](portType: Class[P]): Negative[P]
    Definition Classes
    ScalaComponent → Component
  79. def run(): Unit
    Definition Classes
    ComponentCore → Runnable
  80. def schedule(arg0: Int): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ComponentCore
  81. final def setForkJoinTaskTag(arg0: Short): Short
    Definition Classes
    ForkJoinTask
  82. def setInactive(child: Component): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ScalaComponent → ComponentCore
  83. def setRawResult(arg0: Void): Unit
    Attributes
    protected[kompics]
    Definition Classes
    ComponentCore → ForkJoinTask
  84. def setScheduler(arg0: Scheduler): Unit
    Definition Classes
    ComponentCore
  85. def state(): State
    Definition Classes
    ComponentCore → Component
  86. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  87. def toString(): String
    Definition Classes
    ComponentCore → AnyRef → Any
  88. def tryUnfork(): Boolean
    Definition Classes
    ForkJoinTask
  89. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  90. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  91. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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): (ScalaComponent, B)
    Implicit
    This member is added by an implicit conversion from ScalaComponent toArrowAssoc[ScalaComponent] 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 ComponentCoreScala

Inherited from ComponentCore

Inherited from Component

Inherited from Runnable

Inherited from ForkJoinTask[Void]

Inherited from Serializable

Inherited from Future[Void]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion component2Scala fromScalaComponent to ScalaComponentWrapper

Inherited by implicit conversion any2stringadd fromScalaComponent to any2stringadd[ScalaComponent]

Inherited by implicit conversion StringFormat fromScalaComponent to StringFormat[ScalaComponent]

Inherited by implicit conversion Ensuring fromScalaComponent to Ensuring[ScalaComponent]

Inherited by implicit conversion ArrowAssoc fromScalaComponent to ArrowAssoc[ScalaComponent]

Ungrouped