abstract class BroadcastMessage extends Message
Base class to define a new broadcast message. The effective destinations are the entire set of neighbors, as defined by the sender at the time of sending.
Typical declarations of top-level messages:
case class Hello (from: PID) extends BroadcastMessage case class Heartbeat (from: PID, time: Time) extends BroadcastMessage
Instantiation of top-level messages:
import neko._ val next = me.map { i => (i+1) % N } val m1 = Hello(me) val m2 = Heartbeat(me, now) val m3 = FIFO(me, next, seqnum, msg)
- Alphabetic
- By Inheritance
- BroadcastMessage
- Message
- Event
- Immutable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BroadcastMessage()
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from BroadcastMessage to any2stringadd[BroadcastMessage] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (BroadcastMessage, B)
- Implicit
- This member is added by an implicit conversion from BroadcastMessage to ArrowAssoc[BroadcastMessage] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
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
destinations: Set[PID]
The set of destination processes (well, their ID anyways).
The set of destination processes (well, their ID anyways).
- returns
the set of destination processes.
- Definition Classes
- BroadcastMessage → Message
-
def
ensuring(cond: (BroadcastMessage) ⇒ Boolean, msg: ⇒ Any): BroadcastMessage
- Implicit
- This member is added by an implicit conversion from BroadcastMessage to Ensuring[BroadcastMessage] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (BroadcastMessage) ⇒ Boolean): BroadcastMessage
- Implicit
- This member is added by an implicit conversion from BroadcastMessage to Ensuring[BroadcastMessage] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): BroadcastMessage
- Implicit
- This member is added by an implicit conversion from BroadcastMessage to Ensuring[BroadcastMessage] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): BroadcastMessage
- Implicit
- This member is added by an implicit conversion from BroadcastMessage to Ensuring[BroadcastMessage] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from BroadcastMessage to StringFormat[BroadcastMessage] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
id: MessageID
The identifier of the message.
The identifier of the message.
- returns
the identifier of the message
- Definition Classes
- BroadcastMessage → Message → Event
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- lazy val toPrettyString: String
-
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): (BroadcastMessage, B)
- Implicit
- This member is added by an implicit conversion from BroadcastMessage to ArrowAssoc[BroadcastMessage] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc