public class

MulticastMessage

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

Class Overview

This is a basic multicast 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 List<NetworkAddress> to
[Expand]
Inherited Fields
From class uk.ac.imperial.presage2.core.network.Message
Public Constructors
MulticastMessage(Performative performative, String type, Time timestamp, NetworkAddress from, Object data)
MulticastMessage(Performative performative, String type, Time timestamp, NetworkAddress from, List<NetworkAddress> to)
MulticastMessage(Performative performative, String type, Time timestamp, NetworkAddress from, List<NetworkAddress> to, Object data)
MulticastMessage(Performative performative, NetworkAddress from, List<NetworkAddress> to, Time timestamp)
Create a MulticastMessage with provided list of recipients.
MulticastMessage(Performative performative, NetworkAddress from, Time timestamp)

Create a MulticastMessage with empty recipients list.

MulticastMessage(Performative performative, NetworkAddress from, Time timestamp, Object data)
Public Methods
void addRecipient(NetworkAddress recipient)
Add a single recipient to the list.
void addRecipients(List<NetworkAddress> recipients)
List<NetworkAddress> getTo()
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 List<NetworkAddress> to

Public Constructors

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

public MulticastMessage (Performative performative, String type, Time timestamp, NetworkAddress from, List<NetworkAddress> to)

public MulticastMessage (Performative performative, String type, Time timestamp, NetworkAddress from, List<NetworkAddress> to, Object data)

public MulticastMessage (Performative performative, NetworkAddress from, List<NetworkAddress> to, Time timestamp)

Create a MulticastMessage with provided list of recipients.

public MulticastMessage (Performative performative, NetworkAddress from, Time timestamp)

Create a MulticastMessage with empty recipients list.

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

Public Methods

public void addRecipient (NetworkAddress recipient)

Add a single recipient to the list.

public void addRecipients (List<NetworkAddress> recipients)

public List<NetworkAddress> getTo ()

public String toString ()

Since: API Level

See Also