|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElemsSequencer<V,E>
ElemsSequencer defines the methods that all graph element sequencers must implement.
Method Summary | |
---|---|
java.util.List<E> |
arrangeDirectedLinks(java.util.Random rnd)
Returns the list of all links in the graph, considered as directed, arranged according to some criterion. |
java.util.List<V> |
arrangeNodes(java.util.Random rnd)
Returns the list of all nodes in the graph, arranged according to some criterion. |
java.util.List<E> |
arrangeUndirectedLinks(java.util.Random rnd)
Returns the list of all links in the graph, considered as undirected, arranged according to some criterion. |
void |
setup(TED<V,E> ted,
Environ env)
(Re)initializes the sequencer. |
Methods inherited from interface bcds.phison.WithEnvParams |
---|
getEnviron, getEnvParams, getName |
Method Detail |
---|
void setup(TED<V,E> ted, Environ env)
Sequencers receive a TED objected instead of simply a graph in order to widen the sources in which to base their sorting decisions. For example, one might need to sort links based on available capacity, or number of connections each one is supporting, etc.
java.util.List<V> arrangeNodes(java.util.Random rnd)
rnd
might be used
in case of ties.
java.util.List<E> arrangeDirectedLinks(java.util.Random rnd)
rnd
might be used in case of ties.
java.util.List<E> arrangeUndirectedLinks(java.util.Random rnd)
rnd
might be used in case of ties. The graph considered as undirected
contains the set of edges given by g.canonicEdges()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |