|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmapss.dif.DIFRandomGraphGenerator
mapss.dif.csdf.sdf.SDFRandomGraphGenerator
public class SDFRandomGraphGenerator
Random graph generator in generating random SDF graphs. This class generates SDF graphs of random topology and production/consumption rates.
| Field Summary |
|---|
| Fields inherited from class mapss.dif.DIFRandomGraphGenerator |
|---|
_graph, _incidence, _reachability |
| Constructor Summary | |
|---|---|
SDFRandomGraphGenerator()
Constructor with node count. |
|
| Method Summary | |
|---|---|
protected void |
_initialize()
Initialize the generator. |
protected void |
_makeRandomRates()
Generate random rates for a given graph topology. |
protected void |
_reset(int nodeCount)
Reset all configurations to generate a new random SDF graph. |
int |
getRepetitions(mocgraph.Node node)
Get repetitions of the node. |
DIFGraph |
graph(int nodeCount)
Generate a random acyclic SDF graph with the desired node count. |
void |
setMaxRate(int maxRate)
Set the maximal production/consumption rate. |
void |
setOneProbability(int oneProbability)
Set the probability of rate 1 for production/consumption. |
| Methods inherited from class mapss.dif.DIFRandomGraphGenerator |
|---|
_initialize, _isIncident, _isReachable, _makeDAG, _randomNonNegativeInt, graph, graphs, setMaxFanIn, setMaxFanOut |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SDFRandomGraphGenerator()
| Method Detail |
|---|
public int getRepetitions(mocgraph.Node node)
CSDFGraph.getRepetitions(Node). Because
repetitions are also computed in the random graph generation process,
they can be obtained without re-computation.
node - The node to get repetitions.
public DIFGraph graph(int nodeCount)
graph in class DIFRandomGraphGeneratornodeCount - The desired node count.
DIFGraph.public void setMaxRate(int maxRate)
maxRate - The maximal rate.public void setOneProbability(int oneProbability)
probability should range from 0 to 1000.
oneProbability - The probability of rate 1.protected void _initialize()
_initialize in class DIFRandomGraphGeneratorprotected void _makeRandomRates()
protected void _reset(int nodeCount)
_reset in class DIFRandomGraphGeneratornodeCount - The desired node count.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||