public final class

NetworkModule

extends AbstractModule
java.lang.Object
   ↳ com.google.inject.AbstractModule
     ↳ uk.ac.imperial.presage2.util.network.NetworkModule

Class Overview

Static factory for AbstractModules which bind network interfaces.

Summary

Public Methods
static NetworkModule constrainedNetworkModule(Set<Class<? extends NetworkConstraint>> constraints)
Module to bind a constrained network.
static NetworkModule fullyConnectedNetworkModule()
Module to bind a fully connected network, where every agent can message every other agent with no limitations.
static NetworkModule noNetworkModule()
NetworkModule withNodeDiscovery()
Protected Methods
void configure()
[Expand]
Inherited Methods
From class com.google.inject.AbstractModule
From class java.lang.Object
From interface com.google.inject.Module

Public Methods

public static NetworkModule constrainedNetworkModule (Set<Class<? extends NetworkConstraint>> constraints)

Module to bind a constrained network. This uses a ConstrainedNetworkController and a set of NetworkConstraints to limit message passing in some way.

Parameters
constraints NetworkConstraints to use.
Returns
  • AbstractModule binding network interfaces.

public static NetworkModule fullyConnectedNetworkModule ()

Module to bind a fully connected network, where every agent can message every other agent with no limitations.

Returns
  • AbstractModule binding network interfaces.

public static NetworkModule noNetworkModule ()

public NetworkModule withNodeDiscovery ()

Protected Methods

protected void configure ()