Bees v0.5.0 API

bees.core
Class MulticastNeighborhood

java.lang.Object
  |
  +--bees.core.Neighborhood
        |
        +--bees.core.MulticastNeighborhood

public class MulticastNeighborhood
extends Neighborhood

A MulticastNeighborhood is a Neighborhood that sends a single capsule to all of its neighbors.


Fields inherited from class bees.core.Neighborhood
ce, neighbors, node
 
Constructor Summary
MulticastNeighborhood()
          Construct an empty MulticastNeighborhood.
 
Method Summary
 void send(Capsule cap)
          Send a capsule to all members of this Neighborhood.
 java.lang.String toString()
           
 
Methods inherited from class bees.core.Neighborhood
addNeighbor, elements, handleRevokedNeighbor, handleSendException, handleSendException, removeNeighbor, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MulticastNeighborhood

public MulticastNeighborhood()
Construct an empty MulticastNeighborhood.
Method Detail

send

public void send(Capsule cap)
          throws EncodingException
Send a capsule to all members of this Neighborhood. Note: If the given Capsule implements ReencodableCapsule it will be reencod()'ed before it is sent to the neighbor.
Overrides:
send in class Neighborhood
Parameters:
cap - The Capsule to send.
Throws:
EncodingException - if there is a problem encoding the given Capsule.

toString

public java.lang.String toString()
Overrides:
toString in class Neighborhood
See Also:
Object.toString()

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/