org.ow2.frascati.fscript.model
Class ScaRemoveAction

java.lang.Object
  extended by org.ow2.frascati.fscript.model.ScaRemoveAction
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, org.objectweb.fractal.fscript.procedures.NativeProcedure, org.objectweb.fractal.fscript.procedures.Procedure, ScaNativeProcedure

public class ScaRemoveAction
extends Object
implements ScaNativeProcedure

Implements the sca-remove() action to remove SCA composites from the FraSCAti Domain.

Author:
Christophe Demarey.

Field Summary
static String MODEL_ITF_NAME
          The model client interface name.
 
Constructor Summary
ScaRemoveAction()
          Default constructor.
 
Method Summary
 Object apply(List<Object> args, org.objectweb.fractal.fscript.interpreter.Context ctx)
          Apply this procedure to the specified arguments.
 void bindFc(String itfName, Object srvItf)
           
 String getName()
          Returns the name of the procedure.
 org.objectweb.fractal.fscript.types.Signature getSignature()
          Returns the signature of this procedure.
 boolean isPureFunction()
          Tests whether this procedure is a pure function (i.e. without side-effect), or an action (with potential side-effects).
 String[] listFc()
           
 Object lookupFc(String itfName)
           
 void unbindFc(String itfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODEL_ITF_NAME

public static final String MODEL_ITF_NAME
The model client interface name.

See Also:
Constant Field Values
Constructor Detail

ScaRemoveAction

public ScaRemoveAction()
Default constructor.

Method Detail

getName

public final String getName()
Returns the name of the procedure.

Specified by:
getName in interface org.objectweb.fractal.fscript.procedures.Procedure
Returns:
the name of the procedure.

getSignature

public org.objectweb.fractal.fscript.types.Signature getSignature()
Returns the signature of this procedure.

Specified by:
getSignature in interface org.objectweb.fractal.fscript.procedures.Procedure
Returns:
the signature of this procedure.

isPureFunction

public boolean isPureFunction()
Tests whether this procedure is a pure function (i.e. without side-effect), or an action (with potential side-effects).

Specified by:
isPureFunction in interface org.objectweb.fractal.fscript.procedures.Procedure
Returns:
true if this procedure is a pure function.

apply

public Object apply(List<Object> args,
                    org.objectweb.fractal.fscript.interpreter.Context ctx)
             throws org.objectweb.fractal.fscript.ScriptExecutionError
Apply this procedure to the specified arguments.

Specified by:
apply in interface org.objectweb.fractal.fscript.procedures.NativeProcedure
Parameters:
args - the arguments of the procedure call.
ctx - the execution context in which to execute the procedure.
Returns:
the value returned by the procedure.
Throws:
org.objectweb.fractal.fscript.ScriptExecutionError - if any error occurred during the execution of the procedure.

listFc

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

bindFc

public void bindFc(String itfName,
                   Object srvItf)
            throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

lookupFc

public Object lookupFc(String itfName)
                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(String itfName)
              throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException


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