DSNeighbours

This class represents a set of neighbours in a distributed system. It implements the Serializable interface to allow it to be sent over the network.

Constructors

Link copied to clipboard
constructor(me: Address)

Constructor that initializes all neighbours to the same address.

constructor(right: Address, nNext: Address, left: Address, leader: Address)

Constructor that initializes all neighbours to different addresses.

Properties

Link copied to clipboard

The leader in the distributed system.

Link copied to clipboard

The left neighbour in the distributed system.

Link copied to clipboard

The next-next neighbour in the distributed system.

Link copied to clipboard

The right neighbour in the distributed system.

Functions

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the DSNeighbours object.