|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbcds.phison.multfailures.ElemsSequencerBase<V,E>
bcds.phison.multfailures.SequencerRandom<V,E>
public class SequencerRandom<V,E>
This class arranges nodes or links in a random manner. The caller must provide a randomness source (a java.util.Random object).
Constructor Summary | |
---|---|
SequencerRandom()
Default constructor. |
|
SequencerRandom(TED<V,E> ted,
Environ env)
Creates a new instance and calls setup to complete the initialization. |
Method Summary | |
---|---|
java.util.List<E> |
arrangeDirectedLinks(java.util.Random rnd)
Returns a random arrangement of links. |
java.util.List<V> |
arrangeNodes(java.util.Random rnd)
Returns the list of nodes in the topology, arranged randomly. |
java.util.List<E> |
arrangeUndirectedLinks(java.util.Random rnd)
Returns a random arrangement of links, as if all links were undirected. |
Methods inherited from class bcds.phison.multfailures.ElemsSequencerBase |
---|
getEnviron, getEnvParams, getName, setup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequencerRandom()
public SequencerRandom(TED<V,E> ted, Environ env)
Method Detail |
---|
public java.util.List<V> arrangeNodes(java.util.Random rnd)
rnd
must not be null.
arrangeNodes
in interface ElemsSequencer<V,E>
arrangeNodes
in class ElemsSequencerBase<V,E>
public java.util.List<E> arrangeUndirectedLinks(java.util.Random rnd)
SimGraph.canonicEdges()
.
The parameter rnd
must not be null.
arrangeUndirectedLinks
in interface ElemsSequencer<V,E>
arrangeUndirectedLinks
in class ElemsSequencerBase<V,E>
public java.util.List<E> arrangeDirectedLinks(java.util.Random rnd)
rnd
must not be null.
arrangeDirectedLinks
in interface ElemsSequencer<V,E>
arrangeDirectedLinks
in class ElemsSequencerBase<V,E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |