|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectchordDiagrams.ConfigutaionHolder
public abstract class ConfigutaionHolder
This class is to provide an easy way to access lists of diagrams. This allows to save computation time by not-recomputing known lists.
Field Summary | |
---|---|
java.util.HashMap<java.lang.String,diagram> |
configs
File with diagrams |
Constructor Summary | |
---|---|
ConfigutaionHolder()
|
Method Summary | |
---|---|
abstract java.lang.String |
getFileName()
Generates a filename to store the diagram list into. |
boolean |
isNew(diagram a)
checks whether a given configuration is new, i.e. |
boolean |
loadConfigs()
Load the diagram data from file. |
static java.lang.Object |
loadObject(java.lang.String fname)
Attempts to load an Object from file. |
boolean |
saveConfigs()
Saves the daigrams (i.e., the configs arraylist) to the file The filename is given by getFileName() function and is determined by n and k. |
static boolean |
saveObject(java.lang.Object obj,
java.lang.String fname)
Saves an object to file to a file with a given filename |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.HashMap<java.lang.String,diagram> configs
Constructor Detail |
---|
public ConfigutaionHolder()
Method Detail |
---|
public boolean saveConfigs()
public boolean loadConfigs()
public boolean isNew(diagram a)
a
- the diagram to check for presence in the list of diagramspublic abstract java.lang.String getFileName()
public static java.lang.Object loadObject(java.lang.String fname)
fname
- Filename to load the object from
public static boolean saveObject(java.lang.Object obj, java.lang.String fname)
obj
- The object to save to a filefname
- The filename to save to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |