chordDiagrams
Class FrameGen2
java.lang.Object
chordDiagrams.ConfigutaionHolder
chordDiagrams.UnframedDiagramGenerator
chordDiagrams.FrameGen2
- Direct Known Subclasses:
- FrameGenDisconnected
public class FrameGen2
- extends UnframedDiagramGenerator
Generates all distinct chord diagrams for the framed case,
modulo link rotation and recoloring.
Automatically saves the results to file, and loads the file
instead of recomputing (if the file is found).
- Author:
- Romwell
Constructor Summary |
FrameGen2(int n,
int k)
Constructs an instance of the generator |
Method Summary |
java.lang.String |
getFileName()
Filename that the diagrams will be stored to/loaded from : "frame2_n-k.data" |
boolean |
isLegitSkip(int cur,
int skip,
int[] links,
int[] linkcolors)
All skips allowed in the framed case |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FrameGen2
public FrameGen2(int n,
int k)
- Constructs an instance of the generator
- Parameters:
n
- number of chordsk
- number of links
isLegitSkip
public boolean isLegitSkip(int cur,
int skip,
int[] links,
int[] linkcolors)
- All skips allowed in the framed case
- Overrides:
isLegitSkip
in class UnframedDiagramGenerator
- Parameters:
cur
- starting poisitionskip
- skip numberlinks
- link config in regular formatlinkcolors
- link config in coloring format
- Returns:
getFileName
public java.lang.String getFileName()
- Filename that the diagrams will be stored to/loaded from : "frame2_n-k.data"
- Overrides:
getFileName
in class UnframedDiagramGenerator
- Returns:
- digram list filename