anthill.antsim
Interface Peernet

All Superinterfaces:
Clearable
All Known Implementing Classes:
PeernetImpl

public interface Peernet
extends Clearable

The Peernet interface represents a simulated peer-to-peer network. Each Peernet is composed by a collection of nests linked together. Peernet objects are one of the components of Scenario objects.

Version:
$Revision$
Author:
Alberto Montresor

Method Summary
 Nest[] getNests()
          Returns the collection of nests composing the simulated P2P network.
 int size()
          Returns the size of the P2P network.
 
Methods inherited from interface anthill.util.Clearable
clear
 

Method Detail

getNests

public Nest[] getNests()
Returns the collection of nests composing the simulated P2P network.

size

public int size()
Returns the size of the P2P network.