Client

io.github.positionpal.client.ClientADT.Client
trait Client[I, O]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def id: I

The ID associated to the client

The ID associated to the client

Attributes

Returns

the I of the current ClientStatus

The OutputReference indicating the channel where we can actually exchange a message with the ClientStatus.

The OutputReference indicating the channel where we can actually exchange a message with the ClientStatus.

Attributes

def setOutputRef(reference: OutputReference[O]): Client[I, O]

Set a new OutputReference for the client

Set a new OutputReference for the client

Attributes

Returns

a new ClientOps instance with a new OutputReference.

def setStatus(newStatus: ClientStatus): Client[I, O]

Set a new status for the client

Set a new status for the client

Value parameters

newStatus

the new status

Attributes

Returns

a new ClientOps instance with the new status

The current status of a client

The current status of a client

Attributes

Returns

the ClientStatus representing the status of a ClientStatus

Concrete methods

def executeOnOutput(f: O => Unit): Unit

Perform an operation only if an output resource is set

Perform an operation only if an output resource is set

Value parameters

f

the operation to perform

Attributes