|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.pipeline.PipeLibrary
public class PipeLibrary
Interface to open, edit, and save module definitions.
Nested Class Summary | |
---|---|
static class |
PipeLibrary.CompareFactories
The Class CompareFactories. |
static class |
PipeLibrary.CompareFiles
The Class CompareFiles. |
static class |
PipeLibrary.InitializeTask
Worker to find and initialize module definitions in library directory. |
static class |
PipeLibrary.RebuildTask
Worker to rebuild library from module definitions in the library directory. |
Field Summary | |
---|---|
protected static PipeLibrary |
library
Singleton reference to library. |
Constructor Summary | |
---|---|
protected |
PipeLibrary()
Default constructor. |
Method Summary | |
---|---|
static java.io.File |
askForLibraryDirectory(java.io.File oldDir)
Open file chooser to select directory. |
java.io.File |
createPath(java.io.File discoveredPath,
java.lang.String category)
Creates the path. |
void |
discoverAllMapsAndLoniModules(javax.swing.ProgressMonitor monitor)
Discover all MAPS and LONI files. |
void |
discoverAllModules(javax.swing.ProgressMonitor monitor)
Discover all modules that can be loaded by MAPS. |
void |
discoverInternalMapsModules(javax.swing.ProgressMonitor monitor)
Discover new algorithms along source path. |
static java.util.Vector<java.lang.Class> |
getAllClasses(java.lang.String rootPckg)
Gets the all classes. |
static java.util.Vector<java.lang.Class> |
getAllClasses(java.lang.String rootPckg,
java.lang.String simpleName)
Get all classes starting from root package name. |
static java.lang.String |
getHostName()
Gets the host name. |
static PipeLibrary |
getInstance()
Get singleton reference to library. |
java.io.File |
getLibraryPath()
Get location of library. |
javax.swing.tree.DefaultMutableTreeNode |
getTreeRoot()
Get tree representing algorithm factory hierarchy. |
void |
initModules(javax.swing.ProgressMonitor monitor)
Find and initialize modules from library directory. |
boolean |
loadLibraryPath()
Load library path from MIPAV preferences. |
boolean |
loadLibraryPath(boolean silentFailure)
Load library path from MIPAV preferences. |
boolean |
loadPreferences()
Load existing modules and add them to the tree. |
boolean |
loadPreferences(boolean silentFailure)
Load existing modules and add them to the tree. |
void |
removeAtomicModules(javax.swing.ProgressMonitor monitor)
Remove non-group modules that can be rebuilt from existing script/pipe files or from the source tree. |
void |
setLibraryPath(java.io.File libraryPath)
Set library directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static PipeLibrary library
Constructor Detail |
---|
protected PipeLibrary()
Method Detail |
---|
public static java.lang.String getHostName()
public static java.io.File askForLibraryDirectory(java.io.File oldDir)
oldDir
- the old directory
public static java.util.Vector<java.lang.Class> getAllClasses(java.lang.String rootPckg)
rootPckg
- the root pckg
public static java.util.Vector<java.lang.Class> getAllClasses(java.lang.String rootPckg, java.lang.String simpleName)
rootPckg
- root package namesimpleName
- the simple name
public static PipeLibrary getInstance()
public void discoverAllMapsAndLoniModules(javax.swing.ProgressMonitor monitor)
monitor
- progress monitorpublic void discoverAllModules(javax.swing.ProgressMonitor monitor)
monitor
- progress monitorpublic void discoverInternalMapsModules(javax.swing.ProgressMonitor monitor)
monitor
- the monitorpublic java.io.File createPath(java.io.File discoveredPath, java.lang.String category)
discoveredPath
- the discovered pathcategory
- the category
public java.io.File getLibraryPath()
public javax.swing.tree.DefaultMutableTreeNode getTreeRoot()
public void initModules(javax.swing.ProgressMonitor monitor)
monitor
- progress monitorpublic boolean loadLibraryPath()
public boolean loadLibraryPath(boolean silentFailure)
public boolean loadPreferences()
public boolean loadPreferences(boolean silentFailure)
public void removeAtomicModules(javax.swing.ProgressMonitor monitor)
monitor
- the monitorpublic void setLibraryPath(java.io.File libraryPath)
libraryPath
- library path
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |