|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MusicGraph | +--Subgraph | +--NonSeqSubgraph
A non-sequential subgraph represents any connected subset of vertices inside a mother graph.
Field Summary |
Fields inherited from class Subgraph |
mothergraph |
Fields inherited from class MusicGraph |
edges, title, vertices |
Constructor Summary | |
NonSeqSubgraph(MusicVertex mv,
MotherGraph mother)
Constructs a NonSeqSubgraph with only one MusicVertex . |
|
NonSeqSubgraph(java.lang.String t,
MotherGraph mother)
Neutral constructor for subgraphing. |
Method Summary | |
java.lang.Object |
clone()
Returns a shallow clone of this NonSeqSubgraph. |
jm.music.data.Score |
convertToScore()
Converts this SeqSubgraph to a Score; includes only notes in this subgraph. |
boolean |
extend_followIn(MusicVertex mv)
Tries to extend this non-sequential subgraph along a FOLLOW in-edge of the MusicVertex mv; returns true if the operation succeeded, otherwise false. |
boolean |
extend_followOut(MusicVertex mv)
Tries to extend this non-sequential subgraph along a FOLLOW out-edge of the MusicVertex mv; returns true if the operation succeeded, otherwise false. |
boolean |
extend_simult(MusicVertex mv)
Tries to extend this non-sequential subgraph along a SIMULTANEOUS edge of the MusicVertex mv; returns true if the operation succeeded, otherwise false. |
void |
extend(int times)
Extends this non-sequential subgraph a number of times. |
int |
getLeftExtensibility()
Returns how many times this Subgraph may be extended to the left. |
int |
getMaximalSequentialSubgraphSize()
Returns the size of the largest possible sequential subgraph of this NonSeqSubgraph. |
double |
getMothergraphCoverage()
Deprecated. Not used anymore. |
int |
getRightExtensibility()
Returns how many times this Subgraph may be extended to the right. |
int |
numberOfLeftmostRests()
Deprecated. Not used anymore. |
int |
numberOfRightmostRests()
Deprecated. Not used anymore. |
void |
shorten(int times)
Removes a number of MusicVertex 's from this
non-sequential subgraph; only vertices that do not split this
subgraph may be removed. |
void |
slide(int times)
It is not as obvious to define sliding for non-sequential subgraphs as it is for sequential subgraphs; this slide-operation simply calls extend(1) and shorten(1). |
NonSeqSubgraph[] |
splitToPartVoices()
Returns an array of MusicGraphs that are subgraphs of this graph, each representing a Part from the originating Score; NB: At present, the returned NonSeqSubgraphs may be unconnected (i.e. there can be vertices inside them who are not connected with the rest of the NonSeqSubgraph). |
java.lang.String |
toString()
Returns a string with the toString's of all vertices and edges in this MusicGraph. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NonSeqSubgraph(java.lang.String t, MotherGraph mother)
public NonSeqSubgraph(MusicVertex mv, MotherGraph mother)
MusicVertex
.
Method Detail |
public void extend(int times) throws java.lang.Exception
extend
in class Subgraph
java.lang.Exception
public boolean extend_followIn(MusicVertex mv) throws java.lang.Exception
java.lang.Exception
public boolean extend_followOut(MusicVertex mv) throws java.lang.Exception
java.lang.Exception
public boolean extend_simult(MusicVertex mv) throws java.lang.Exception
java.lang.Exception
public void shorten(int times) throws java.lang.Exception
MusicVertex
's from this
non-sequential subgraph; only vertices that do not split this
subgraph may be removed.
shorten
in class Subgraph
java.lang.Exception
public void slide(int times) throws java.lang.Exception
slide
in class Subgraph
java.lang.Exception
public java.lang.String toString()
MusicGraph
toString
in class Subgraph
public java.lang.Object clone()
clone
in class MusicGraph
public int getLeftExtensibility()
getLeftExtensibility
in class Subgraph
public int getRightExtensibility()
getRightExtensibility
in class Subgraph
public jm.music.data.Score convertToScore()
convertToScore
in class MusicGraph
public NonSeqSubgraph[] splitToPartVoices()
public int getMaximalSequentialSubgraphSize()
getMaximalSequentialSubgraphSize
in class MusicGraph
public double getMothergraphCoverage()
getMothergraphCoverage
in class Subgraph
public int numberOfLeftmostRests()
numberOfLeftmostRests
in class Subgraph
public int numberOfRightmostRests()
numberOfRightmostRests
in class Subgraph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |