|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.gui.beans.FlowRunner
public class FlowRunner
Small utility class for executing KnowledgeFlow flows outside of the KnowledgeFlow application
Constructor Summary | |
---|---|
FlowRunner()
Constructor |
Method Summary | |
---|---|
java.util.Vector |
getFlows()
Get the vector holding the flow(s) |
void |
load(java.lang.String fileName)
Load a serialized KnowledgeFlow (either binary or xml) |
void |
loadBinary(java.lang.String fileName)
Load a binary serialized KnowledgeFlow |
void |
loadXML(java.lang.String fileName)
Load an XML serialized KnowledgeFlow |
static void |
main(java.lang.String[] args)
Main method for testing this class. |
void |
run()
Launch all loaded KnowledgeFlow |
void |
setFlows(java.util.Vector beans)
Set the vector holding the flows(s) to run |
void |
setLog(Logger log)
|
void |
stopAllFlows()
|
void |
waitUntilFinished()
Waits until all flows have finished executing before returning |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowRunner()
Method Detail |
---|
public void setLog(Logger log)
public void stopAllFlows()
public void waitUntilFinished()
public void load(java.lang.String fileName) throws java.lang.Exception
fileName
- the name of the file to load from
java.lang.Exception
- if something goes wrongpublic void loadBinary(java.lang.String fileName) throws java.lang.Exception
fileName
- the name of the file to load from
java.lang.Exception
- if something goes wrongpublic void loadXML(java.lang.String fileName) throws java.lang.Exception
fileName
- the name of the file to load from
java.lang.Exception
- if something goes wrongpublic java.util.Vector getFlows()
public void setFlows(java.util.Vector beans)
beans
- the Vector holding the flows to runpublic void run() throws java.lang.Exception
java.lang.Exception
- if something goes wrong during executionpublic static void main(java.lang.String[] args)
Usage:
Usage:\n\nFlowRunner
args
- command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |