org.jage.address.selector
Class AnyUsedSelector<AddressClass extends IAddress>
java.lang.Object
org.jage.address.selector.AbstractAnycastSelector<AddressClass>
org.jage.address.selector.AnyUsedSelector<AddressClass>
- Type Parameters:
AddressClass
- type of address which can be selected by this selector
- All Implemented Interfaces:
- Serializable, IAddressSelector<AddressClass>
public class AnyUsedSelector<AddressClass extends IAddress>
- extends AbstractAnycastSelector<AddressClass>
An anycast selector that chooses a random address from the provided poll of used addresses.
- Author:
- AGH AgE Team
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnyUsedSelector
public AnyUsedSelector()
initialize
public void initialize(Collection<AddressClass> allAddresses,
Collection<AddressClass> usedAddresses)
- Initialize this selector. This method may be called any number of times, and should change this selector's state
from uninitialized to initialized only once.
For example, for selectors that select a random address, this method may be responsible for making the random
choice of an address.
- Parameters:
allAddresses
- all addresses available to be selected fromusedAddresses
- a list of "used" addresses, which may be interpreted by this selector somehow in the process of
selecting its address(-es)
Copyright © 2006-2011 AGH University of Science and Technology. All Rights Reserved.