public interface

NetworkConstraint

uk.ac.imperial.presage2.core.network.NetworkConstraint
Known Indirect Subclasses

Summary

Public Methods
abstract boolean blockMessageDelivery(NetworkAddress to, Message m)
Block the message m from being delivered to recipient to.
abstract Message constrainMessage(Message m)
Apply constraints to the Message m and return the modified version of the message.

Public Methods

public abstract boolean blockMessageDelivery (NetworkAddress to, Message m)

Block the message m from being delivered to recipient to.

Parameters
to a recipient of the message m
m the message being sent.
Returns
  • True if the NetworkController should block the message, false otherwise.

public abstract Message constrainMessage (Message m)

Apply constraints to the Message m and return the modified version of the message.