|
|||||||||
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.PipeLayout
public class PipeLayout
Pipe Layout stores all information necessary to construct the pipe graph and layout preferences.
Nested Class Summary | |
---|---|
static class |
PipeLayout.RunParameters
The Class RunParameters. |
Field Summary | |
---|---|
protected boolean |
dirty
flag to indicate whether the layout has changed and needs to be saved. |
protected java.io.File |
file
file location for this layout. |
protected boolean |
initializing
flag indicating that layout is initializing and should not be edited. |
protected long |
lastModified
Time for when the file was last modified. |
protected PipeLayout.RunParameters |
params
Layout preferences. |
protected java.util.Vector<PipeModule> |
pipes
List of all modules for this layout. |
protected PipeScheduler |
scheduler
scheduler used to schedule execution of this layout. |
Constructor Summary | |
---|---|
PipeLayout()
Instantiates a new pipe layout. |
|
PipeLayout(PipeAlgorithm algo)
Instantiates a new pipe layout. |
|
PipeLayout(PipeInternalFrame frame)
The Constructor. |
Method Summary | |
---|---|
void |
add(PipeModule mod)
Add module to layout. |
static PipeLayout |
clean(PipeLayout layout)
Clean. |
boolean |
close()
Ask user if they want to save before closing layout. |
static PipeLayout |
fromXML(java.lang.String str)
Reconstruct layout from string. |
java.util.Vector<PipeModule> |
getAllDescendantPipes()
Get all modules including parents and children. |
java.util.Vector<PipeModule> |
getAllLeafPipes()
Get all leaf modules. |
java.io.File |
getFileLocation()
Returns file location for this layout. |
long |
getLastModifiedTime()
Gets the last modified time. |
ParamModel |
getModuleInputParam(java.lang.String name)
Get input parameters for particular module by identifying name. |
ParamModel |
getModuleOutputParam(java.lang.String name)
Get module output parameters. |
java.util.Vector<PipeModule> |
getPipes()
Get all modules for this layout. |
PipeLayout.RunParameters |
getRunParameters()
Runt. |
PipeScheduler |
getScheduler()
Get scheduler. |
java.lang.String |
getTitle()
Get title of layout. |
void |
init()
Initialize transient fields that could not be deserialized. |
void |
init(PipeJGraph graph,
javax.swing.ProgressMonitor monitor)
Initialize transient fields that could not be deserialized. |
boolean |
isCurrent()
Detect if current version of layout is most current. |
boolean |
isDirty()
Returns true if layout has changed since last save. |
boolean |
isInitializing()
Returns true if layout is initializing and should not be edited. |
static PipeLayout |
open()
Create "Open Dialog". |
static PipeLayout |
open(java.awt.Component parent)
Create "Open Dialog". |
static PipeLayout |
read(java.io.File f)
Read layout from file. |
void |
remove(PipeModule mod)
Remove module from layout. |
static void |
replacePath(PipeLayout layout,
java.io.File origDir,
java.io.File replaceDir)
Replace path. |
boolean |
save(boolean commit)
Open "Save" dialog. |
boolean |
saveAs()
Open "Save As" dialog. |
boolean |
saveAs(boolean commit)
Open "Save As" dialog. |
void |
setDirty(boolean dirty)
Indicate that the layout has changed since last save. |
void |
setFileLocation(java.io.File file)
Set file location for this layout. |
void |
setFrame(PipeInternalFrame parent)
Set frame used to render this layout. |
void |
setInputDir(java.io.File f)
Set root input directory. |
void |
setInputDir(java.net.URI f)
Set root input directory. |
void |
setMaxHeap(int heap)
Set maximum allowable heap. |
void |
setMaxProcs(int procs)
Set maximum allowable simultaneous processes. |
void |
setNamingConvention(JistPreferences.NamingConvention convention)
Set naming convention for output directory. |
void |
setOutputDir(java.io.File f)
Set root output directory. |
void |
setOutputDir(java.net.URI f)
Set root output directory. |
void |
setRunParams(PipeLayout.RunParameters runParams)
Set runtime parameters. |
void |
setScheduler(PipeScheduler scheduler)
Set scheduler. |
void |
setUseGridEngine(boolean useGrid)
Sets the use grid engine. |
java.lang.String |
toXML()
Serialize class as XML. |
void |
ungroup(PipeAlgorithmGroup mod)
Ungroup module group. |
boolean |
write(java.io.File f,
boolean commit)
Write layout to file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PipeLayout.RunParameters params
protected java.util.Vector<PipeModule> pipes
protected transient java.io.File file
protected transient boolean dirty
protected transient PipeScheduler scheduler
protected transient boolean initializing
protected transient long lastModified
Constructor Detail |
---|
public PipeLayout()
public PipeLayout(PipeAlgorithm algo)
algo
- the algorithmpublic PipeLayout(PipeInternalFrame frame)
frame
- Bind layout to specified frameMethod Detail |
---|
public static PipeLayout fromXML(java.lang.String str)
str
- XML string
public static PipeLayout open()
public static PipeLayout open(java.awt.Component parent)
parent
- Parent component
public static PipeLayout read(java.io.File f)
f
- layout location
public boolean isCurrent()
public long getLastModifiedTime()
public void add(PipeModule mod)
mod
- modulepublic boolean close()
public java.util.Vector<PipeModule> getAllDescendantPipes()
public java.util.Vector<PipeModule> getAllLeafPipes()
public java.io.File getFileLocation()
public ParamModel getModuleInputParam(java.lang.String name)
name
- identifying name
public ParamModel getModuleOutputParam(java.lang.String name)
name
- identifying name
public java.util.Vector<PipeModule> getPipes()
public PipeLayout.RunParameters getRunParameters()
public PipeScheduler getScheduler()
public java.lang.String getTitle()
public void init()
public void init(PipeJGraph graph, javax.swing.ProgressMonitor monitor)
graph
- Layout graph if one is available, null otherwisemonitor
- the monitorpublic boolean isDirty()
public boolean isInitializing()
public void remove(PipeModule mod)
mod
- modulepublic boolean save(boolean commit)
commit
- Force layout to commit input parameters from parameter pane
before saving
public boolean saveAs()
public boolean saveAs(boolean commit)
commit
- Force layout to commit input parameters from parameter pane
before saving
public void setDirty(boolean dirty)
dirty
- true if layout has changedpublic void setFileLocation(java.io.File file)
file
- layout locationpublic void setFrame(PipeInternalFrame parent)
parent
- internal framepublic void setInputDir(java.io.File f)
f
- root input directorypublic void setInputDir(java.net.URI f)
f
- root input directorypublic void setMaxHeap(int heap)
heap
- maximum heap sizepublic void setMaxProcs(int procs)
procs
- maximum number of processespublic void setNamingConvention(JistPreferences.NamingConvention convention)
convention
- naming conventionpublic void setUseGridEngine(boolean useGrid)
useGrid
- the new use grid enginepublic void setOutputDir(java.io.File f)
f
- root output directorypublic void setOutputDir(java.net.URI f)
f
- root output directorypublic void setRunParams(PipeLayout.RunParameters runParams)
runParams
- runtime parameterspublic void setScheduler(PipeScheduler scheduler)
scheduler
- schedulerpublic java.lang.String toXML()
public void ungroup(PipeAlgorithmGroup mod)
mod
- module grouppublic static PipeLayout clean(PipeLayout layout)
layout
- the layout
public static void replacePath(PipeLayout layout, java.io.File origDir, java.io.File replaceDir)
layout
- the layoutorigDir
- the orig dirreplaceDir
- the replace dirpublic boolean write(java.io.File f, boolean commit)
f
- output filecommit
- Force layout commit current values in parameter pane before
saving
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |