org.ow2.frascati.fscript.model
Class ScaBindingAxis

java.lang.Object
  extended by org.objectweb.fractal.fscript.model.AbstractAxis
      extended by org.ow2.frascati.fscript.model.ScaBindingAxis
All Implemented Interfaces:
org.objectweb.fractal.fscript.model.Axis

public class ScaBindingAxis
extends org.objectweb.fractal.fscript.model.AbstractAxis

Implements the scabinding axis in FPath. This axis connects client interfaces to the server interface(s) they are bound to. The AbstractAxis.connect(Node, Node) and disconnect(Node, Node) operations on this axis are used to create and destroy bindings.

Author:
Christophe Demarey

Field Summary
 
Fields inherited from class org.objectweb.fractal.fscript.model.AbstractAxis
inputType, model, name, outputType
 
Constructor Summary
ScaBindingAxis(FraSCAtiModel model)
          Default constructor
 
Method Summary
 void disconnect(org.objectweb.fractal.fscript.model.Node source, org.objectweb.fractal.fscript.model.Node dest)
          Remove an SCA binding (dest) from an SCA service or reference (source).
 boolean isModifiable()
           
 boolean isPrimitive()
           
 java.util.Set<org.objectweb.fractal.fscript.model.Node> selectFrom(org.objectweb.fractal.fscript.model.Node source)
          Get a reference to the component implementing the SCA binding (WS, RMI, etc.).
 
Methods inherited from class org.objectweb.fractal.fscript.model.AbstractAxis
connect, getInputNodeType, getModel, getName, getOutputNodeType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScaBindingAxis

public ScaBindingAxis(FraSCAtiModel model)
Default constructor

Parameters:
model - The model referencing this axis.
Method Detail

isPrimitive

public final boolean isPrimitive()

isModifiable

public final boolean isModifiable()

selectFrom

public final java.util.Set<org.objectweb.fractal.fscript.model.Node> selectFrom(org.objectweb.fractal.fscript.model.Node source)
Get a reference to the component implementing the SCA binding (WS, RMI, etc.).

Parameters:
source - the source node from which to select the binding component.
Returns:
the binding component node the given source node is connected to.

disconnect

public final void disconnect(org.objectweb.fractal.fscript.model.Node source,
                             org.objectweb.fractal.fscript.model.Node dest)
Remove an SCA binding (dest) from an SCA service or reference (source).

Specified by:
disconnect in interface org.objectweb.fractal.fscript.model.Axis
Overrides:
disconnect in class org.objectweb.fractal.fscript.model.AbstractAxis


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