com.ebmwebsourcing.easyviper.core.api.engine.behaviour
Class AbstractBehaviourImpl

java.lang.Object
  extended by com.ebmwebsourcing.easyviper.core.api.engine.behaviour.AbstractBehaviourImpl
All Implemented Interfaces:
Behaviour, Element, FractalComponent, java.io.Serializable

public abstract class AbstractBehaviourImpl
extends java.lang.Object
implements Behaviour

Author:
Nicolas Salatge - eBM WebSourcing
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour
Behaviour.State
 
Field Summary
protected  org.objectweb.fractal.api.Component component
          The component.
protected  Behaviour.State state
           
 
Constructor Summary
AbstractBehaviourImpl()
          Default constructor
 
Method Summary
 void create()
          Create the AbstractBehaviourImpl behaviour
 void destroy()
          Destroy the AbstractBehaviourImpl behaviour
 void execute()
           
abstract  void executeActivity()
           
 org.objectweb.fractal.api.Component getComponent()
           
 java.lang.String getName()
           
abstract  Node getNode()
           
 javax.xml.namespace.QName getQName()
           
 Behaviour.State getState()
           
 void init(org.objectweb.fractal.api.Component fractalNode)
           
 void setLog(java.util.logging.Logger logger)
           
 void setName(java.lang.String name)
           
 void setQName(javax.xml.namespace.QName name)
           
 void setState(Behaviour.State state)
           
 void start()
          Start the AbstractBehaviourImpl behaviour
 void stop()
          Stop the AbstractBehaviourImpl behaviour
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour
getInitializationContext, setInitializationContext
 

Field Detail

state

protected Behaviour.State state

component

protected org.objectweb.fractal.api.Component component
The component.

Constructor Detail

AbstractBehaviourImpl

public AbstractBehaviourImpl()
Default constructor

Throws:
CoreException
Method Detail

getComponent

public org.objectweb.fractal.api.Component getComponent()
Specified by:
getComponent in interface FractalComponent

create

public void create()
            throws CoreException
Create the AbstractBehaviourImpl behaviour

Specified by:
create in interface FractalComponent
Throws:
CoreException

init

public void init(org.objectweb.fractal.api.Component fractalNode)
          throws CoreException
Specified by:
init in interface FractalComponent
Throws:
CoreException

start

public void start()
           throws CoreException
Start the AbstractBehaviourImpl behaviour

Specified by:
start in interface FractalComponent
Throws:
CoreException

stop

public void stop()
          throws CoreException
Stop the AbstractBehaviourImpl behaviour

Specified by:
stop in interface FractalComponent
Throws:
CoreException

destroy

public void destroy()
             throws CoreException
Destroy the AbstractBehaviourImpl behaviour

Specified by:
destroy in interface FractalComponent
Throws:
CoreException

getName

public java.lang.String getName()
                         throws CoreException
Specified by:
getName in interface FractalComponent
Throws:
CoreException

setName

public void setName(java.lang.String name)
             throws CoreException
Specified by:
setName in interface FractalComponent
Throws:
CoreException

getQName

public javax.xml.namespace.QName getQName()
                                   throws CoreException
Specified by:
getQName in interface Behaviour
Throws:
CoreException

setQName

public void setQName(javax.xml.namespace.QName name)
              throws CoreException
Specified by:
setQName in interface Behaviour
Throws:
CoreException

execute

public void execute()
             throws CoreException
Specified by:
execute in interface Behaviour
Throws:
CoreException

executeActivity

public abstract void executeActivity()
                              throws CoreException
Throws:
CoreException

getNode

public abstract Node getNode()
Specified by:
getNode in interface Behaviour

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getState

public Behaviour.State getState()
Specified by:
getState in interface Behaviour

setState

public void setState(Behaviour.State state)
Specified by:
setState in interface Behaviour

setLog

public void setLog(java.util.logging.Logger logger)
Specified by:
setLog in interface Element


Copyright © 2009-2010 eBM WebSourcing. All Rights Reserved.