public class TaskGraphFactoryImp extends java.lang.Object implements TaskGraphFactory
FACTORY_NAME, TASKGRAPH_FACTORY_RENDENRING_HINT
Constructor and Description |
---|
TaskGraphFactoryImp(TrianaProperties properties)
Constructs a taskgraph factory
|
Modifier and Type | Method and Description |
---|---|
Cable |
createCable(Node sendnode,
Node recnode) |
TaskGraph |
createGroupTask(Task[] tasks,
TaskGraph parent,
boolean preserveinst) |
Task |
createTask(Tool tool,
TaskGraph parent,
boolean preserveinst) |
TaskGraph |
createTaskGraph(TaskGraph taskgraph,
boolean preserveinst)
Creates an empty taskgraph inherting properties from the specified taskgraph
|
java.lang.String[] |
getRegisteredProxyTypes() |
TaskFactory[] |
getRegisteredTaskGraphFactories(java.lang.String proxytype) |
boolean |
isRegisteredTaskGraphFactory(java.lang.String proxytype) |
void |
registerTaskGraphFactory(java.lang.String proxytype,
TaskFactory factory)
Registers a taskgraph factory for the specified proxy type.
|
void |
unregisterTaskGraphFactory(java.lang.String proxytype,
TaskFactory factory)
Unregisters a taskgraph factory for a proxy type
|
public TaskGraphFactoryImp(TrianaProperties properties)
public void registerTaskGraphFactory(java.lang.String proxytype, TaskFactory factory)
registerTaskGraphFactory
in interface TaskGraphFactory
public void unregisterTaskGraphFactory(java.lang.String proxytype, TaskFactory factory)
unregisterTaskGraphFactory
in interface TaskGraphFactory
public java.lang.String[] getRegisteredProxyTypes()
getRegisteredProxyTypes
in interface TaskGraphFactory
public TaskFactory[] getRegisteredTaskGraphFactories(java.lang.String proxytype)
getRegisteredTaskGraphFactories
in interface TaskGraphFactory
public boolean isRegisteredTaskGraphFactory(java.lang.String proxytype)
isRegisteredTaskGraphFactory
in interface TaskGraphFactory
public TaskGraph createTaskGraph(TaskGraph taskgraph, boolean preserveinst) throws TaskException
createTaskGraph
in interface TaskGraphFactory
TaskException
public TaskGraph createGroupTask(Task[] tasks, TaskGraph parent, boolean preserveinst) throws TaskException
createGroupTask
in interface TaskGraphFactory
TaskException
public Task createTask(Tool tool, TaskGraph parent, boolean preserveinst) throws TaskException
createTask
in interface TaskGraphFactory
TaskException
public Cable createCable(Node sendnode, Node recnode) throws CableException
createCable
in interface TaskGraphFactory
CableException