public class

UnicastMessage

extends Message
java.lang.Object
   ↳ uk.ac.imperial.presage2.core.network.Message
     ↳ uk.ac.imperial.presage2.core.network.UnicastMessage

Class Overview

This is a basic unicast message to be sent between agents.

This message will only send a performative. If you want to send any objects/data with the message you should extend this class.

Summary

Fields
protected NetworkAddress to Intended recipient of this message.
[Expand]
Inherited Fields
From class uk.ac.imperial.presage2.core.network.Message
Public Constructors
UnicastMessage(Performative performative, String type, Time timestamp, NetworkAddress from, NetworkAddress to)
UnicastMessage(Performative performative, String type, Time timestamp, NetworkAddress from, NetworkAddress to, Object data)
UnicastMessage(Performative performative, NetworkAddress from, NetworkAddress to, Time timestamp)
UnicastMessage(Performative performative, NetworkAddress from, NetworkAddress to, Time timestamp, Object data)
Public Methods
NetworkAddress getTo()
Gets the intended recipient of this message.
String toString()
[Expand]
Inherited Methods
From class uk.ac.imperial.presage2.core.network.Message
From class java.lang.Object
From interface uk.ac.imperial.presage2.core.messaging.Input

Fields

protected NetworkAddress to

Intended recipient of this message.

Public Constructors

public UnicastMessage (Performative performative, String type, Time timestamp, NetworkAddress from, NetworkAddress to)

public UnicastMessage (Performative performative, String type, Time timestamp, NetworkAddress from, NetworkAddress to, Object data)

public UnicastMessage (Performative performative, NetworkAddress from, NetworkAddress to, Time timestamp)

public UnicastMessage (Performative performative, NetworkAddress from, NetworkAddress to, Time timestamp, Object data)

Public Methods

public NetworkAddress getTo ()

Gets the intended recipient of this message.

Returns
  • UUID recipient.

public String toString ()

Since: API Level

See Also