trait Protocol extends NamedEntity
Defines the basic operations that a protocol must provide.
An application programmer will not use this trait directly, but rather use its two main subclasses: ActiveProtocol for active protocols, and ReactiveProtocol for reactive protocols.
- Alphabetic
- By Inheritance
- Protocol
- NamedEntity
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        id: ProtoID
      
      
      returns the identifier of the protocol returns the identifier of the protocol - returns
- identifier of the protocol 
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        process: PID
      
      
      returns the identifier of the process on which this instance of the protocol is ruuning. returns the identifier of the process on which this instance of the protocol is ruuning. - returns
- identifier of the process 
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        senderOpt: Option[Sender]
      
      
      - Definition Classes
- NamedEntity
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        system: NekoSystem
      
      
      returns the system, allowing to access global information. returns the system, allowing to access global information. - returns
- a reference to the system 
 
Concrete Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
-  def +(other: String): String
-  def ->[B](y: B): (Protocol, B)
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        context: Some[PID]
      
      
      - Definition Classes
- Protocol → NamedEntity
 
-  def ensuring(cond: (Protocol) ⇒ Boolean, msg: ⇒ Any): Protocol
-  def ensuring(cond: (Protocol) ⇒ Boolean): Protocol
-  def ensuring(cond: Boolean, msg: ⇒ Any): Protocol
-  def ensuring(cond: Boolean): Protocol
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
-  def formatted(fmtstr: String): String
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        name: String
      
      
      returns the name of the protocol returns the name of the protocol - returns
- name of the protocol 
 - Definition Classes
- Protocol → NamedEntity
 
- 
      
      
      
        
      
    
      
        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
      
      
        onError(e: Throwable): Unit
      
      
      override this method to report on errors whens the protocol is forcibly terminated due to an an error or exception. override this method to report on errors whens the protocol is forcibly terminated due to an an error or exception. The method should never use any of the communication methods such as send, receive, or deliver. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        onFinish(): Unit
      
      
      override this method to perform take downs just after this process has finished. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        onShutdown(): Unit
      
      
      override this method to perform take downs after all processes have finished and before the process shuts down. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        preStart(): Unit
      
      
      override this method to perform initializations just before the process begins to run. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        simpleName: String
      
      
      - Definition Classes
- Protocol → NamedEntity
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        start(): Unit
      
      
      override this method to perform initialization just as the process starts. 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
-  def →[B](y: B): (Protocol, B)