org.ow2.frascati.fscript.model
Class FraSCAtiModel

java.lang.Object
  extended by org.objectweb.fractal.fscript.model.BasicModel
      extended by org.objectweb.fractal.fscript.model.fractal.FractalModel
          extended by org.ow2.frascati.fscript.model.FraSCAtiModel
All Implemented Interfaces:
org.objectweb.fractal.api.control.AttributeController, org.objectweb.fractal.api.control.BindingController, org.objectweb.fractal.api.control.LifeCycleController, org.objectweb.fractal.fscript.model.fractal.FractalModelAttributes, org.objectweb.fractal.fscript.model.fractal.NodeFactory, org.objectweb.fractal.fscript.model.Model, org.objectweb.fractal.fscript.procedures.NativeLibrary

public class FraSCAtiModel
extends org.objectweb.fractal.fscript.model.fractal.FractalModel
implements NodeFactory

This class represents the SCA Fractal component model in terms of the Model APIs. It describes which kinds of nodes are present in a SCA architecture, what properties these nodes have, and what axes can connect these nodes together to form a complete SCA architecture.

Author:
Christophe Demarey.

Field Summary
static String BINDING_FACTORY_ITF
           
static String CLASSLOADER_MANAGER_ITF
           
static String COMPOSITE_MANAGER_ITF
          Names of bindings
static String NAME
           
 
Fields inherited from class org.objectweb.fractal.fscript.model.BasicModel
axes, natives, nodeKinds
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
FraSCAtiModel()
           
 
Method Summary
 void bindFc(String clItfName, Object srvItf)
           
protected  void createAdditionalProcedures()
          Contributes a few custom procedures to manipulate Fractal architecture which can not be described and generated in the framework of the Model APIs.
protected  void createAxes()
          Contributes the axes which can be used to connect Fractal nodes in order to represent the structure of a Fractal architecture.
protected  void createNodeKinds()
          Contributes the different kinds of nodes used to represent Fractal architectures.
 ScaComponentNode createScaComponentNode(org.objectweb.fractal.api.Component comp)
          Create a new ScaComponentNode instance.
 ScaReferenceNode createScaReferenceNode(org.objectweb.fractal.api.Interface itf)
          Create a new ScaReferenceNode instance.
 ScaServiceNode createScaServiceNode(org.objectweb.fractal.api.Interface itf)
          Create a new ScaServiceNode instance.
 String[] listFc()
           
 Object lookupFc(String clItfName)
           
 String toString()
          Print this model.
 void unbindFc(String clItfName)
           
 
Methods inherited from class org.objectweb.fractal.fscript.model.fractal.FractalModel
createAttributeNode, createComponentNode, createInterfaceNode, getInstanciationContext
 
Methods inherited from class org.objectweb.fractal.fscript.model.BasicModel
addAxis, addKind, addKind, addProcedure, getAvailableProcedures, getAxes, getAxis, getFcState, getNativeProcedure, getNodeKind, getNodeKinds, hasProcedure, initialize, startFc, stopFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPOSITE_MANAGER_ITF

public static final String COMPOSITE_MANAGER_ITF
Names of bindings

See Also:
Constant Field Values

CLASSLOADER_MANAGER_ITF

public static final String CLASSLOADER_MANAGER_ITF
See Also:
Constant Field Values

BINDING_FACTORY_ITF

public static final String BINDING_FACTORY_ITF
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

FraSCAtiModel

public FraSCAtiModel()
Method Detail

createNodeKinds

protected void createNodeKinds()
Contributes the different kinds of nodes used to represent Fractal architectures.

Overrides:
createNodeKinds in class org.objectweb.fractal.fscript.model.fractal.FractalModel

createAxes

protected void createAxes()
Contributes the axes which can be used to connect Fractal nodes in order to represent the structure of a Fractal architecture.

Overrides:
createAxes in class org.objectweb.fractal.fscript.model.fractal.FractalModel

createAdditionalProcedures

protected void createAdditionalProcedures()
Contributes a few custom procedures to manipulate Fractal architecture which can not be described and generated in the framework of the Model APIs.

Overrides:
createAdditionalProcedures in class org.objectweb.fractal.fscript.model.fractal.FractalModel

createScaComponentNode

public ScaComponentNode createScaComponentNode(org.objectweb.fractal.api.Component comp)
Create a new ScaComponentNode instance.

Parameters:
comp - The SCA component to encapsulate.
Returns:
the ScaComponentNode instance

createScaServiceNode

public ScaServiceNode createScaServiceNode(org.objectweb.fractal.api.Interface itf)
Create a new ScaServiceNode instance.

Parameters:
comp - The SCA service to encapsulate.
Returns:
the ScaServiceNode instance

createScaReferenceNode

public ScaReferenceNode createScaReferenceNode(org.objectweb.fractal.api.Interface itf)
Create a new ScaReferenceNode instance.

Parameters:
comp - The SCA reference to encapsulate.
Returns:
the ScaReferenceNode instance

toString

public String toString()
Print this model.

Overrides:
toString in class org.objectweb.fractal.fscript.model.fractal.FractalModel

listFc

public String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController
Overrides:
listFc in class org.objectweb.fractal.fscript.model.fractal.FractalModel

lookupFc

public Object lookupFc(String clItfName)
                throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController
Overrides:
lookupFc in class org.objectweb.fractal.fscript.model.fractal.FractalModel
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

bindFc

public void bindFc(String clItfName,
                   Object srvItf)
            throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController
Overrides:
bindFc in class org.objectweb.fractal.fscript.model.fractal.FractalModel
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

unbindFc

public void unbindFc(String clItfName)
              throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController
Overrides:
unbindFc in class org.objectweb.fractal.fscript.model.fractal.FractalModel
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException


Copyright © 2009-2011 OW2 Consortium. All Rights Reserved.