org.objectweb.fractal.task.core.composition
Class Interpreter

java.lang.Object
  extended by org.objectweb.fractal.task.core.composition.Interpreter
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, CompositeTaskFactory

public class Interpreter
extends java.lang.Object
implements CompositeTaskFactory, org.objectweb.fractal.api.control.BindingController


Field Summary
static java.lang.String CLIENT_LOADER_NAME
          the name of the clientLoaderItf interface.
 TaskCompositionLoader clientLoaderItf
          The Loader interface used to load the composition schema.
 
Constructor Summary
Interpreter()
           
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 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.
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_LOADER_NAME

public static final java.lang.String CLIENT_LOADER_NAME
the name of the clientLoaderItf interface.

See Also:
Constant Field Values

clientLoaderItf

public TaskCompositionLoader clientLoaderItf
The Loader interface used to load the composition schema.

Constructor Detail

Interpreter

public Interpreter()
Method Detail

newCompositeTask

public 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
Description copied from interface: CompositeTaskFactory
Creates a composite task component.

Specified by:
newCompositeTask in interface CompositeTaskFactory
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

public 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
Description copied from interface: CompositeTaskFactory
Creates a composite task component.

Specified by:
newCompositeTask in interface CompositeTaskFactory
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.

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
            throws org.objectweb.fractal.api.NoSuchInterfaceException,
                   org.objectweb.fractal.api.control.IllegalBindingException,
                   org.objectweb.fractal.api.control.IllegalLifeCycleException
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
                          throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

unbindFc

public void unbindFc(java.lang.String clientItfName)
              throws org.objectweb.fractal.api.NoSuchInterfaceException,
                     org.objectweb.fractal.api.control.IllegalBindingException,
                     org.objectweb.fractal.api.control.IllegalLifeCycleException
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException


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