A B C D E F G H I J K L M N O P Q R S T U V W

A

active(long) - Method in class peersim.core.Scheduler
true if given time point is covered by this scheduler
active() - Method in class peersim.core.Scheduler
true if current time point is covered by this scheduler
add(Number, Number) - Method in class peersim.config.Operators
 
add(Node) - Static method in class peersim.core.Network
The node will be appended to the end of the list.
add - Variable in class peersim.dynamics.DynamicNetwork
value of "add"
add(int) - Method in class peersim.dynamics.DynamicNetwork
Adds n nodes to the network.
add(int) - Method in class peersim.dynamics.OscillatingNetwork
Adds n nodes to the network.
add(long, Object, Node, int) - Static method in class peersim.edsim.EDSimulator
Adds a new event to be scheduled, specifying the number of time units of delay, and the node and the protocol identifier to which the event will be delivered.
add(long, Object, Node, byte) - Method in class peersim.edsim.Heap
Add a new event, to be scheduled at the specified time.
add(long, Object, Node, byte, long) - Method in class peersim.edsim.Heap
Add a new event, to be scheduled at the specified time.
add(long, Object, Node, byte) - Method in interface peersim.edsim.PriorityQ
Add a new event, to be scheduled at the specified time.
add(long, Object, Node, byte, long) - Method in interface peersim.edsim.PriorityQ
Add a new event, to be scheduled at the specified time, specifying also the priority of the event, should there be other events scheduled at the same time.
add(int) - Method in class peersim.util.IncrementalFreq
Adds item i to the input set.
add(int, int) - Method in class peersim.util.IncrementalFreq
Adds item i to the input set k times.
add(double) - Method in class peersim.util.IncrementalStats
Updates the statistics according to this element.
add(double, int) - Method in class peersim.util.IncrementalStats
Updates the statistics assuming element item is added k times.
add(double, int) - Method in class peersim.util.MedianStats
 
add(double, int) - Method in class peersim.util.MomentStats
 
addNeighbor(Node) - Method in class example.newscast.SimpleNewscast
 
addNeighbor(Node) - Method in class peersim.core.IdleProtocol
Adds given node if it is not already in the network.
addNeighbor(Node) - Method in interface peersim.core.Linkable
Add a neighbor to the current set of neighbors.
addNeighbor(Node) - Method in class peersim.core.OracleIdleProtocol
Unsupported operation
addNode(Object) - Method in class peersim.graph.NeighbourListGraph
If the given object is not associated with a node yet, adds a new node.
addNode(int) - Method in class peersim.graph.SubGraphEdges
Adds given node to subgraph.
addThread(ProcessHandler) - Method in class peersim.rangesim.ProcessManager
 
average - Static variable in class example.loadbalance.AvgBalance
The overall system average load.
AverageED - Class in example.edaggregation
Event driven version of epidemic averaging.
AverageED(String) - Constructor for class example.edaggregation.AverageED
 
AverageFunction - Class in example.aggregation
This class provides an implementation for the averaging function in the aggregation framework.
AverageFunction(String) - Constructor for class example.aggregation.AverageFunction
Creates a new AverageFunction protocol instance.
AverageObserver - Class in example.aggregation
Print statistics for an average aggregation computation.
AverageObserver(String) - Constructor for class example.aggregation.AverageObserver
Creates a new observer reading configuration parameters.
avg_done - Static variable in class example.loadbalance.AvgBalance
This flag indicates if the average value computation has been performed or not.
AvgBalance - Class in example.loadbalance
This class implements the advanced load balancing scheme: each node is aware of the average load of the system.
AvgBalance(String) - Constructor for class example.loadbalance.AvgBalance
Creates a new AvgBalance protocol instance.

B

BallExpansion - Class in peersim.reports
Control to observe the ball expansion, that is, the number of nodes that are accessible from a given node in at most 1, 2, etc steps.
BallExpansion(String) - Constructor for class peersim.reports.BallExpansion
Standard constructor that reads the configuration parameters.
BasicBalance - Class in example.loadbalance
This class implements a (simple) load balancing strategy: each node selects its most "distant" neighbor in terms of load difference and exchanges with it an amount of load not exceeding the BasicBalance.PAR_QUOTA parameter.
BasicBalance(String) - Constructor for class example.loadbalance.BasicBalance
Standard constructor that reads the configuration parameters.
BitMatrixGraph - Class in peersim.graph
This class implements a graph which uses a bitmatrix as inner representation of edges.
BitMatrixGraph(int) - Constructor for class peersim.graph.BitMatrixGraph
Constructs a directed graph with the given number of nodes.
BitMatrixGraph(int, boolean) - Constructor for class peersim.graph.BitMatrixGraph
Constructs an graph with the given number of nodes.
BLACK - Static variable in class peersim.graph.GraphAlgorithms
 

C

CDProtocol - Interface in peersim.cdsim
Defines cycle driven protocols, that is, protocols that have a periodic activity in regular time intervals.
CDScheduler - Class in peersim.edsim
Schedules the first execution of the cycle based protocol instances in the event driven engine.
CDScheduler(String) - Constructor for class peersim.edsim.CDScheduler
Initialization based on configuration parameters.
CDSIM - Static variable in class peersim.config.CheckConfig
CDSimulator
CDSIM - Static variable in class peersim.Simulator
CDSimulator
CDSimulator - Class in peersim.cdsim
This is the cycle driven simulation engine.
CDState - Class in peersim.cdsim
This is the common state of a cycle driven simulation that all objects see.
center - Variable in class peersim.dynamics.StarNI
Used as center: nodes will link to this node.
CheckConfig - Class in peersim.config
This is utility tool that checks whether a config file can be loaded or not, without actually performing the simulation.
CheckConfig() - Constructor for class peersim.config.CheckConfig
 
Cleanable - Interface in peersim.core
This interface must be implemented by protocols that need to release some references when the fail state of their host node is set to Fallible.DEAD.
clearEdge(int, int) - Method in class peersim.core.OverlayGraph
Not supported
clearEdge(int, int) - Method in class peersim.graph.BitMatrixGraph
 
clearEdge(int, int) - Method in class peersim.graph.ConstUndirGraph
not supported
clearEdge(int, int) - Method in interface peersim.graph.Graph
Removes given edge, returns true if it existed before.
clearEdge(int, int) - Method in class peersim.graph.NeighbourListGraph
 
clearEdge(int, int) - Method in class peersim.graph.PrefixSubGraph
not supported
clearEdge(int, int) - Method in class peersim.graph.SubGraphEdges
not supported
clearEdge(int, int) - Method in class peersim.graph.UndirectedGraph
not supported
clone() - Method in class example.hot.InetCoordinates
 
clone() - Method in class example.newscast.SimpleNewscast
 
clone() - Method in class peersim.cdsim.DaemonProtocol
 
clone() - Method in class peersim.core.GeneralNode
 
clone() - Method in class peersim.core.IdleProtocol
 
clone() - Method in interface peersim.core.Node
Clones the node.
clone() - Method in class peersim.core.OracleIdleProtocol
Returns this to maximize memory saving.
clone() - Method in interface peersim.core.Protocol
Returns a clone of the protocol.
clone() - Method in class peersim.edsim.NextCycleEvent
Returns a clone of the object.
clone() - Method in class peersim.edsim.RandNextCycle
Calls super.clone().
clone() - Method in class peersim.edsim.RegRandNextCycle
Calls super.clone().
clone() - Method in class peersim.transport.E2ETransport
Clones the object.
clone() - Method in class peersim.transport.UniformRandomTransport
Returns this.
clone() - Method in class peersim.transport.UnreliableTransport
Returns this.
clone() - Method in class peersim.util.IncrementalFreq
 
clone() - Method in class peersim.vector.SingleValueHolder
Clones the value holder.
cluster - Variable in class peersim.graph.GraphAlgorithms
output of some algorithms is passed here
clustering(Graph, int) - Static method in class peersim.graph.GraphAlgorithms
Calculates the clustering coefficient for the given node in the given graph.
Clustering - Class in peersim.reports
Control to observe the clustering coefficient.
Clustering(String) - Constructor for class peersim.reports.Clustering
Standard constructor that reads the configuration parameters.
color - Variable in class peersim.graph.GraphAlgorithms
output of some algorithms is passed here
CommonState - Class in peersim.core
This is the common state of the simulation all objects see.
CommonState() - Constructor for class peersim.core.CommonState
Does nothing.
compare(Number, Number) - Method in class peersim.config.Operators
 
compare(Object, Object) - Method in class peersim.vector.SingleValueComparator
Compares the values of two protocols.
compare(Object, Object) - Method in class peersim.vector.VectorComparator
 
ConfigContainer - Class in peersim.config
This class is the container for the configuration data used in Configuration; see that class for more information.
ConfigContainer(Properties, boolean) - Constructor for class peersim.config.ConfigContainer
 
ConfigProperties - Class in peersim.config
Class for handling configuration files.
ConfigProperties() - Constructor for class peersim.config.ConfigProperties
Calls super constructor.
ConfigProperties(String[], String) - Constructor for class peersim.config.ConfigProperties
Constructs a ConfigProperty object from a parameter list.
ConfigProperties(String) - Constructor for class peersim.config.ConfigProperties
Constructs a ConfigProperty object by loading a file by calling ConfigProperties.load(java.lang.String).
ConfigProperties(Properties) - Constructor for class peersim.config.ConfigProperties
Calls super constructor.
ConfigProperties(String[]) - Constructor for class peersim.config.ConfigProperties
Calls ConfigProperties.ConfigProperties(String[],String) with resource set to null.
Configuration - Class in peersim.config
Fully static class to store configuration information.
ConnectivityObserver - Class in peersim.reports
Reports statistics about connectivity properties of the network, such as weakly or strongly connected clusters.
ConnectivityObserver(String) - Constructor for class peersim.reports.ConnectivityObserver
Standard constructor that reads the configuration parameters.
ConstUndirGraph - Class in peersim.graph
This class is an adaptor making any Graph an undirected graph by making its edges bidirectional.
ConstUndirGraph(Graph) - Constructor for class peersim.graph.ConstUndirGraph
Initialization based on given graph.
contains(Node) - Method in class example.newscast.SimpleNewscast
 
contains(String) - Method in class peersim.config.ConfigContainer
 
contains(String) - Static method in class peersim.config.Configuration
 
contains(Node) - Method in class peersim.core.IdleProtocol
 
contains(Node) - Method in interface peersim.core.Linkable
Returns true if the given node is a member of the neighbor set.
contains(Node) - Method in class peersim.core.OracleIdleProtocol
This is an expensive operation, should not be used at all.
Control - Interface in peersim.core
Generic interface for classes that are responsible for observing or modifying the ongoing simulation.

D

d - Variable in class peersim.graph.GraphAlgorithms
output of some algorithms is passed here
DaemonProtocol - Class in peersim.cdsim
A protocol that is not really a protocol, but a trick to carry out all kinds of tasks during the simulation.
DaemonProtocol(String) - Constructor for class peersim.cdsim.DaemonProtocol
 
DEAD - Static variable in interface peersim.core.Fallible
Fail state indicating that the object is dead and recovery is not possible.
DEFAULT_MAXDEPTH - Static variable in class peersim.config.Configuration
Default max depth limit to avoid recursive definitions
degree() - Method in class example.newscast.SimpleNewscast
Might be less than cache size.
degree() - Method in class peersim.core.IdleProtocol
 
degree() - Method in interface peersim.core.Linkable
Returns the size of the neighbor list.
degree() - Method in class peersim.core.OracleIdleProtocol
 
degree(int) - Method in class peersim.core.OverlayGraph
Returns number of neighbors that are up.
degree(int) - Method in class peersim.graph.BitMatrixGraph
 
degree(int) - Method in class peersim.graph.ConstUndirGraph
 
degree(int) - Method in interface peersim.graph.Graph
Returns the degree of the given node.
degree(int) - Method in class peersim.graph.NeighbourListGraph
 
degree(int) - Method in class peersim.graph.PrefixSubGraph
 
degree(int) - Method in class peersim.graph.SubGraphEdges
 
degree(int) - Method in class peersim.graph.UndirectedGraph
 
DegreeStats - Class in peersim.reports
Prints several statistics about the node degrees in the graph.
DegreeStats(String) - Constructor for class peersim.reports.DegreeStats
Standard constructor that reads the configuration parameters.
directed() - Method in class peersim.core.OverlayGraph
Returns always true
directed() - Method in class peersim.graph.BitMatrixGraph
 
directed() - Method in class peersim.graph.ConstUndirGraph
 
directed() - Method in interface peersim.graph.Graph
Returns true if the graph is directed otherwise false.
directed() - Method in class peersim.graph.NeighbourListGraph
 
directed() - Method in class peersim.graph.PrefixSubGraph
 
directed() - Method in class peersim.graph.SubGraphEdges
 
directed() - Method in class peersim.graph.UndirectedGraph
 
dist(Graph, int) - Method in class peersim.graph.GraphAlgorithms
In GraphAlgorithms.d[j] returns the length of the shortest path between i and j.
div(Number, Number) - Method in class peersim.config.Operators
 
doStop() - Method in interface peersim.rangesim.ProcessHandler
Stop the external process managed by this object.
doStop() - Method in class peersim.rangesim.RangeSimulator
Stop the process executing the external java virtual machine.
doTransfer(BasicBalance) - Method in class example.loadbalance.BasicBalance
Performs the actual load exchange selecting to make a PUSH or PULL approach.
DOWN - Static variable in interface peersim.core.Fallible
Fail state indicating that the object is not dead, but is temporarily not accessible.
DynamicNetwork - Class in peersim.dynamics
This Control can change the size of networks by adding and removing nodes.
DynamicNetwork(String) - Constructor for class peersim.dynamics.DynamicNetwork
Standard constructor that reads the configuration parameters.

E

E2ENetwork - Class in peersim.transport
This static singleton emulates an underlying router network of fixed size, and stores the latency measurements for all pairs of routers.
E2ETransport - Class in peersim.transport
This transport protocol is based on the E2ENetwork class.
E2ETransport(String) - Constructor for class peersim.transport.E2ETransport
Reads configuration parameters.
EDProtocol<T> - Interface in peersim.edsim
The interface to be implemented by protocols run under the event-driven model.
EDSIM - Static variable in class peersim.config.CheckConfig
EDSimulator
EDSIM - Static variable in class peersim.Simulator
EDSimulator
EDSimulator - Class in peersim.edsim
Event-driven simulator engine.
equals(Number, Number) - Method in class peersim.config.Operators
 
equals(Object) - Method in class peersim.util.IncrementalFreq
Tests equality between two IncrementalFreq instances.
event - Variable in class peersim.edsim.PriorityQ.Event
 
example.aggregation - package example.aggregation
Aggregation example described in Peersim tutorial 1.
example.edaggregation - package example.edaggregation
Event driven aggregation example described in Peersim tutorial 3.
example.hot - package example.hot
Topology generator example described in Peersim tutorial 2.
example.loadbalance - package example.loadbalance
Load balancing example described in Peersim tutorial 1.
example.newscast - package example.newscast
Newscast code needed by the aggregation and load-balancing examples described in Peersim tutorial 1.
execute() - Method in class example.aggregation.AverageObserver
Print statistics for an average aggregation computation.
execute() - Method in class example.aggregation.PeakDistributionInitializer
Initialize an aggregation protocol using a peak distribution.
execute() - Method in class example.hot.InetInitializer
Initialize the node coordinates.
execute() - Method in class example.hot.InetObserver
 
execute() - Method in class example.loadbalance.LBObserver
 
execute() - Method in class example.loadbalance.LinearDistributionInitializer
This class provides a simple linear distribution in a bounded interval defined by parameters LinearDistributionInitializer.PAR_MIN and LinearDistributionInitializer.PAR_MAX.
execute() - Method in class example.loadbalance.QuotaObserver
 
execute() - Method in class example.loadbalance.ResetQuota
 
execute() - Method in class peersim.cdsim.FullNextCycle
Execute all the CDProtocols on all nodes that are up.
execute() - Method in class peersim.cdsim.NextCycle
Execute the configured protocols on all nodes.
execute() - Method in class peersim.cdsim.Shuffle
Calls Network.shuffle().
execute() - Method in interface peersim.core.Control
Performs arbitrary modifications or reports arbitrary information over the components.
execute() - Method in class peersim.dynamics.DynamicNetwork
Calls DynamicNetwork.add(int) or DynamicNetwork.remove(int) with the parameters defined by the configuration.
execute() - Method in class peersim.dynamics.MethodInvoker
Invokes method on all the nodes.
execute() - Method in class peersim.dynamics.OscillatingNetwork
Takes the current time and sets the network size according to a periodic function of time.
execute() - Method in class peersim.dynamics.WireGraph
Calls method WireGraph.wire(peersim.graph.Graph) with the graph WireGraph.g, or if null, on the overlay specified by the protocol given by config parameter "protocol".
execute() - Method in class peersim.edsim.CDScheduler
Schedules the protocol at all nodes for the first execution adding it to the priority queue of the event driven simulation.
execute() - Method in class peersim.edsim.NextCycleEvent
Executes the nextCycle method of the protocol, and schedules the next call using the delay returned by NextCycleEvent.nextDelay(long).
execute() - Method in class peersim.reports.BallExpansion
Prints information about ball expansion.
execute() - Method in class peersim.reports.Clustering
Prints information about the clustering coefficient.
execute() - Method in class peersim.reports.ConnectivityObserver
Prints information about clusters.
execute() - Method in class peersim.reports.DegreeStats
Prints statistics about node degree.
execute() - Method in class peersim.reports.GraphPrinter
Saves the graph according to the specifications in the configuration.
execute() - Method in class peersim.reports.GraphStats
Returns statistics over minimal path length and clustering.
execute() - Method in class peersim.reports.MemoryObserver
 
execute() - Method in class peersim.reports.RandRemoval
Prints results of node removal tests.
execute() - Method in class peersim.transport.KingParser
Initializes static singleton E2ENetwork by reading a king data set.
execute() - Method in class peersim.transport.TriangularMatrixParser
Initializes static singleton E2ENetwork by reading a king data set.
execute() - Method in class peersim.transport.UniformRouterAssignment
Initializes given RouterInfo protocol layer by assigning routers randomly.
execute() - Method in class peersim.vector.InitVectFromFile
Initializes values from a file.
execute() - Method in class peersim.vector.LinearDistribution
Initializes a protocol vector with values in the range ["min", "max"] (inclusive both ends), linearly increasing.
execute() - Method in class peersim.vector.Normalizer
Makes the sum of the absolute values (L1 norm) equal to the value given in the configuration parameter "l1".
execute() - Method in class peersim.vector.PeakDistribution
Initializes the values so that "peaks" nodes have value "value"/"peaks", the rest zero.
execute() - Method in class peersim.vector.SingleValueObserver
Print statistics over a vector.
execute() - Method in class peersim.vector.UniformDistribution
Initializes the values drawing uniform random samples from the range ["min", "max"[.
execute() - Method in class peersim.vector.ValueDumper
Dump the content of a vector in a file.
execute() - Method in class peersim.vector.VectAngle
Observes the cosine angle between two vectors.
execute() - Method in class peersim.vector.VectCopy
Sets values in a protocol vector by copying the values of another protocol vector.
execute() - Method in class peersim.vector.VectorObserver
Prints statistics information about a vector.
ext - Variable in class peersim.util.FileNameGenerator
The extension of the filename
ExtendedRandom - Class in peersim.util
Extends the functionality of java.util.Random.
ExtendedRandom(long) - Constructor for class peersim.util.ExtendedRandom
Calls super constructor.

F

failstate - Variable in class peersim.core.GeneralNode
The fail state of the node.
Fallible - Interface in peersim.core
Instances of classes implementing this interface maintain a fail state, i.e. information about the availability of the object.
FastConfig - Class in peersim.config
Reads configuration regarding relations between protocols.
FastUndirGraph - Class in peersim.graph
Speeds up ConstUndirGraph.isEdge(int, int) by storing the links in an adjacency matrix (in fact in a triangle).
FastUndirGraph(Graph) - Constructor for class peersim.graph.FastUndirGraph
Calls super constructor
FileNameGenerator - Class in peersim.util
Generates a series of filenames for classes that have to save e.g.
FileNameGenerator(String, String) - Constructor for class peersim.util.FileNameGenerator
 
fin - Variable in class peersim.core.Scheduler
 
firstDelay(long) - Method in class peersim.edsim.CDScheduler
Returns the time (through giving the delay from the current time) when this even is first executed.
flooding(Graph, int[], int) - Method in class peersim.graph.GraphAlgorithms
Performs flooding from given node.
from - Variable in class peersim.core.Scheduler
 
fullDegree(int) - Method in class peersim.core.OverlayGraph
Returns number of neighbors that are either up or down.
FullNextCycle - Class in peersim.cdsim
Control to run a cycle of the cycle driven simulation.
FullNextCycle(String) - Constructor for class peersim.cdsim.FullNextCycle
Reads config parameters and Schedulers.
fvalue - Variable in class peersim.vector.TestVectors
Value held by this protocol

G

g - Variable in class peersim.dynamics.WireGraph
If set (not null), this is the graph to wire.
g - Variable in class peersim.graph.ConstUndirGraph
 
g - Variable in class peersim.reports.GraphObserver
 
ga - Variable in class peersim.reports.GraphObserver
 
GeneralNode - Class in peersim.core
This is the default Node class that is used to compose the Network.
GeneralNode(String) - Constructor for class peersim.core.GeneralNode
Used to construct the prototype node.
get(int) - Static method in class peersim.core.Network
Returns node with the given index.
get(int) - Method in class peersim.util.RandPermutation
Returns the ith element of the permutation set by RandPermutation.setPermutation(int).
get(Node) - Method in class peersim.vector.Getter
Gets the given value as a Number.
get(int) - Method in class peersim.vector.Getter
Gets the given value as a Number.
getAverage() - Method in class peersim.util.IncrementalStats
The average of the data items
getBoolean(String, boolean) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getBoolean(String) - Method in class peersim.config.ConfigContainer
Reads given property.
getBoolean(String, boolean) - Static method in class peersim.config.Configuration
Reads given configuration property.
getBoolean(String) - Static method in class peersim.config.Configuration
Reads given property.
getCapacity() - Static method in class peersim.core.Network
Returns the maximal number of nodes that can be stored without reallocating the underlying array to increase capacity.
getClass(String) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getClass(String, Class) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getClass(String) - Static method in class peersim.config.Configuration
Reads given configuration property.
getClass(String, Class) - Static method in class peersim.config.Configuration
Reads given configuration property.
getCycle() - Static method in class peersim.cdsim.CDState
Returns the current cycle.
getCycleObj() - Static method in class peersim.cdsim.CDState
Returns current cycle as an Integer object.
getCycleT() - Static method in class peersim.cdsim.CDState
Returns the current time within the current cycle.
getDouble(String, double) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getDouble(String) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getDouble(String, double) - Static method in class peersim.config.Configuration
Reads given configuration property.
getDouble(String) - Static method in class peersim.config.Configuration
Reads given configuration property.
getDouble(Node) - Method in class peersim.vector.Getter
Gets the given real value.
getDouble(int) - Method in class peersim.vector.Getter
Gets the given real value.
getEdge(int, int) - Method in class peersim.core.OverlayGraph
Returns null always
getEdge(int, int) - Method in class peersim.graph.BitMatrixGraph
Returns null always.
getEdge(int, int) - Method in class peersim.graph.ConstUndirGraph
If there is an (i,j) edge, returns that, otherwise if there is a (j,i) edge, returns that, otherwise returns null.
getEdge(int, int) - Method in interface peersim.graph.Graph
Returns the edge object associated with the index.
getEdge(int, int) - Method in class peersim.graph.NeighbourListGraph
Returns null always.
getEdge(int, int) - Method in class peersim.graph.PrefixSubGraph
Returns the edge in the original graph if both i and j are smaller than size().
getEdge(int, int) - Method in class peersim.graph.SubGraphEdges
If both i and j are within the node set of the subgraph and the original graph has an (i,j) edge, returns that edge.
getEdge(int, int) - Method in class peersim.graph.UndirectedGraph
If there is an (i,j) edge, returns that, otherwise if there is a (j,i) edge, returns that, otherwise returns null.
getEndTime() - Static method in class peersim.core.CommonState
Returns endtime.
getFailState() - Method in interface peersim.core.Fallible
Returns the state of this object.
getFailState() - Method in class peersim.core.GeneralNode
 
getFreq(int) - Method in class peersim.util.IncrementalFreq
Returns the number of occurrences of the given integer.
getFValue() - Method in class peersim.vector.TestVectors
 
getID() - Method in class peersim.core.GeneralNode
Returns the ID of this node.
getID() - Method in interface peersim.core.Node
Returns the unique ID of the node.
getIndex() - Method in class peersim.core.GeneralNode
 
getIndex() - Method in interface peersim.core.Node
Returns the index of this node.
getInstance(String) - Method in class peersim.config.ConfigContainer
Reads given configuration property for a class name.
getInstance(String, Object) - Method in class peersim.config.ConfigContainer
Reads given configuration property for a class name.
getInstance(String) - Static method in class peersim.config.Configuration
Reads given configuration property for a class name.
getInstance(String, Object) - Static method in class peersim.config.Configuration
Reads given configuration property for a class name.
getInstanceArray(String) - Method in class peersim.config.ConfigContainer
It returns an array of class instances.
getInstanceArray(String) - Static method in class peersim.config.Configuration
It returns an array of class instances.
getInt(String, int) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getInt(String) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getInt(String, int) - Static method in class peersim.config.Configuration
Reads given configuration property.
getInt(String) - Static method in class peersim.config.Configuration
Reads given configuration property.
getIntTime() - Static method in class peersim.core.CommonState
Returns current time in integer format.
getInverse(Number) - Method in class peersim.config.Operators
 
getIValue() - Method in class peersim.vector.TestVectors
 
getKurtosis() - Method in class peersim.util.MomentStats
Computes the kurtosis on the node values distribution and returns the flatness coefficient.
getLastSeed() - Method in class peersim.util.ExtendedRandom
Returns the last random seed that was set explicitly.
getLatency(int, int) - Static method in class peersim.transport.E2ENetwork
Returns the latency associated to the specified (sender, receiver) pair.
getLatency(Node, Node) - Method in class peersim.transport.E2ETransport
Calculates latency using the static singleton E2ENetwork.
getLatency(Node, Node) - Method in interface peersim.transport.Transport
Return a latency estimate from node src to protocol pid of node dst.
getLatency(Node, Node) - Method in class peersim.transport.UniformRandomTransport
Returns a random delay, that is drawn from the configured interval according to the uniform distribution.
getLatency(Node, Node) - Method in class peersim.transport.UnreliableTransport
Returns the latency of the underlying protocol.
getLinkable(int, int) - Static method in class peersim.config.FastConfig
Returns the protocol id of the linkIndex-th linkable used by the protocol identified by pid.
getLinkable(int) - Static method in class peersim.config.FastConfig
Invokes getLinkable(pid, 0).
getLong(String, long) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getLong(String) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getLong(String, long) - Static method in class peersim.config.Configuration
Reads given configuration property.
getLong(String) - Static method in class peersim.config.Configuration
Reads given configuration property.
getLong(Node) - Method in class peersim.vector.Getter
Gets the given integer value.
getLong(int) - Method in class peersim.vector.Getter
Gets the given integer value.
getLValue() - Method in class peersim.vector.TestVectors
 
getMax() - Method in class peersim.util.IncrementalStats
The maximum of the data items
getMaxCount() - Method in class peersim.util.IncrementalStats
Returns the number of data items whose value equals the maximum.
getMedian() - Method in class peersim.util.MedianStats
Retrieves the median in the current data collection.
getMessage() - Method in exception peersim.config.IllegalParameterException
Extends message with info from stack trace.
getMessage() - Method in exception peersim.config.MissingParameterException
Extends message with info from stack trace.
getMin() - Method in class peersim.util.IncrementalStats
The minimum of the data items
getMinCount() - Method in class peersim.util.IncrementalStats
Returns the number of data items whose value equals the minimum.
getN() - Method in class peersim.util.IncrementalFreq
Returns number of processed data items.
getN() - Method in class peersim.util.IncrementalStats
The number of data items processed so far
getNames(String) - Method in class peersim.config.ConfigContainer
Returns an array of names prefixed by the specified name.
getNames(String) - Static method in class peersim.config.Configuration
Returns an array of names prefixed by the specified name.
getNeighbor(int) - Method in class example.newscast.SimpleNewscast
Does not check if the index is out of bound (larger than degree())
getNeighbor(int) - Method in class peersim.core.IdleProtocol
 
getNeighbor(int) - Method in interface peersim.core.Linkable
Returns the neighbor with the given index.
getNeighbor(int) - Method in class peersim.core.OracleIdleProtocol
The neighborhood contains the node itself, ie it contains the loop edge.
getNeighbours(int) - Method in class peersim.core.OverlayGraph
Returns those neighbors that are up.
getNeighbours(int) - Method in class peersim.graph.BitMatrixGraph
 
getNeighbours(int) - Method in class peersim.graph.ConstUndirGraph
Uses sets as collection so does not support multiple edges now, even if the underlying directed graph does.
getNeighbours(int) - Method in interface peersim.graph.Graph
Returns a collection view to all outgoing edges from i.
getNeighbours(int) - Method in class peersim.graph.NeighbourListGraph
 
getNeighbours(int) - Method in class peersim.graph.PrefixSubGraph
 
getNeighbours(int) - Method in class peersim.graph.SubGraphEdges
 
getNeighbours(int) - Method in class peersim.graph.UndirectedGraph
Uses sets as collection so does not support multiple edges now, even if the underlying directed graph does.
getNext() - Method in class peersim.core.Scheduler
Returns the next time point.
getNode() - Static method in class peersim.core.CommonState
Returns the current node.
getNode(int) - Method in class peersim.core.OverlayGraph
Returns Network.node[i]
getNode(int) - Method in class peersim.graph.BitMatrixGraph
Returns null always
getNode(int) - Method in class peersim.graph.ConstUndirGraph
Returns the node from the underlying graph
getNode(int) - Method in interface peersim.graph.Graph
Returns the node object associated with the index.
getNode(int) - Method in class peersim.graph.NeighbourListGraph
If the graph was gradually grown using NeighbourListGraph.addNode(java.lang.Object), returns the object associated with the node, otherwise null
getNode(int) - Method in class peersim.graph.PrefixSubGraph
 
getNode(int) - Method in class peersim.graph.SubGraphEdges
 
getNode(int) - Method in class peersim.graph.UndirectedGraph
 
getONE() - Method in class peersim.config.Operators
 
getpair_rand - Variable in class peersim.cdsim.FullNextCycle
 
getPhase() - Static method in class peersim.core.CommonState
Returns the simulation phase.
getPid(String) - Method in class peersim.config.ConfigContainer
Reads the given property from the configuration interpreting it as a protocol name.
getPid(String, int) - Method in class peersim.config.ConfigContainer
Calls ConfigContainer.getPid(String), and returns the default if no property is defined with the given name.
getPid(String) - Static method in class peersim.config.Configuration
Reads the given property from the configuration interpreting it as a protocol name.
getPid(String, int) - Static method in class peersim.config.Configuration
Calls Configuration.getPid(String), and returns the default if no property is defined with the given name.
getPid() - Static method in class peersim.core.CommonState
Returns the current protocol identifier.
getProtocol(int) - Method in class peersim.core.GeneralNode
 
getProtocol(int) - Method in interface peersim.core.Node
Returns the i-th protocol in this node.
getRouter() - Method in class peersim.transport.E2ETransport
 
getRouter() - Method in interface peersim.transport.RouterInfo
 
getShortMessage() - Method in exception peersim.config.IllegalParameterException
Returns the exception message without stack trace information
getShortMessage() - Method in exception peersim.config.MissingParameterException
Returns the exception message without stack trace information
getSimID() - Static method in class peersim.config.CheckConfig
Returns the numeric id of the simulator to invoke.
getSimID() - Static method in class peersim.Simulator
Returns the numeric id of the simulator to invoke.
getSize() - Static method in class peersim.transport.E2ENetwork
Returns the current size of the underlying network (i.e., the number of routers).
getSkewness() - Method in class peersim.util.MomentStats
Computes the skewness on the node values distribution and returns the asymmetry coefficient.
getSqrSum() - Method in class peersim.util.IncrementalStats
The sum of the squares of the data items
getStD() - Method in class peersim.util.IncrementalStats
the empirical standard deviation of the data items
getString(String, String) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getString(String) - Method in class peersim.config.ConfigContainer
Reads given configuration property.
getString(String, String) - Static method in class peersim.config.Configuration
Reads given configuration property.
getString(String) - Static method in class peersim.config.Configuration
Reads given configuration property.
getSum() - Method in class peersim.util.IncrementalStats
The sum of the data items
Getter - Class in peersim.vector
Vectors can be written through this class.
Getter(String, String, String) - Constructor for class peersim.vector.Getter
Constructs a Getter class based on the configuration.
getter - Variable in class peersim.vector.VectControl
The getter to be used to read a vector.
getTime() - Static method in class peersim.core.CommonState
Returns current time.
getTransport(int) - Static method in class peersim.config.FastConfig
Returns the id of the transport protocol used by the protocol identified by pid.
getType() - Method in class peersim.vector.Getter
 
getType() - Method in class peersim.vector.Setter
 
getValue() - Method in interface peersim.vector.SingleValue
Returns the value of the parameter hold by the implementor of this interface.
getValue() - Method in class peersim.vector.SingleValueHolder
 
getVar() - Method in class peersim.util.IncrementalStats
The empirical variance of the data items.
getX() - Method in class example.hot.InetCoordinates
 
getY() - Method in class example.hot.InetCoordinates
 
getZERO() - Method in class peersim.config.Operators
 
Graph - Interface in peersim.graph
A general graph interface.
GraphAlgorithms - Class in peersim.graph
Implements graph algorithms.
GraphAlgorithms() - Constructor for class peersim.graph.GraphAlgorithms
 
GraphFactory - Class in peersim.graph
Contains static methods for wiring certain kinds of graphs.
GraphIO - Class in peersim.graph
Implements static methods to load and write graphs.
GraphObserver - Class in peersim.reports
Class that provides functionality for observing graphs.
GraphObserver(String) - Constructor for class peersim.reports.GraphObserver
Standard constructor that reads the configuration parameters.
GraphPrinter - Class in peersim.reports
Prints the whole graph in a given format.
GraphPrinter(String) - Constructor for class peersim.reports.GraphPrinter
Standard constructor that reads the configuration parameters.
GraphStats - Class in peersim.reports
Prints reports on the graph like average clustering and average path length, based on random sampling of the nodes.
GraphStats(String) - Constructor for class peersim.reports.GraphStats
Standard constructor that reads the configuration parameters.
GREY - Static variable in class peersim.graph.GraphAlgorithms
 

H

hashCode() - Method in class peersim.core.GeneralNode
Implemented as (int)getID().
hashCode() - Method in class peersim.util.IncrementalFreq
Hashcode (consistent with IncrementalFreq.equals(java.lang.Object)).
hasLinkable(int) - Static method in class peersim.config.FastConfig
Returns true if the given protocol has at least one linkable protocol associated with it, otherwise false.
hasNext() - Method in interface peersim.util.IndexIterator
Returns true if IndexIterator.next() can be called at least one more time.
hasNext() - Method in class peersim.util.LinearIterator
 
hasNext() - Method in class peersim.util.RandPermutation
 
hasNext() - Method in class peersim.util.WeightedRandPerm
 
hasTransport(int) - Static method in class peersim.config.FastConfig
Returns true if the given protocol has a transport protocol associated with it, otherwise false.
Heap - Class in peersim.edsim
The Heap data structure used to maintain events "sorted" by scheduled time and to obtain the next event to be executed.
Heap() - Constructor for class peersim.edsim.Heap
Initializes a new heap using defaults.
Heap(String) - Constructor for class peersim.edsim.Heap
Initializes a new heap using the configuration.

I

IdleProtocol - Class in peersim.core
A protocol that stores links.
IdleProtocol(String) - Constructor for class peersim.core.IdleProtocol
 
IllegalParameterException - Exception in peersim.config
Exception thrown to indicate that a configuration property has an invalid value.
IllegalParameterException(String, String) - Constructor for exception peersim.config.IllegalParameterException
Calls super constructor.
in - Variable in class peersim.graph.ConstUndirGraph
 
IncrementalFreq - Class in peersim.util
A class that can collect frequency information on integer input.
IncrementalFreq(int) - Constructor for class peersim.util.IncrementalFreq
 
IncrementalFreq() - Constructor for class peersim.util.IncrementalFreq
Calls this(-1), that is, no values will be ignored.
IncrementalStats - Class in peersim.util
A class that can keep track of some statistics like variance, average, min, max incrementally.
IncrementalStats() - Constructor for class peersim.util.IncrementalStats
Calls IncrementalStats.reset().
IndexIterator - Interface in peersim.util
This class provides iterations over the set of integers [0...k-1].
InetCoordinates - Class in example.hot
This class does nothing.
InetCoordinates(String) - Constructor for class example.hot.InetCoordinates
Standard constructor that reads the configuration parameters.
InetInitializer - Class in example.hot
This initialization class collects the simulation parameters from the config file and generates uniformly random 2D-coordinates for each node.
InetInitializer(String) - Constructor for class example.hot.InetInitializer
Standard constructor that reads the configuration parameters.
InetObserver - Class in example.hot
This class prints to files the topology wiring using a Gnuplot friendly syntax.
InetObserver(String) - Constructor for class example.hot.InetObserver
Standard constructor that reads the configuration parameters.
initGraph() - Method in class peersim.graph.ConstUndirGraph
Finds and stores incoming edges
initGraph() - Method in class peersim.graph.FastUndirGraph
 
initialize(Node) - Method in class peersim.dynamics.MethodInvoker
Invokes method on given node.
initialize(Node) - Method in interface peersim.dynamics.NodeInitializer
Performs arbitrary initializations on the given node.
initialize(Node) - Method in class peersim.dynamics.RandNI
Takes "k" random samples with replacement from the nodes of the overlay network.
initialize(Node) - Method in class peersim.dynamics.StarNI
Adds a link to a fixed node, the center.
initialize(Node) - Method in class peersim.edsim.CDScheduler
Schedules the protocol at given node for the first execution adding it to the priority queue of the event driven simulation.
initialize(Node) - Method in class peersim.vector.UniformDistribution
Initializes the value drawing a uniform random sample from the range ["min", "max"[.
initialize(Node) - Method in class peersim.vector.VectCopy
Sets the value by copying the value of another protocol.
initializeRandom(long) - Static method in class peersim.core.CommonState
 
inits - Variable in class peersim.dynamics.DynamicNetwork
node initializers to apply on the newly added nodes
InitVectFromFile - Class in peersim.vector
Initializes a protocol vector from data read from a file.
InitVectFromFile(String) - Constructor for class peersim.vector.InitVectFromFile
Standard constructor that reads the configuration parameters.
isCD() - Static method in class peersim.cdsim.CDState
Returns true if and only if there is a cycle driven simulation going on.
isConfigurationCycleDriven() - Static method in class peersim.cdsim.CDSimulator
This method is used to check whether the current configuration can be used for cycle-driven simulations.
isConfigurationEventDriven() - Static method in class peersim.edsim.EDSimulator
This method is used to check whether the current configuration can be used for event driven simulations.
isEdge(int, int) - Method in class peersim.core.OverlayGraph
 
isEdge(int, int) - Method in class peersim.graph.BitMatrixGraph
 
isEdge(int, int) - Method in class peersim.graph.ConstUndirGraph
 
isEdge(int, int) - Method in class peersim.graph.FastUndirGraph
 
isEdge(int, int) - Method in interface peersim.graph.Graph
Returns true if there is a directed edge between node i and node j.
isEdge(int, int) - Method in class peersim.graph.NeighbourListGraph
 
isEdge(int, int) - Method in class peersim.graph.PrefixSubGraph
 
isEdge(int, int) - Method in class peersim.graph.SubGraphEdges
 
isEdge(int, int) - Method in class peersim.graph.UndirectedGraph
 
isInteger() - Method in class peersim.vector.Setter
 
isUp() - Method in interface peersim.core.Fallible
Convenience method to check if the node is up and running
isUp() - Method in class peersim.core.GeneralNode
 
ivalue - Variable in class peersim.vector.TestVectors
Value held by this protocol

J

join() - Method in interface peersim.rangesim.ProcessHandler
Wait until the process has terminated.
join() - Method in class peersim.rangesim.RangeSimulator
Wait until the java virtual machine has terminated; it won't be used in this class, but you never know.
joinAll() - Method in class peersim.rangesim.ProcessManager
Assumes that the process manager

K

KingParser - Class in peersim.transport
Initializes static singleton E2ENetwork by reading a king data set.
KingParser(String) - Constructor for class peersim.transport.KingParser
Read the configuration parameters.

L

LBObserver - Class in example.loadbalance
This class monitors the state of the load balancing process at each cycle.
LBObserver(String) - Constructor for class example.loadbalance.LBObserver
Standard constructor that reads the configuration parameters.
len - Variable in class peersim.core.IdleProtocol
Actual number of neighbors in the array
LinearDistribution - Class in peersim.vector
Initializes a protocol vector with values in the range ["min", "max"] (inclusive both ends), linearly increasing.
LinearDistribution(String) - Constructor for class peersim.vector.LinearDistribution
Standard constructor that reads the configuration parameters.
LinearDistributionInitializer - Class in example.loadbalance
This class provides a simple linear distribution in a bounded interval defined by LinearDistributionInitializer.PAR_MIN and LinearDistributionInitializer.PAR_MAX parameters.
LinearDistributionInitializer(String) - Constructor for class example.loadbalance.LinearDistributionInitializer
Standard constructor that reads the configuration parameters.
LinearIterator - Class in peersim.util
This class gives the linear order 0,1,etc or alternatively k-1, k-2, etc., depending on the constructor.
LinearIterator() - Constructor for class peersim.util.LinearIterator
Construct an iterator for an empty set of numbers.
LinearIterator(boolean) - Constructor for class peersim.util.LinearIterator
Construct an interator for an empty set of numbers.
Linkable - Interface in peersim.core
Instances of classes implementing this interface can form networks (graphs) in the simulator framework.
links - Static variable in class peersim.config.FastConfig
This array stores the protocol ids of the Linkable protocols that are linked to the protocol given by the array index.
load(String) - Method in class peersim.config.ConfigProperties
Loads given file.
load(String) - Method in class peersim.config.ParsedProperties
Loads given file.
loadPropertyString(String) - Method in class peersim.config.ConfigProperties
Appends a property defined in the given string.
loadSystemResource(String) - Method in class peersim.config.ConfigProperties
Adds the properties from the given property file.
lookupPid(String) - Method in class peersim.config.ConfigContainer
Returns the numeric protocol identifier of the given protocol name.
lookupPid(int) - Method in class peersim.config.ConfigContainer
Returns the name of a protocol that has the given identifier.
lookupPid(String) - Static method in class peersim.config.Configuration
Returns the numeric protocol identifier of the given protocol name.
lookupPid(int) - Static method in class peersim.config.Configuration
Returns the name of a protocol that has the given identifier.
lvalue - Variable in class peersim.vector.TestVectors
Value held by this protocol

M

main(String[]) - Static method in class peersim.config.CheckConfig
Loads the configuration and checks the configuration files against simple configuration errors, such as missing classes, missing parameters or syntax errors.
main(String[]) - Static method in class peersim.rangesim.RangeSimulator
Main method of the system.
main(String[]) - Static method in class peersim.Simulator
Loads the configuration and executes the experiments.
main(String[]) - Static method in class peersim.util.MedianStats
 
MaliciousProtocol - Interface in peersim.core
Tag interface to identify protocols that are malicious.
maxPriority() - Method in class peersim.edsim.Heap
 
maxPriority() - Method in interface peersim.edsim.PriorityQ
Maximal value of priority this interpretation can deal with.
maxsize - Variable in class peersim.dynamics.DynamicNetwork
value of "maxsize"
maxTime() - Method in class peersim.edsim.Heap
 
maxTime() - Method in interface peersim.edsim.PriorityQ
Maximal value of time this interpretation can represent.
MedianStats - Class in peersim.util
This class adds the ability to retrieve the median element to the IncrementalStats class.
MedianStats() - Constructor for class peersim.util.MedianStats
Calls MedianStats.reset().
MemoryObserver - Class in peersim.reports
This observer reports memory utilization (max, total and free, as defined by java.lang.Runtime).
MemoryObserver(String) - Constructor for class peersim.reports.MemoryObserver
Constructor to be instantiated in PeerSim.
MethodInvoker - Class in peersim.dynamics
This Control invokes a specified method on a protocol.
MethodInvoker(String) - Constructor for class peersim.dynamics.MethodInvoker
Standard constructor that reads the configuration parameters.
minsize - Variable in class peersim.dynamics.DynamicNetwork
value of "minsize"
MissingParameterException - Exception in peersim.config
Exception thrown to indicate that a configuration property is not defined.
mod(Number, Number) - Method in class peersim.config.Operators
 
ModifiableNode - Class in peersim.core
This class extends GeneralNode by allowing to modify single protocol instances at nodes.
ModifiableNode(String) - Constructor for class peersim.core.ModifiableNode
Invokes the super constructor.
MomentStats - Class in peersim.util
This class provides extended statistical informations about the inspected distribution.
MomentStats() - Constructor for class peersim.util.MomentStats
Calls MomentStats.reset()
mul(Number, Number) - Method in class peersim.config.Operators
 
multicast(Graph, int[], Random) - Static method in class peersim.graph.GraphAlgorithms
Performs anti-entropy epidemic multicasting from node 0.

N

name - Variable in class peersim.reports.GraphObserver
The name of this observer in the configuration
neighbors - Variable in class peersim.core.IdleProtocol
Neighbors
NeighbourListGraph - Class in peersim.graph
Implements a graph which uses the neighbour list representation.
NeighbourListGraph(boolean) - Constructor for class peersim.graph.NeighbourListGraph
Constructs an empty graph.
NeighbourListGraph(int, boolean) - Constructor for class peersim.graph.NeighbourListGraph
Constructs a graph with a fixed size without edges.
Network - Class in peersim.core
This class forms the basic framework of all simulations.
next - Variable in class peersim.core.Scheduler
The next scheduled time point.
next() - Method in interface peersim.util.IndexIterator
Returns next index.
next() - Method in class peersim.util.LinearIterator
Returns next index.
next() - Method in class peersim.util.RandPermutation
Next random sample without replacement
next() - Method in class peersim.util.WeightedRandPerm
The first sample is drawn according to the probability distribution defined by the (normalized) weights.
nextCounterName() - Method in class peersim.util.FileNameGenerator
Generates a name based on a counter.
nextCycle(Node, int) - Method in class example.aggregation.AverageFunction
Using an underlying Linkable protocol choses a neighbor and performs a variance reduction step.
nextCycle(Node, int) - Method in class example.edaggregation.AverageED
This is the standard method the define periodic activity.
nextCycle(Node, int) - Method in class example.loadbalance.AvgBalance
 
nextCycle(Node, int) - Method in class example.loadbalance.BasicBalance
Using an underlying Linkable protocol choses a neighbor and performs a variance reduction step.
nextCycle(Node, int) - Method in class example.newscast.SimpleNewscast
 
nextCycle(Node, int) - Method in interface peersim.cdsim.CDProtocol
A protocol which is defined by performing an algorithm in more or less regular periodic intervals.
nextCycle(Node, int) - Method in class peersim.cdsim.DaemonProtocol
Runs the configured controls if CDState.getCycleT() % "cstep"=0.
NextCycle - Class in peersim.cdsim
It generalizes its superclass so that the list of protocols to run can be specified.
NextCycle(String) - Constructor for class peersim.cdsim.NextCycle
reads configuration parameters and the Schedulers.
NextCycleEvent - Class in peersim.edsim
This class is used to wrap a CDProtocol instance into an event so that it can be used in the event based simulation engine.
NextCycleEvent(String) - Constructor for class peersim.edsim.NextCycleEvent
Reads configuration to initialize the object.
nextDelay(long) - Method in class peersim.edsim.NextCycleEvent
Calculates the delay until the next execution of the protocol.
nextDelay(long) - Method in class peersim.edsim.RandNextCycle
Returns a random delay with uniform distribution between 1 (inclusive) and 2*step (exclusive) (expected value is therefore step).
nextDelay(long) - Method in class peersim.edsim.RegRandNextCycle
Returns a random delay but making sure there is exactly one invocation in each consecutive interval of length step.
nextExperiment() - Static method in class peersim.cdsim.CDSimulator
Runs an experiment, resetting everything except the random seed.
nextExperiment() - Static method in class peersim.edsim.EDSimulator
Runs an experiment, resetting everything except the random seed.
nextLong(long) - Method in class peersim.util.ExtendedRandom
Implements nextLong(long) the same way nexInt(int) is implemented in java.util.Random.
nextPoisson(double) - Method in class peersim.util.ExtendedRandom
Extracts the next integer, according to a Poisson distribution.
Node - Interface in peersim.core
Class that represents one node with a network address.
node - Variable in class peersim.edsim.PriorityQ.Event
 
NodeInitializer - Interface in peersim.dynamics
Generic interface to initialize a node before inserting it into the simulation.
Normalizer - Class in peersim.vector
Normalizes the values of a protocol vector.
Normalizer(String) - Constructor for class peersim.vector.Normalizer
Standard constructor that reads the configuration parameters.
NullPrintStream - Class in peersim.config
A subclass of PrintStream whose methods ignore the content being written.
NullPrintStream() - Constructor for class peersim.config.NullPrintStream
Creates a null print stream that does not print anything.
numLinkables(int) - Static method in class peersim.config.FastConfig
Returns the number of linkable protocols associated with a given protocol.

O

OK - Static variable in interface peersim.core.Fallible
Fail state which indicates that the object is operating normally.
onKill() - Method in class example.newscast.SimpleNewscast
 
onKill() - Method in interface peersim.core.Cleanable
Performs cleanup when removed from the network.
onKill() - Method in class peersim.core.IdleProtocol
 
onKill() - Method in class peersim.core.OracleIdleProtocol
 
Operators - Class in peersim.config
This class implements the Group interface of JEP, enabling the configuration system to read integers with arbitrary length.
Operators() - Constructor for class peersim.config.Operators
Operations on the reals (Implemented as BigInteger).
OracleIdleProtocol - Class in peersim.core
A protocol that does nothing but knows everything.
OracleIdleProtocol(String) - Constructor for class peersim.core.OracleIdleProtocol
Does nothing
OscillatingNetwork - Class in peersim.dynamics
Makes the network size oscillate.
OscillatingNetwork(String) - Constructor for class peersim.dynamics.OscillatingNetwork
Standard constructor that reads the configuration parameters.
OverlayGraph - Class in peersim.core
This class is an adaptor which makes a Linkable protocol layer look like a graph.
OverlayGraph(int) - Constructor for class peersim.core.OverlayGraph
 
OverlayGraph(int, boolean) - Constructor for class peersim.core.OverlayGraph
 

P

pack() - Method in class example.newscast.SimpleNewscast
 
pack() - Method in class peersim.core.IdleProtocol
 
pack() - Method in interface peersim.core.Linkable
A possibility for optimization.
pack() - Method in class peersim.core.OracleIdleProtocol
 
pack - Variable in class peersim.dynamics.StarNI
If true, method pack() is invoked on the initialized protocol
PAR_CYCLES - Static variable in class peersim.cdsim.CDSimulator
Parameter representing the maximum number of cycles to be performed
PAR_ENDTIME - Static variable in class peersim.edsim.EDSimulator
The ending time for simulation.
PAR_EXPS - Static variable in class peersim.Simulator
Parameter representing the number of times the experiment is run.
PAR_GETTER - Static variable in class peersim.vector.VectControl
The getter method used to obtain the protocol values.
PAR_JVM - Static variable in class peersim.rangesim.RangeSimulator
This config property can be used to set options in the JVMs that are forked to execute experiments with different configuration parameters.
PAR_METHOD - Static variable in class peersim.vector.VectControl
The setter method used to set values in the protocol instances.
PAR_PROT - Static variable in interface peersim.core.Node
Prefix of the parameters that defines protocols.
PAR_PROT - Static variable in class peersim.vector.VectControl
The protocol to operate on.
PAR_QUOTA - Static variable in class example.loadbalance.BasicBalance
Initial quota.
PAR_RANDOM - Static variable in class peersim.core.CommonState
Configuration parameter used to define which random generator class should be used.
PAR_RANGES - Static variable in class peersim.rangesim.TaggedOutputStream
This parameter contains the string that should be printed on each line, containing the values of the range parameters for the experiment which is being run.
PAR_REDIRECT - Static variable in class peersim.Simulator
If present, this parameter activates the redirection of the standard output to a given PrintStream.
PAR_SEED - Static variable in class peersim.core.CommonState
Configuration parameter used to initialize the random seed.
PAR_TIME - Static variable in class peersim.rangesim.TaggedOutputStream
This parameter contains the list of observers for which the string contained in parameter "ranges" should be augmented with a "TIME <t>" specification regarding current time.
PAR_UNDIR - Static variable in class peersim.reports.GraphObserver
If defined, the undirected version of the graph will be analyzed.
ParsedProperties - Class in peersim.config
Extends the class ConfigProperties with basic parsing capabilities.
ParsedProperties(String[]) - Constructor for class peersim.config.ParsedProperties
Calls super constructor.
ParsedProperties(String) - Constructor for class peersim.config.ParsedProperties
Calls super constructor.
parseList(String) - Static method in class peersim.util.StringListParser
Parse the specified string.
PeakDistribution - Class in peersim.vector
Initializes the values so that "peaks" nodes have value "value"/"peaks", the rest "background" (zero by default).
PeakDistribution(String) - Constructor for class peersim.vector.PeakDistribution
Standard constructor that reads the configuration parameters.
PeakDistributionInitializer - Class in example.aggregation
Initialize an aggregation protocol using a peak distribution; only one peak is allowed.
PeakDistributionInitializer(String) - Constructor for class example.aggregation.PeakDistributionInitializer
Creates a new instance and read parameters from the config file.
peersim - package peersim
The main entry points for Peersim.
peersim.cdsim - package peersim.cdsim
The cycle-driven simulator.
peersim.config - package peersim.config
Configuration management.
peersim.core - package peersim.core
Core classes.
peersim.dynamics - package peersim.dynamics
Control classes for initializing a network or modifying it during simulation.
peersim.edsim - package peersim.edsim
The event-driven simulator.
peersim.graph - package peersim.graph
Graph data structures, i/o utilities and algorithms.
peersim.rangesim - package peersim.rangesim
The PeerSim range simulator, that allows the definitions of ranges for variables.
peersim.reports - package peersim.reports
Observer classes providing generic information about a network.
peersim.transport - package peersim.transport
Classes and interfaces for simulating transport-level communication in overlay networks.
peersim.util - package peersim.util
Utility classes.
peersim.vector - package peersim.vector
Classes that make it possible to modify and analyze numeric vectors defined by the vector of protocol instances in the network.
PHASE_UNKNOWN - Static variable in class peersim.core.CommonState
Constant that can be used as a value of simulation phase.
pid - Variable in class peersim.dynamics.StarNI
The protocol we want to wire
pid - Variable in class peersim.dynamics.WireGraph
The protocol we want to wire.
pid - Variable in class peersim.edsim.PriorityQ.Event
 
pid - Variable in class peersim.reports.GraphObserver
 
POST_SIMULATION - Static variable in class peersim.core.CommonState
Constant that can be used as a value of simulation phase.
pow(Number, Number) - Method in class peersim.config.Operators
 
prefix - Variable in class peersim.util.FileNameGenerator
The prefix of the filename
PrefixSubGraph - Class in peersim.graph
This class is an adaptor for representing special subgraphs of any graph.
PrefixSubGraph(Graph) - Constructor for class peersim.graph.PrefixSubGraph
Constructs an initially max size subgraph of g.
print(PrintStream) - Method in class peersim.util.IncrementalFreq
Prints current frequency information.
printAll(PrintStream) - Method in class peersim.util.IncrementalFreq
Prints current frequency information.
PriorityQ - Interface in peersim.edsim
The interface to be implemented by the event queue of the evend based engine.
PriorityQ.Event - Class in peersim.edsim
Return type of PriorityQ.removeFirst().
PriorityQ.Event() - Constructor for class peersim.edsim.PriorityQ.Event
 
processEvent(Node, int, AverageMessage) - Method in class example.edaggregation.AverageED
This is the standard method to define to process incoming messages.
processEvent(Node, int, T) - Method in interface peersim.edsim.EDProtocol
This method is invoked by the scheduler to deliver events to the protocol.
ProcessHandler - Interface in peersim.rangesim
 
ProcessManager - Class in peersim.rangesim
This thread is used to kill forked processes in the case of an abnormal termination of the Java virtual machine (for example, due to a signal).
ProcessManager() - Constructor for class peersim.rangesim.ProcessManager
 
protocol - Variable in class peersim.core.GeneralNode
The protocols on this node.
Protocol - Interface in peersim.core
Interface to identify protocols.
protocolID - Variable in class peersim.core.OverlayGraph
The protocol ID that selects the Linkable protocol to convert to a graph.
protocolSize() - Method in class peersim.core.GeneralNode
 
protocolSize() - Method in interface peersim.core.Node
Returns the number of protocols included in this node.
prototype - Static variable in class peersim.core.Network
The prototype node which is used to populate the simulation via cloning.
protSchedules - Variable in class peersim.cdsim.FullNextCycle
Holds the protocol schedulers of this simulation

Q

quota - Variable in class example.loadbalance.BasicBalance
 
QuotaObserver - Class in example.loadbalance
This class prints statistics about the actual quota consumptions.
QuotaObserver(String) - Constructor for class example.loadbalance.QuotaObserver
Standard constructor that reads the configuration parameters.

R

r - Static variable in class peersim.core.CommonState
This source of randomness should be used by all components.
RandNextCycle - Class in peersim.edsim
Implements random delay between calling the nextCycle method of the protocol.
RandNextCycle(String) - Constructor for class peersim.edsim.RandNextCycle
Calls super constructor.
RandNI - Class in peersim.dynamics
Initializes the neighbor list of a node with random links.
RandNI(String) - Constructor for class peersim.dynamics.RandNI
Standard constructor that reads the configuration parameters.
RandPermutation - Class in peersim.util
This class provides a random permutation of indexes.
RandPermutation(Random) - Constructor for class peersim.util.RandPermutation
Sets source of randomness to be used.
RandPermutation(int, Random) - Constructor for class peersim.util.RandPermutation
Sets source of randomness and initial size.
RandRemoval - Class in peersim.reports
It tests the network for robustness to random node removal.
RandRemoval(String) - Constructor for class peersim.reports.RandRemoval
Standard constructor that reads the configuration parameters.
RangeSimulator - Class in peersim.rangesim
This class is the main class for the Range Simulator.
RangeSimulator(String[]) - Constructor for class peersim.rangesim.RangeSimulator
 
readNewscastGraph(String, int) - Static method in class peersim.graph.GraphIO
Read a graph in newscast graph format.
RegRandNextCycle - Class in peersim.edsim
Implements a random delay, but making sure there is exactly one call in each consecutive step time units.
RegRandNextCycle(String) - Constructor for class peersim.edsim.RegRandNextCycle
Calls super constructor.
remove() - Static method in class peersim.core.Network
The node at the end of the list is removed.
remove(int) - Static method in class peersim.core.Network
The node with the given index is removed.
remove(int) - Method in class peersim.dynamics.DynamicNetwork
Removes n nodes from the network.
remove(int) - Method in class peersim.dynamics.OscillatingNetwork
Removes n nodes from the network.
remove(IncrementalFreq, boolean) - Method in class peersim.util.IncrementalFreq
Performs an element-by-element vector subtraction of the frequency vectors.
removeFirst() - Method in class peersim.edsim.Heap
Removes the first event in the heap and returns it.
removeFirst() - Method in interface peersim.edsim.PriorityQ
Removes the first event in the heap and returns it.
removeNode(int) - Method in class peersim.graph.SubGraphEdges
Removes given node from subgraph.
reset() - Static method in class peersim.core.Network
Reads configuration parameters, constructs the prototype node, and populates the network by cloning the prototype.
reset(int, boolean) - Static method in class peersim.transport.E2ENetwork
Resets the network, by creating a triangular (if symm is true) or a rectangular (if symm is false) array of integers.
reset() - Method in class peersim.util.IncrementalFreq
Reset the state of the object.
reset() - Method in class peersim.util.IncrementalStats
Resets the statistics to reflect the zero elements set.
reset(int) - Method in interface peersim.util.IndexIterator
This resets the iteration.
reset(int) - Method in class peersim.util.LinearIterator
 
reset() - Method in class peersim.util.MedianStats
 
reset() - Method in class peersim.util.MomentStats
 
reset(int) - Method in class peersim.util.RandPermutation
It initiates a random permutation of the integers from 0 to k-1.
reset(int) - Method in class peersim.util.WeightedRandPerm
It initiates a random weighted permutation of the integeres from 0 to k-1.
resetQuota() - Method in class example.loadbalance.BasicBalance
Resets the current node quota value.
ResetQuota - Class in example.loadbalance
This class restores the quota value at each node in the topology in order to be able to perform the next cycle.
ResetQuota(String) - Constructor for class example.loadbalance.ResetQuota
Standard constructor that reads the configuration parameters.
root - Variable in class peersim.graph.GraphAlgorithms
output of some algorithms is passed here
RouterInfo - Interface in peersim.transport
Generic interface to be implemented by protocols that need to be assigned to routers.
rperm - Variable in class peersim.cdsim.FullNextCycle
The random permutation to use if config par "shuffle" is set.
run() - Method in class peersim.rangesim.ProcessManager
Kill the child process.
run() - Method in class peersim.rangesim.RangeSimulator
Main method to be executed

S

sch - Static variable in class peersim.edsim.CDScheduler
Contains the scheduler objects for all CDProtocols defined in the configuration.
Scheduler - Class in peersim.core
A binary function over the time points.
Scheduler(String) - Constructor for class peersim.core.Scheduler
Reads configuration parameters from the component defined by prefix.
Scheduler(String, boolean) - Constructor for class peersim.core.Scheduler
Reads configuration parameters from the component defined by prefix.
send(Node, Node, Object, int) - Method in class peersim.transport.E2ETransport
Delivers the message reliably, with the latency calculated by E2ETransport.getLatency(peersim.core.Node, peersim.core.Node).
send(Node, Node, Object, int) - Method in interface peersim.transport.Transport
Sends message msg from node src to protocol pid of node dst.
send(Node, Node, Object, int) - Method in class peersim.transport.UniformRandomTransport
Delivers the message with a random delay, that is drawn from the configured interval according to the uniform distribution.
send(Node, Node, Object, int) - Method in class peersim.transport.UnreliableTransport
Sends the message according to the underlying transport protocol.
set(Node, long) - Method in class peersim.vector.Setter
Sets the given integer value.
set(Node, double) - Method in class peersim.vector.Setter
Sets the given real value.
set(int, long) - Method in class peersim.vector.Setter
Sets the given integer value.
set(int, double) - Method in class peersim.vector.Setter
Sets the given real value.
setCapacity(int) - Static method in class peersim.core.Network
Sets the capacity of the internal array storing the nodes.
setConfig(Properties) - Static method in class peersim.config.Configuration
Sets the system-wide configuration in Properties format.
setConfig(Properties, boolean) - Static method in class peersim.config.Configuration
Sets the system-wide configuration in Properties format.
setCycle(int) - Static method in class peersim.cdsim.CDState
Sets current cycle.
setCycleT(int) - Static method in class peersim.cdsim.CDState
 
setEdge(int, int) - Method in class peersim.core.OverlayGraph
Sets given edge.
setEdge(int, int) - Method in class peersim.graph.BitMatrixGraph
 
setEdge(int, int) - Method in class peersim.graph.ConstUndirGraph
not supported
setEdge(int, int) - Method in interface peersim.graph.Graph
Sets given edge, returns true if it did not exist before.
setEdge(int, int) - Method in class peersim.graph.NeighbourListGraph
 
setEdge(int, int) - Method in class peersim.graph.PrefixSubGraph
not supported
setEdge(int, int) - Method in class peersim.graph.SubGraphEdges
not supported
setEdge(int, int) - Method in class peersim.graph.UndirectedGraph
not supported
setEndTime(long) - Static method in class peersim.core.CommonState
Sets the endtime.
setFailState(int) - Method in interface peersim.core.Fallible
Sets the fails state of this object.
setFailState(int) - Method in class peersim.core.GeneralNode
 
setFValue(float) - Method in class peersim.vector.TestVectors
 
setIndex(int) - Method in class peersim.core.GeneralNode
 
setIndex(int) - Method in interface peersim.core.Node
Sets the index of this node in the internal representation of the node list.
setIValue(int) - Method in class peersim.vector.TestVectors
 
setLatency(int, int, int) - Static method in class peersim.transport.E2ENetwork
Sets the latency associated to the specified (sender, receiver) pair.
setLValue(long) - Method in class peersim.vector.TestVectors
 
setNode(Node) - Static method in class peersim.core.CommonState
Sets the current node
setPermutation(int) - Method in class peersim.util.RandPermutation
It calculates a random permutation of the integers from 0 to k-1.
setPhase(int) - Static method in class peersim.core.CommonState
 
setPid(int) - Static method in class peersim.core.CommonState
Sets the current protocol identifier.
setProtocol(int, Protocol) - Method in class peersim.core.ModifiableNode
Substitutes the specified protocol at this node.
setRouter(int) - Method in class peersim.transport.E2ETransport
Associates the node hosting this transport protocol instance with a router in the router network.
setRouter(int) - Method in interface peersim.transport.RouterInfo
Associates the node hosting this transport protocol instance with a router in the router network.
setSeed(long) - Method in class peersim.util.ExtendedRandom
Sets random seed.
setSize(int) - Method in class peersim.graph.PrefixSubGraph
Sets the size of the subgraph.
Setter - Class in peersim.vector
Vectors can be written through this class.
Setter(String, String, String) - Constructor for class peersim.vector.Setter
Constructs a Setter class based on the configuration.
setter - Variable in class peersim.vector.VectControl
The setter to be used to write a vector.
setTime(long) - Static method in class peersim.core.CommonState
Sets the current time.
setValue(double) - Method in interface peersim.vector.SingleValue
Modifies the value of the parameter hold by the implementor of this interface.
setValue(double) - Method in class peersim.vector.SingleValueHolder
 
setX(double) - Method in class example.hot.InetCoordinates
 
setY(double) - Method in class example.hot.InetCoordinates
 
shuffle - Variable in class peersim.cdsim.FullNextCycle
 
Shuffle - Class in peersim.cdsim
Shuffles the network.
Shuffle(String) - Constructor for class peersim.cdsim.Shuffle
Does nothing.
shuffle() - Static method in class peersim.core.Network
Shuffles the node array.
simName - Static variable in class peersim.config.CheckConfig
the class names of simulators used
simName - Static variable in class peersim.Simulator
the class names of simulators used
SimpleNewscast - Class in example.newscast
This class represents the information stored by a node in the simplified newscast system (i.e., used just as a topology manager)
SimpleNewscast(String) - Constructor for class example.newscast.SimpleNewscast
 
Simulator - Class in peersim
This is the main entry point to peersim.
Simulator() - Constructor for class peersim.Simulator
 
SingleValue - Interface in peersim.vector
The implementor class has a single parameter.
SingleValueComparator - Class in peersim.vector
This comparator class compares two node objects based on the value maintained by one of its protocols.
SingleValueComparator(int) - Constructor for class peersim.vector.SingleValueComparator
Builds a new comparator that compares the double values maintained by protocol identified by pid.
SingleValueHolder - Class in peersim.vector
The task of this protocol is to store a single double value and make it available through the SingleValue interface.
SingleValueHolder(String) - Constructor for class peersim.vector.SingleValueHolder
Does nothing.
SingleValueObserver - Class in peersim.vector
Print statistics over a vector.
SingleValueObserver(String) - Constructor for class peersim.vector.SingleValueObserver
Standard constructor that reads the configuration parameters.
size() - Static method in class peersim.core.Network
Number of nodes currently in the network
size() - Method in class peersim.core.OverlayGraph
Returns Network.size()
size() - Method in class peersim.edsim.Heap
Returns the current number of events in the system.
size() - Method in interface peersim.edsim.PriorityQ
Returns the current number of events in the queue.
size() - Method in class peersim.graph.BitMatrixGraph
 
size() - Method in class peersim.graph.ConstUndirGraph
 
size() - Method in interface peersim.graph.Graph
The number of nodes in the graph.
size() - Method in class peersim.graph.NeighbourListGraph
 
size() - Method in class peersim.graph.PrefixSubGraph
 
size() - Method in class peersim.graph.SubGraphEdges
 
size() - Method in class peersim.graph.UndirectedGraph
 
sort(Comparator<? super Node>) - Static method in class peersim.core.Network
Sorts the node array.
StarNI - Class in peersim.dynamics
Initializes a node's neighbor list with a fixed center.
StarNI(String) - Constructor for class peersim.dynamics.StarNI
 
step - Variable in class peersim.core.Scheduler
 
StringListParser - Class in peersim.util
This utility class can be used to parse range expressions.
sub(Number, Number) - Method in class peersim.config.Operators
 
SubGraphEdges - Class in peersim.graph
This class is an adaptor for representing subgraphs of any graph.
SubGraphEdges(Graph) - Constructor for class peersim.graph.SubGraphEdges
Constructs an initially empty subgraph of g.
subGraphSize() - Method in class peersim.graph.SubGraphEdges
This function returns the size of the subgraph, i.e. the number of nodes in the subgraph.
substitute - Variable in class peersim.dynamics.DynamicNetwork
value of "substitute"
suspend(Node) - Static method in class example.loadbalance.AvgBalance
Let a node exit from the network as soon as it has the required load (equal to the average).
swap(int, int) - Static method in class peersim.core.Network
Swaps the two nodes at the given indexes.

T

TAG - Static variable in class peersim.rangesim.TaggedOutputStream
This character is appended at the end of each line.
TaggedOutputStream - Class in peersim.rangesim
This OutputStream uses an underlying stream to output data.
TaggedOutputStream(String) - Constructor for class peersim.rangesim.TaggedOutputStream
Creates a tagged output stream that prints the tagged output on the specified stream.
tarjan(Graph) - Method in class peersim.graph.GraphAlgorithms
Returns the strongly connected cluster roots with size as a value.
test() - Static method in class peersim.core.Network
 
TestVectors - Class in peersim.vector
Do testing the vector package.
TestVectors(String) - Constructor for class peersim.vector.TestVectors
Builds a new (not initialized) value holder.
time - Variable in class peersim.edsim.PriorityQ.Event
 
toArithmeticExpression() - Method in class peersim.util.IncrementalFreq
An alternative method to convert the object to String
toString() - Method in class example.newscast.SimpleNewscast
 
toString() - Method in class peersim.config.Operators
 
toString() - Method in class peersim.core.GeneralNode
 
toString() - Method in class peersim.core.IdleProtocol
 
toString() - Method in class peersim.core.OracleIdleProtocol
 
toString() - Method in class peersim.edsim.Heap
Prints the time values contained in the heap.
toString() - Method in class peersim.edsim.PriorityQ.Event
 
toString() - Method in class peersim.util.IncrementalFreq
 
toString() - Method in class peersim.util.IncrementalStats
Prints the following quantities separated by spaces in a single line in this order.
toString() - Method in class peersim.util.MomentStats
Outputs on a single line the superclass statistics postfixed by the current skewness and kurtosis.
toString() - Method in class peersim.vector.SingleValueHolder
Returns the value as a string.
toString() - Method in class peersim.vector.TestVectors
Returns the value as a string.
Transport - Interface in peersim.transport
This interface represents a generic transport protocol, used to send messages through the underlying network.
transports - Static variable in class peersim.config.FastConfig
This array stores the protocol id of the Transport protocol that is linked to the protocol given by the array index.
TriangularMatrixParser - Class in peersim.transport
Initializes static singleton E2ENetwork by reading a trace file containing the latency distance measured between a set of "virtual" routers.
TriangularMatrixParser(String) - Constructor for class peersim.transport.TriangularMatrixParser
Read the configuration parameters.

U

undir - Variable in class peersim.dynamics.WireGraph
If true, edges are added in an undirected fashion.
undir - Variable in class peersim.reports.GraphObserver
 
UndirectedGraph - Class in peersim.graph
This class is an adaptor making any Graph an undirected graph by making its edges bidirectional.
UndirectedGraph(Graph) - Constructor for class peersim.graph.UndirectedGraph
 
UniformDistribution - Class in peersim.vector
Initializes the values drawing uniform random samples from the range ["min", "max"[.
UniformDistribution(String) - Constructor for class peersim.vector.UniformDistribution
Standard constructor that reads the configuration parameters.
UniformRandomTransport - Class in peersim.transport
Implement a transport layer that reliably delivers messages with a random delay, that is drawn from the configured interval according to the uniform distribution.
UniformRandomTransport(String) - Constructor for class peersim.transport.UniformRandomTransport
Reads configuration parameter.
UniformRouterAssignment - Class in peersim.transport
Initializes RouterInfo protocols by assigning routers to them.
UniformRouterAssignment(String) - Constructor for class peersim.transport.UniformRouterAssignment
Reads configuration parameters.
UNKNOWN - Static variable in class peersim.config.CheckConfig
 
UNKNOWN - Static variable in class peersim.Simulator
Unknown simulator
UnreliableTransport - Class in peersim.transport
This transport protocol can be combined with other transports to simulate message losses.
UnreliableTransport(String) - Constructor for class peersim.transport.UnreliableTransport
Reads configuration parameter.
until - Variable in class peersim.core.Scheduler
 
updateGraph() - Method in class peersim.reports.GraphObserver
Sets GraphObserver.g.

V

value - Variable in class peersim.vector.SingleValueHolder
Value held by this protocol
ValueDumper - Class in peersim.vector
Dump the content of a vector in a file.
ValueDumper(String) - Constructor for class peersim.vector.ValueDumper
Standard constructor that reads the configuration parameters.
valueOf(String) - Method in class peersim.config.Operators
 
VectAngle - Class in peersim.vector
Observes the cosine angle between two vectors.
VectAngle(String) - Constructor for class peersim.vector.VectAngle
Standard constructor that reads the configuration parameters.
VectControl - Class in peersim.vector
Serves as an abstract superclass for Controls that deal with vectors.
VectControl(String) - Constructor for class peersim.vector.VectControl
Standard constructor that reads the configuration parameters.
VectCopy - Class in peersim.vector
Sets values in a protocol vector by copying the values of another protocol vector.
VectCopy(String) - Constructor for class peersim.vector.VectCopy
Standard constructor that reads the configuration parameters.
VectorComparator - Class in peersim.vector
This class provides a generic implementation of the java.lang.Comparator interface specialized for Node objects.
VectorComparator(int, String) - Constructor for class peersim.vector.VectorComparator
 
VectorObserver - Class in peersim.vector
This class computes and reports statistics information about a vector.
VectorObserver(String) - Constructor for class peersim.vector.VectorObserver
Standard constructor that reads the configuration parameters.

W

weaklyConnectedClusters(Graph) - Method in class peersim.graph.GraphAlgorithms
Returns the weakly connected cluster indexes with size as a value.
WeightedRandPerm - Class in peersim.util
This class provides a weighted random permutation of indexes.
WeightedRandPerm(Random, double[]) - Constructor for class peersim.util.WeightedRandPerm
Set the source of randomness to use and the weights.
WHITE - Static variable in class peersim.graph.GraphAlgorithms
 
wire(Graph) - Method in class example.hot.WireInetTopology
Performs the actual wiring.
wire(Graph) - Method in class peersim.dynamics.WireByMethod
Invokes the method passing g to it.
wire(Graph) - Method in class peersim.dynamics.WireFromFile
Wires the graph from a file.
wire(Graph) - Method in class peersim.dynamics.WireGraph
The method that should wire (add edges to) the given graph.
wire(Graph) - Method in class peersim.dynamics.WireKOut
Calls GraphFactory.wireKOut(peersim.graph.Graph, int, java.util.Random).
wire(Graph) - Method in class peersim.dynamics.WireRegRootedTree
Calls GraphFactory.wireRegRootedTree(peersim.graph.Graph, int).
wire(Graph) - Method in class peersim.dynamics.WireRingLattice
calls GraphFactory.wireRingLattice(peersim.graph.Graph, int).
wire(Graph) - Method in class peersim.dynamics.WireScaleFreeBA
calls GraphFactory.wireScaleFreeBA(peersim.graph.Graph, int, java.util.Random).
wire(Graph) - Method in class peersim.dynamics.WireScaleFreeDM
Wires a scale free graph using a method described in this paper.
wire(Graph) - Method in class peersim.dynamics.WireStar
Calls GraphFactory.wireStar(peersim.graph.Graph).
wire(Graph) - Method in class peersim.dynamics.WireWS
calls GraphFactory.wireWS(peersim.graph.Graph, int, double, java.util.Random).
WireByMethod - Class in peersim.dynamics
Takes a Linkable protocol and adds connections using an arbitrary method.
WireByMethod(String) - Constructor for class peersim.dynamics.WireByMethod
Loads configuration.
wireDirected - Variable in class peersim.core.OverlayGraph
Tells if the graph should be wired in an undirected way.
WireFromFile - Class in peersim.dynamics
Takes a Linkable protocol and adds connections that are stored in a file.
WireFromFile(String) - Constructor for class peersim.dynamics.WireFromFile
Standard constructor that reads the configuration parameters.
WireGraph - Class in peersim.dynamics
This class is the superclass of classes that takes a Linkable protocol or a graph and add edges that define a certain topology.
WireGraph(String) - Constructor for class peersim.dynamics.WireGraph
Standard constructor that reads the configuration parameters.
wireHypercube(Graph) - Static method in class peersim.graph.GraphFactory
A hypercube.
WireInetTopology - Class in example.hot
This class applies a HOT topology on a any Linkable implementing protocol.
WireInetTopology(String) - Constructor for class example.hot.WireInetTopology
Standard constructor that reads the configuration parameters.
WireKOut - Class in peersim.dynamics
Takes a Linkable protocol and adds random connections.
WireKOut(String) - Constructor for class peersim.dynamics.WireKOut
Standard constructor that reads the configuration parameters.
wireKOut(Graph, int, Random) - Static method in class peersim.graph.GraphFactory
Random graph.
WireRegRootedTree - Class in peersim.dynamics
Takes a Linkable protocol and adds connections that define a regular rooted tree.
WireRegRootedTree(String) - Constructor for class peersim.dynamics.WireRegRootedTree
Standard constructor that reads the configuration parameters.
wireRegRootedTree(Graph, int) - Static method in class peersim.graph.GraphFactory
A regular rooted tree.
WireRingLattice - Class in peersim.dynamics
Takes a Linkable protocol and adds edges that define a ring lattice.
WireRingLattice(String) - Constructor for class peersim.dynamics.WireRingLattice
Standard constructor that reads the configuration parameters.
wireRingLattice(Graph, int) - Static method in class peersim.graph.GraphFactory
Wires a ring lattice.
WireScaleFreeBA - Class in peersim.dynamics
This class contains the implementation of the Barabasi-Albert model of growing scale free networks.
WireScaleFreeBA(String) - Constructor for class peersim.dynamics.WireScaleFreeBA
Standard constructor that reads the configuration parameters.
wireScaleFreeBA(Graph, int, Random) - Static method in class peersim.graph.GraphFactory
This contains the implementation of the Barabasi-Albert model of growing scale free networks.
WireScaleFreeDM - Class in peersim.dynamics
Wires a scale free graph using a method described in this paper.
WireScaleFreeDM(String) - Constructor for class peersim.dynamics.WireScaleFreeDM
Standard constructor that reads the configuration parameters.
WireStar - Class in peersim.dynamics
Takes a Linkable protocol and adds connection which for a star topology.
WireStar(String) - Constructor for class peersim.dynamics.WireStar
Standard constructor that reads the configuration parameters.
wireStar(Graph) - Static method in class peersim.graph.GraphFactory
A sink star.
WireWS - Class in peersim.dynamics
Takes a Linkable protocol and adds connections following the small-world model of Watts and Strogatz.
WireWS(String) - Constructor for class peersim.dynamics.WireWS
Standard constructor that reads the configuration parameters.
wireWS(Graph, int, double, Random) - Static method in class peersim.graph.GraphFactory
Watts-Strogatz model.
write(byte[], int, int) - Method in class peersim.config.NullPrintStream
This methods does not print anything.
write(int) - Method in class peersim.config.NullPrintStream
This methods does not print anything.
write(byte[], int, int) - Method in class peersim.rangesim.TaggedOutputStream
 
write(int) - Method in class peersim.rangesim.TaggedOutputStream
 
writeChaco(Graph, PrintStream) - Static method in class peersim.graph.GraphIO
Saves the given graph to the given stream in Chaco format.
writeDOT(Graph, PrintStream) - Static method in class peersim.graph.GraphIO
Saves the given graph to the given stream in DOT format.
writeEdgeList(Graph, PrintStream) - Static method in class peersim.graph.GraphIO
Prints graph in edge list format.
writeGML(Graph, PrintStream) - Static method in class peersim.graph.GraphIO
Saves the given graph to the given stream in GML format.
writeNeighborList(Graph, PrintStream) - Static method in class peersim.graph.GraphIO
Prints graph in neighbor list format.
writeNetmeter(Graph, PrintStream) - Static method in class peersim.graph.GraphIO
Saves the given graph to the given stream to be read by NETMETER.
writeUCINET_DL(Graph, PrintStream) - Static method in class peersim.graph.GraphIO
Saves the given graph to the given stream in UCINET DL nodelist format.
writeUCINET_DLMatrix(Graph, PrintStream) - Static method in class peersim.graph.GraphIO
Saves the given graph to the given stream in UCINET DL matrix format.

A B C D E F G H I J K L M N O P Q R S T U V W