Class GraphProductionRule

java.lang.Object
  |
  +--GraphProductionRule

public class GraphProductionRule
extends java.lang.Object

GraphProductionRule describes a production rule in a graph grammar. These production rules have the general form: the left-hand side is a subgraph composed of a CompoundVertex and a number of other surrounding music vertices that are connected to the compound vertex. The right-hand side is a subgraph composed of these same surrounding vertices now connected not to the compound vertex but to the inner subgraph that was contained in the compound.


Field Summary
static int globalRuleCounter
          A counter used for the labeling of rules.
 int ruleNumber
          The number labeling this GraphProductionRule.
 
Constructor Summary
GraphProductionRule(Nonterminal nterm, SimilarityMeasure meas)
          Constructs a GraphProductionRule without specifying the left and right subgraphs.
GraphProductionRule(Subgraph left, Subgraph right, Nonterminal nterm, SimilarityMeasure meas)
          The full constructor.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

globalRuleCounter

public static int globalRuleCounter
A counter used for the labeling of rules.


ruleNumber

public int ruleNumber
The number labeling this GraphProductionRule.

Constructor Detail

GraphProductionRule

public GraphProductionRule(Subgraph left,
                           Subgraph right,
                           Nonterminal nterm,
                           SimilarityMeasure meas)
The full constructor.


GraphProductionRule

public GraphProductionRule(Nonterminal nterm,
                           SimilarityMeasure meas)
Constructs a GraphProductionRule without specifying the left and right subgraphs.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object