chordDiagrams
Class FrameGen2

java.lang.Object
  extended by chordDiagrams.ConfigutaionHolder
      extended by chordDiagrams.UnframedDiagramGenerator
          extended by 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

Field Summary
 
Fields inherited from class chordDiagrams.UnframedDiagramGenerator
conf, count, k, n
 
Fields inherited from class chordDiagrams.ConfigutaionHolder
configs
 
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 chordDiagrams.UnframedDiagramGenerator
backtrack, GenerateDiagrams, init, isConnected, isLegitSkip_v2, linkSize, OutDiag, ProduceLinkConfigs
 
Methods inherited from class chordDiagrams.ConfigutaionHolder
isNew, loadConfigs, loadObject, saveConfigs, saveObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameGen2

public FrameGen2(int n,
                 int k)
Constructs an instance of the generator

Parameters:
n - number of chords
k - number of links
Method Detail

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 poisition
skip - skip number
links - link config in regular format
linkcolors - 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