chordDiagrams
Class FrameGenDisconnected
java.lang.Object
chordDiagrams.ConfigutaionHolder
chordDiagrams.UnframedDiagramGenerator
chordDiagrams.FrameGen2
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FrameGenDisconnected
public FrameGenDisconnected(int n,
int k)
- Constructs an instance of the generator
- Parameters:
n
- number of chordsk
- number of links
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.