Class/Object

ru.primetalk.synapse.core.components

StaticSystem

Related Docs: object StaticSystem | package components

Permalink

case class StaticSystem(inputs: List[Contact[_]], outputs: List[Contact[_]], privateStateHandles: List[StateHandle[_]], components: List[Component], name: String, extensions: Map[StaticSystemExtensionId[_], Any] = Map()) extends Component with Named with Stateful[Map[Contact[_], Any]] with ComponentWithInternalStructure with Product with Serializable

The core class for SynapseGrid. Contains an immutable description of a system.

inputs

input contacts of the system. Within the system it is prohibited to send signals on them.

outputs

output contacts of the system. Within the system it is prohibited to connect outgoing links to these contacts. This is due to the fact that the signals that come to output contacts are not processed within the system. They are delayed for processing by the outer system.

privateStateHandles

state identifiers for variables available within the system. The system itself is immutable and it is prohibited to save state somewhere in closures or global vars (due to thread unsafety). Instead the system's internal state is "provided" by runtime system in the form of map stateHandle->value. updates of states can be done only in a purely functional way.

components

inner parts of the system - links, subsystems and other blocks. They have inputs and outputs.

name

the system's name extension methods: unhandledExceptionHandler - user-defined exception handler. It can recover from exception by returning repaired Context, log it or rethrow. index - ContactsIndex styles - ContactsStyles

Linear Supertypes
Serializable, Serializable, Product, Equals, ComponentWithInternalStructure, WithStaticSystem, Stateful[Map[Contact[_], Any]], Component, Named, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StaticSystem
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ComponentWithInternalStructure
  7. WithStaticSystem
  8. Stateful
  9. Component
  10. Named
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StaticSystem(inputs: List[Contact[_]], outputs: List[Contact[_]], privateStateHandles: List[StateHandle[_]], components: List[Component], name: String, extensions: Map[StaticSystemExtensionId[_], Any] = Map())

    Permalink

    inputs

    input contacts of the system. Within the system it is prohibited to send signals on them.

    outputs

    output contacts of the system. Within the system it is prohibited to connect outgoing links to these contacts. This is due to the fact that the signals that come to output contacts are not processed within the system. They are delayed for processing by the outer system.

    privateStateHandles

    state identifiers for variables available within the system. The system itself is immutable and it is prohibited to save state somewhere in closures or global vars (due to thread unsafety). Instead the system's internal state is "provided" by runtime system in the form of map stateHandle->value. updates of states can be done only in a purely functional way.

    components

    inner parts of the system - links, subsystems and other blocks. They have inputs and outputs.

    name

    the system's name extension methods: unhandledExceptionHandler - user-defined exception handler. It can recover from exception by returning repaired Context, log it or rethrow. index - ContactsIndex styles - ContactsStyles

Type Members

  1. type StateType = Map[Contact[_], Any]

    Permalink
    Definition Classes
    Stateful

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def allContacts: Seq[Contact[_]]

    Permalink

    All contacts, available at this system's level.

    All contacts, available at this system's level. This is a stable sequence of contacts.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val components: List[Component]

    Permalink

    inner parts of the system - links, subsystems and other blocks.

    inner parts of the system - links, subsystems and other blocks. They have inputs and outputs.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def extend[T](ext: T)(implicit extId: StaticSystemExtensionId[T]): StaticSystem

    Permalink
  10. def extensionOpt[T](implicit extId: StaticSystemExtensionId[T]): Option[T]

    Permalink
  11. val extensions: Map[StaticSystemExtensionId[_], Any]

    Permalink
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. lazy val inputContacts: Set[Contact[_]]

    Permalink
    Definition Classes
    StaticSystemComponent
  15. val inputs: List[Contact[_]]

    Permalink

    input contacts of the system.

    input contacts of the system. Within the system it is prohibited to send signals on them.

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def isOutputContact(c: Contact[_]): Boolean

    Permalink

    Contacts that should be processed by SignalsProcessor.

  18. val name: String

    Permalink

    the system's name extension methods: unhandledExceptionHandler - user-defined exception handler.

    the system's name extension methods: unhandledExceptionHandler - user-defined exception handler. It can recover from exception by returning repaired Context, log it or rethrow. index - ContactsIndex styles - ContactsStyles

    Definition Classes
    StaticSystemNamed
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. lazy val outputContacts: Set[Contact[_]]

    Permalink
    Definition Classes
    StaticSystemComponent
  23. val outputs: List[Contact[_]]

    Permalink

    output contacts of the system.

    output contacts of the system. Within the system it is prohibited to connect outgoing links to these contacts. This is due to the fact that the signals that come to output contacts are not processed within the system. They are delayed for processing by the outer system.

  24. val privateStateHandles: List[StateHandle[_]]

    Permalink

    state identifiers for variables available within the system.

    state identifiers for variables available within the system. The system itself is immutable and it is prohibited to save state somewhere in closures or global vars (due to thread unsafety). Instead the system's internal state is "provided" by runtime system in the form of map stateHandle->value. updates of states can be done only in a purely functional way.

  25. lazy val s0: Map[Contact[_], Any]

    Permalink

    Initial state of the system.

    Initial state of the system.

    Definition Classes
    StaticSystemStateful
  26. lazy val staticSubsystems: List[StaticSystem]

    Permalink
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toStaticSystem: StaticSystem

    Permalink
    Definition Classes
    StaticSystemWithStaticSystem
  29. def toString(): String

    Permalink
    Definition Classes
    Named → AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WithStaticSystem

Inherited from Stateful[Map[Contact[_], Any]]

Inherited from Component

Inherited from Named

Inherited from AnyRef

Inherited from Any

Ungrouped