org.objectweb.fractal.task.core.composition
Interface CompositeTaskFactory

All Known Subinterfaces:
TaskFactory
All Known Implementing Classes:
BasicTaskFactory, Interpreter

public interface CompositeTaskFactory

Interface to create composite task components from a collection of sub tasks and a composition schema.


Method Summary
 org.objectweb.fractal.api.Component newCompositeTask(java.util.Collection<org.objectweb.fractal.api.Component> subTasks, java.lang.String compositionName, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.Object... parameters)
          Creates a composite task component.
 org.objectweb.fractal.api.Component newCompositeTask(java.util.Collection<org.objectweb.fractal.api.Component> subTasks, java.lang.String compositionName, java.lang.String compositeName, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.Object... parameters)
          Creates a composite task component.
 

Method Detail

newCompositeTask

org.objectweb.fractal.api.Component newCompositeTask(java.util.Collection<org.objectweb.fractal.api.Component> subTasks,
                                                     java.lang.String compositionName,
                                                     java.util.Map<java.lang.Object,java.lang.Object> context,
                                                     java.lang.Object... parameters)
                                                     throws TaskException
Creates a composite task component.

Parameters:
subTasks - the sub tasks of the composite task.
compositionName - the name of the composition schema to apply to the created composite.
context - context.
parameters - the parameters of the composition schema.
Returns:
a composite task component that contains the given sub tasks bound as described in the composition schema.
Throws:
TaskException - if an error occurs.

newCompositeTask

org.objectweb.fractal.api.Component newCompositeTask(java.util.Collection<org.objectweb.fractal.api.Component> subTasks,
                                                     java.lang.String compositionName,
                                                     java.lang.String compositeName,
                                                     java.util.Map<java.lang.Object,java.lang.Object> context,
                                                     java.lang.Object... parameters)
                                                     throws TaskException
Creates a composite task component.

Parameters:
subTasks - the sub tasks of the composite task.
compositionName - the name of the composition schema to apply to the created composite.
compositeName - the name of the created composite.
context - context.
parameters - the parameters of the composition schema.
Returns:
a composite task component that contains the given sub tasks bound as described in the composition schema.
Throws:
TaskException - if an error occurs.


Copyright © 2007-2009 ObjectWeb Consortium. All Rights Reserved.