swarm.simtools
Interface NSelect

All Known Implementing Classes:
NSelectImpl

public interface NSelect
extends SwarmObject, SwarmObjectS

A class to select exactly N elements at random from a collection.. NSelect selects exactly N elements from a collection without repetition. A target collection must be provided.


Method Summary
 void select$from$into(int n, java.lang.Object aCollection, java.lang.Object bCollection)
          The select:from:into: method selects exactly N elements from a collection without repetition into another collection.
 
Methods inherited from interface swarm.objectbase.SwarmObject
getCompleteProbeMap, getProbeForMessage, getProbeForVariable, getProbeMap
 
Methods inherited from interface swarm.defobj.Drop
drop
 
Methods inherited from interface swarm.defobj.DefinedObject
compare, describe, describeID, getDisplayName, getTypeName, getZone, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid
 
Methods inherited from interface swarm.defobj.GetName
getName
 

Method Detail

select$from$into

public void select$from$into(int n,
                             java.lang.Object aCollection,
                             java.lang.Object bCollection)
The select:from:into: method selects exactly N elements from a collection without repetition into another collection. The selection algorithm is from Knuth.