chordDiagrams
Class FrameGenDisconnected

java.lang.Object
  extended by chordDiagrams.ConfigutaionHolder
      extended by chordDiagrams.UnframedDiagramGenerator
          extended by chordDiagrams.FrameGen2
              extended by chordDiagrams.FrameGenDisconnected

public class FrameGenDisconnected
extends FrameGen2

Generates all distinct chord diagrams for the framed case, modulo link rotation and recoloring, allowing DISCONNECTED diagrams. 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
FrameGenDisconnected(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 isConnected(diagram d)
          Overriden so that the generator thinks that every diagram is connected, and thus allows all, even disconnected diagrams to be in the list.
 
Methods inherited from class chordDiagrams.FrameGen2
isLegitSkip
 
Methods inherited from class chordDiagrams.UnframedDiagramGenerator
backtrack, GenerateDiagrams, init, 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

FrameGenDisconnected

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

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

getFileName

public java.lang.String getFileName()
Filename that the diagrams will be stored to/loaded from : "frame2_n-k.data"

Overrides:
getFileName in class FrameGen2
Returns:
digram list filename

isConnected

public boolean isConnected(diagram d)
Overriden so that the generator thinks that every diagram is connected, and thus allows all, even disconnected diagrams to be in the list.

Overrides:
isConnected in class UnframedDiagramGenerator
Parameters:
d - diagram whose connectivity is to be checked
Returns:
true always.