|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scufl.ScuflModel
public class ScuflModel
Represents a single scufl workflow model
| Field Summary | |
|---|---|
boolean |
isFiringEvents
Whether the model should fire events to its listeners |
| Constructor Summary | |
|---|---|
ScuflModel()
|
|
| Method Summary | |
|---|---|
void |
addConcurrencyConstraint(ConcurrencyConstraint the_constraint)
Add a concurrency constraint to the model |
void |
addDataConstraint(DataConstraint the_constraint)
Add a data constraint to the model |
void |
addListener(ScuflModelEventListener listener)
Add a new ScuflModelEventListener to the listener list. |
void |
addProcessor(Processor processor)
Add a processor to the model. |
void |
clear()
Clear the model, retaining any existing listeners but removing all model data. |
ScuflModel |
clone()
|
void |
collectAllProcessors(java.util.Map target,
java.lang.String prefix)
Crawl down the workflow locating all processors and expanding nested workflow processors recursively to get a complete list of all (non workflow) processors in the workflow. |
void |
destroyConcurrencyConstraint(ConcurrencyConstraint the_constraint)
Remove a concurrency constraint from the model |
void |
destroyDataConstraint(DataConstraint the_constraint)
Remove a data constraint from the model |
void |
destroyProcessor(Processor processor)
Destroy a processor, this also removes any data constraints that have the processor as either a source or a sink. |
void |
fireModelEvent(ScuflModelEvent event)
Handle a ScuflModelEvent from one of our children or self, only send an event notification if the isFiringEvents is set to true. |
void |
forceUpdate()
Create an internal model event to force an update of the model |
ConcurrencyConstraint[] |
getConcurrencyConstraints()
Return an array of the concurrency constraints defined within this workflow model |
DataConstraint[] |
getDataConstraints()
Return an array of data constraints defined within this workflow model |
WorkflowDescription |
getDescription()
|
ScuflModelEventListener[] |
getListeners()
Get an array copy of ScuflMovelEventListener implementors registered with this ScuflModel. |
int |
getLogLevel()
|
Processor[] |
getProcessors()
Return an array of the Processor objects defined by this workflow model |
Processor[] |
getProcessorsOfType(java.lang.Class type)
Returns an array of Processors that are an instance of the Class |
java.lang.String |
getValidProcessorName(java.lang.String originalName)
Get the next valid name based on the specified arbitrary string that could be used to create a new processor. |
Port[] |
getWorkflowSinkPorts()
as for the getWorkflowSourcePorts, but returns an array of ports that act as overal outputs from the workflow. |
Processor |
getWorkflowSinkProcessor()
Return the internal processor that holds the overall workflow sink ports |
Port[] |
getWorkflowSourcePorts()
Return all the ports that act as overal workflow inputs; in this case the workflow input ports are actually going to be instances of OutputPort, this is because they act as flow sources into the workflow. |
Processor |
getWorkflowSourceProcessor()
Return the internal processor that represents the workflow sources. |
boolean |
isOffline()
Is the workflow in offline mode? |
Port |
locatePort(java.lang.String port_specifier)
Locate a given named port, the name is in the form [PROCESSOR]:[PORT], and is not case sensitive. |
Processor |
locateProcessor(java.lang.String processor_name)
Locate a named processor |
void |
removeListener(ScuflModelEventListener listener)
Remove a ScuflModelEventListener from the listener list. |
void |
removeListeners()
Remove all listeners, and in effect terminate the NotifyThread |
void |
setDescription(WorkflowDescription description)
|
void |
setEventStatus(boolean reportEvents)
Set the event reporting state, useful if you know you're going to be generating a large number of model events that actually reflect only a single change. |
void |
setLogLevel(int level)
|
void |
setOffline(boolean goOffline)
Set the online / offline status, true sets to offline, false to online (the initial value). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean isFiringEvents
| Constructor Detail |
|---|
public ScuflModel()
| Method Detail |
|---|
public ScuflModel clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void clear()
public boolean isOffline()
public void setOffline(boolean goOffline)
throws SetOnlineException
SetOnlineExceptionpublic int getLogLevel()
public void setLogLevel(int level)
public WorkflowDescription getDescription()
public void setDescription(WorkflowDescription description)
public java.lang.String getValidProcessorName(java.lang.String originalName)
public Port[] getWorkflowSourcePorts()
public Port[] getWorkflowSinkPorts()
public Processor getWorkflowSourceProcessor()
public Processor getWorkflowSinkProcessor()
public Processor[] getProcessors()
public Processor[] getProcessorsOfType(java.lang.Class type)
public void collectAllProcessors(java.util.Map target,
java.lang.String prefix)
public void addProcessor(Processor processor)
java.lang.NullPointerException - if the processor is nullpublic void destroyProcessor(Processor processor)
public void addDataConstraint(DataConstraint the_constraint)
public void destroyDataConstraint(DataConstraint the_constraint)
public void addConcurrencyConstraint(ConcurrencyConstraint the_constraint)
public void destroyConcurrencyConstraint(ConcurrencyConstraint the_constraint)
public ConcurrencyConstraint[] getConcurrencyConstraints()
public DataConstraint[] getDataConstraints()
public void setEventStatus(boolean reportEvents)
public void fireModelEvent(ScuflModelEvent event)
public void addListener(ScuflModelEventListener listener)
public void removeListener(ScuflModelEventListener listener)
public void removeListeners()
public ScuflModelEventListener[] getListeners()
public Port locatePort(java.lang.String port_specifier)
throws UnknownProcessorException,
UnknownPortException,
MalformedNameException
UnknownProcessorException
UnknownPortException
MalformedNameException
public Processor locateProcessor(java.lang.String processor_name)
throws UnknownProcessorException
UnknownProcessorExceptionpublic void forceUpdate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||