| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmocgraph.Graph
mocgraph.DirectedGraph
mapss.dif.DIFGraph
mapss.dif.bdf.BDFGraph
public class BDFGraph
Information associated with an BDF graph. This class caches frequently-used data associated with BDF graphs. It also provides methods to calculate BDF related statistics.
BDFGraph nodes and edges have weights in BDFNodeWeight and 
BDFEdgeWeight, respectively.
BDFEdgeWeight, 
BDFNodeWeight| Constructor Summary | |
|---|---|
| BDFGraph()Construct an empty BDF graph. | |
| BDFGraph(int nodeCount)Construct an empty BDF graph with enough storage allocated for the specified number of nodes. | |
| BDFGraph(int nodeCount,
         int edgeCount)Construct an empty BDF graph with enough storage allocated for the specified number of edges, and number of nodes. | |
| Method Summary | |
|---|---|
|  int[][] | computePureTopologyMatrix()Compute topologyMatrix without adjusting probabilities of boolean edges. | 
|  java.util.HashMap | computeStatisticRepetitions()Compute statistical repetitions according to probabilities of boolean nodes. | 
|  ptolemy.math.Fraction[][] | computeStatisticTopologyMatrix()Compute topologyMatrix and adjust boolean edge's rate with given probabilities. | 
|  boolean | validEdgeWeight(java.lang.Object weight)Verify edge weight for BDF graph. | 
|  boolean | validNodeWeight(java.lang.Object weight)Verify node weight for BDF graph. | 
| Methods inherited from class mocgraph.DirectedGraph | 
|---|
| _connect, _connectedSubGraph, _disconnect, _initializeAnalyses, backwardReachableNodes, backwardReachableNodes, backwardReachableNodes, backwardReachableNodes, cycleNodeCollection, cycleNodes, edgeExists, edgeExists, inputEdgeCount, inputEdges, isAcyclic, outputEdgeCount, outputEdges, predecessorEdges, predecessors, reachableNodes, reachableNodes, reachableNodes, reachableNodes, sccDecomposition, selfLoopEdgeCount, sinkNodeCount, sinkNodes, sourceNodeCount, sourceNodes, subgraphs, successorEdges, successors, toDirectedAcyclicGraph, topologicalSort, topologicalSort, transitiveClosure | 
| Methods inherited from class mocgraph.Graph | 
|---|
| _addEdge, _connectEdge, _disconnectEdge, _emptyGraph, _registerChange, addAnalysis, addEdge, addEdge, addEdge, addEdges, addGraph, addNode, addNode, addNodes, addNodeWeight, addNodeWeights, changeCount, clone, cloneAs, connectedComponents, containsEdge, containsEdgeWeight, containsNode, containsNodeWeight, edge, edge, edgeCount, edgeLabel, edgeLabel, edges, edges, edges, edgeWeight, hidden, hiddenEdgeCount, hiddenEdges, incidentEdgeCount, incidentEdges, neighborEdges, neighbors, node, node, nodeCount, nodeLabel, nodeLabel, nodes, nodes, nodes, nodeWeight, selfLoopEdgeCount, selfLoopEdges, selfLoopEdges, toString, validateWeight, validateWeight, validateWeight, validateWeight, weightArray | 
| Methods inherited from class java.lang.Object | 
|---|
| finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public BDFGraph()
public BDFGraph(int nodeCount)
nodeCount - The number of nodes.
public BDFGraph(int nodeCount,
                int edgeCount)
nodeCount - The integer specifying the number of nodesedgeCount - The integer specifying the number of edges| Method Detail | 
|---|
public int[][] computePureTopologyMatrix()
public ptolemy.math.Fraction[][] computeStatisticTopologyMatrix()
java.lang.RuntimeException - If boolean edge does not connect to or
  from a boolean node or the probability of boolean node is not set.public java.util.HashMap computeStatisticRepetitions()
public boolean validEdgeWeight(java.lang.Object weight)
validEdgeWeight in class DIFGraphweight - The edge weight to verify.
public boolean validNodeWeight(java.lang.Object weight)
validNodeWeight in class DIFGraphweight - The node weight to verify.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||