Package-level declarations

Types

Link copied to clipboard
data class InboundMessage<ID : Any>(val senderId: ID, val messages: Map<Path, *>) : Message

messages received by a node from senderId.

Link copied to clipboard
sealed interface Message

Types of messages.

Link copied to clipboard
interface Network<ID : Any>

Network interface for the aggregate computation.

Link copied to clipboard
class OutboundMessage<ID : Any>(expectedSize: Int, val senderId: ID) : Message

An OutboundMessage are messages that a device senderId sends to all other neighbours.

Link copied to clipboard
data class SingleOutboundMessage<ID : Any, Payload>(val default: Payload, val overrides: Map<ID, Payload> = emptyMap())

A SingleOutboundMessage contains the values associated to a Path in the messages of OutboundMessage. Has a default value that is sent regardless the awareness the device's neighbours, overrides specifies the payload depending on the neighbours' values.