|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GraphProductionRule
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 |
public static int globalRuleCounter
public int ruleNumber
Constructor Detail |
public GraphProductionRule(Subgraph left, Subgraph right, Nonterminal nterm, SimilarityMeasure meas)
public GraphProductionRule(Nonterminal nterm, SimilarityMeasure meas)
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |