Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD