mapss.dif.csdf.sdf.mem
Class RandomConflictGraphGenerator

java.lang.Object
  extended by mapss.dif.csdf.sdf.mem.RandomConflictGraphGenerator

public class RandomConflictGraphGenerator
extends java.lang.Object

Random graph generator in generating random conflict graphs. Actualy, it is the SDF graph that is randomly generated. When the SDF graph is obtained, partitioning conflicts are synthesized between SDF buffers. The synthesis strategy is to chain all input buffers for each SDF actor. No state variables are generated here and all nodes represent SDF buffers only.

Version:
$Id: RandomConflictGraphGenerator.java 406 2007-05-10 14:27:07Z plishker $
Author:
Mingyung Ko

Constructor Summary
RandomConflictGraphGenerator()
          A constructor without arguments.
 
Method Summary
 ConflictGraph graph()
          Generate a random conflict graph.
static ConflictGraph graph(SDFGraph sGraph)
          Generate a random conflict graph with the associated SDF graph.
 ConflictGraph graphFromSavedSDFGraph()
          Get a conflict graph from the SDF graph previously generated.
 ConflictGraph[] graphs(int graphCount)
          Generate the desired number of random conflict graph.
 void setSDFRandomGraphParameters(int oneProb, int maxRate, int minNodes, int maxNodes)
          Set parameter values to make the SDF random graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomConflictGraphGenerator

public RandomConflictGraphGenerator()
A constructor without arguments.

Method Detail

graph

public ConflictGraph graph()
Generate a random conflict graph.

Returns:
The random conflict graph.

graph

public static ConflictGraph graph(SDFGraph sGraph)
Generate a random conflict graph with the associated SDF graph.

Parameters:
The - associated SDF graph.
Returns:
The random conflict graph.

graphFromSavedSDFGraph

public ConflictGraph graphFromSavedSDFGraph()
Get a conflict graph from the SDF graph previously generated. This is used when random SDF graph generataion is not desired.


graphs

public ConflictGraph[] graphs(int graphCount)
Generate the desired number of random conflict graph.

Parameters:
graphCount - The desired graph count.
Returns:
The random conflict graphs.

setSDFRandomGraphParameters

public void setSDFRandomGraphParameters(int oneProb,
                                        int maxRate,
                                        int minNodes,
                                        int maxNodes)
Set parameter values to make the SDF random graph.