Bees v0.5.0 API

bees.core
Class RedundantNeighborhood

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

public final class RedundantNeighborhood
extends Neighborhood

A RedundantNeighborhood is a Neighborhood that attempts to send a single Capsule through one of its neighbors.


Fields inherited from class bees.core.Neighborhood
ce, neighbors, node
 
Constructor Summary
RedundantNeighborhood()
          Construct an empty RedundantNeighborhood.
 
Method Summary
 void send(Capsule cap)
          Attempt to send a capsule to one of the member neighbors.
 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

RedundantNeighborhood

public RedundantNeighborhood()
Construct an empty RedundantNeighborhood.
Method Detail

send

public void send(Capsule cap)
          throws EncodingException,
                 java.io.IOException
Attempt to send a capsule to one of the member neighbors. If the neighborhood is able to send the Capsule with the neighbor throwing an exception, the operation will be declared a success and return control. 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.
java.io.IOException - if there are no reachable neighbors.

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/