org.ow2.frascati.fscript.model
Class ScaIntentNode

java.lang.Object
  extended by org.objectweb.fractal.fscript.model.AbstractNode
      extended by org.objectweb.fractal.fscript.model.fractal.ComponentNode
          extended by org.ow2.frascati.fscript.model.ScaIntentNode
All Implemented Interfaces:
org.objectweb.fractal.fscript.model.Node

public class ScaIntentNode
extends org.objectweb.fractal.fscript.model.fractal.ComponentNode

A Node which represents an SCA intent. This node inherits from the component node as an SCA intent is implemented as an SCA component in FraSCAti.

Author:
Christophe Demarey

Field Summary
 
Fields inherited from class org.objectweb.fractal.fscript.model.AbstractNode
kind
 
Constructor Summary
ScaIntentNode(FraSCAtiModel model, org.ow2.frascati.tinfi.api.control.SCABasicIntentController ic, String name, org.objectweb.fractal.api.Component impl, org.objectweb.fractal.api.Interface itf)
          Creates a new ScaIntentNode.
 
Method Summary
 org.objectweb.fractal.api.Interface getAttachment()
          Get the attachment of this intent, i.e. the interface, the component on which the policy will be apply to.
 org.objectweb.fractal.api.Component getImplementation()
          Returns the component implementing this intent.
 String getName()
          Returns the name of this intent.
 String toString()
           
 
Methods inherited from class org.objectweb.fractal.fscript.model.fractal.ComponentNode
equals, getComponent, getProperty, getState, hashCode, setName, setProperty, setState
 
Methods inherited from class org.objectweb.fractal.fscript.model.AbstractNode
checkSetRequest, getKind, inspect
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScaIntentNode

public ScaIntentNode(FraSCAtiModel model,
                     org.ow2.frascati.tinfi.api.control.SCABasicIntentController ic,
                     String name,
                     org.objectweb.fractal.api.Component impl,
                     org.objectweb.fractal.api.Interface itf)
Creates a new ScaIntentNode.

Parameters:
model - the FraSCAti model this node is part of.
ic - the intent controller managing this intent.
name - the name of the intent.
impl - the intent implementation (an SCA component).
itf - this intent is attached to itf.
Method Detail

getName

public final String getName()
Returns the name of this intent.

Overrides:
getName in class org.objectweb.fractal.fscript.model.fractal.ComponentNode
Returns:
the name of this intent.

getAttachment

public final org.objectweb.fractal.api.Interface getAttachment()
Get the attachment of this intent, i.e. the interface, the component on which the policy will be apply to.

Returns:
the interface (service or reference) for which the intent has been defined.

getImplementation

public final org.objectweb.fractal.api.Component getImplementation()
Returns the component implementing this intent.

Returns:
the component implementing this intent.

toString

public final String toString()
Overrides:
toString in class org.objectweb.fractal.fscript.model.fractal.ComponentNode


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