com.ebmwebsourcing.easyviper.core.impl.engine
Class NodeImpl
java.lang.Object
com.ebmwebsourcing.easyviper.core.impl.engine.ExecutableElementImpl
com.ebmwebsourcing.easyviper.core.impl.engine.NodeImpl
- All Implemented Interfaces:
- com.ebmwebsourcing.easyviper.core.api.engine.Element, com.ebmwebsourcing.easyviper.core.api.engine.ExecutableElement, com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent, com.ebmwebsourcing.easyviper.core.api.engine.Node, java.io.Serializable
- Direct Known Subclasses:
- ScopeImpl
public class NodeImpl
- extends ExecutableElementImpl
- implements com.ebmwebsourcing.easyviper.core.api.engine.Node
- Author:
- Nicolas Salatge - eBM WebSourcing
- See Also:
- Serialized Form
|
Field Summary |
protected com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour |
behaviour
|
protected java.util.Map<java.lang.String,com.ebmwebsourcing.easyviper.core.api.engine.Node> |
childNodes
child childNodes |
protected com.ebmwebsourcing.easyviper.core.api.engine.Execution |
execution
|
protected java.util.Map<java.lang.String,com.ebmwebsourcing.easyviper.core.api.engine.Transition> |
incomingTransitions
|
protected java.util.Map<java.lang.String,com.ebmwebsourcing.easyviper.core.api.engine.Transition> |
outgoingTransitions
|
|
Constructor Summary |
NodeImpl()
Default constructor |
|
Method Summary |
void |
create()
Create the scope behaviour |
void |
destroy()
Destroy the NodeImpl behaviour |
void |
execute()
|
com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour |
getActivity()
|
com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour |
getBehaviour()
|
java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Node> |
getChildNodes()
|
org.objectweb.fractal.api.Component |
getComponent()
|
com.ebmwebsourcing.easyviper.core.api.engine.Execution |
getExecution()
|
java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Transition> |
getIncomingTransitions()
|
java.util.logging.Logger |
getLogger()
|
java.util.Map<java.lang.String,com.ebmwebsourcing.easyviper.core.api.engine.Transition> |
getMapIncomingTransitions()
|
java.util.Map<java.lang.String,com.ebmwebsourcing.easyviper.core.api.engine.Transition> |
getMapOutgoingTransitions()
|
java.lang.String |
getName()
|
java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Transition> |
getOutgoingTransitions()
|
com.ebmwebsourcing.easyviper.core.api.engine.Node |
getParentNode()
|
void |
init(org.objectweb.fractal.api.Component fractalNode)
|
java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.ExecutableElement> |
selectDefaultNextTarget()
|
void |
setActivity(com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour behaviour)
|
void |
setExecution(com.ebmwebsourcing.easyviper.core.api.engine.Execution exec)
|
void |
setLog(java.util.logging.Logger logger)
|
void |
setName(java.lang.String name)
|
void |
setParentNode(com.ebmwebsourcing.easyviper.core.api.engine.Node parentNode)
|
void |
start()
Start the NodeImpl behaviour |
void |
stop()
Stop the NodeImpl 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.ExecutableElement |
getNextSelectedExecutableElements |
childNodes
protected java.util.Map<java.lang.String,com.ebmwebsourcing.easyviper.core.api.engine.Node> childNodes
- child childNodes
incomingTransitions
protected java.util.Map<java.lang.String,com.ebmwebsourcing.easyviper.core.api.engine.Transition> incomingTransitions
outgoingTransitions
protected java.util.Map<java.lang.String,com.ebmwebsourcing.easyviper.core.api.engine.Transition> outgoingTransitions
behaviour
protected com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour behaviour
execution
protected com.ebmwebsourcing.easyviper.core.api.engine.Execution execution
NodeImpl
public NodeImpl()
- Default constructor
- Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
getComponent
public org.objectweb.fractal.api.Component getComponent()
- Specified by:
getComponent in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
create
public void create()
throws com.ebmwebsourcing.easyviper.core.api.CoreException
- Create the scope behaviour
- Specified by:
create in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
- Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
init
public void init(org.objectweb.fractal.api.Component fractalNode)
throws com.ebmwebsourcing.easyviper.core.api.CoreException
- Specified by:
init in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
- Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
start
public void start()
throws com.ebmwebsourcing.easyviper.core.api.CoreException
- Start the NodeImpl behaviour
- Specified by:
start in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
- Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
stop
public void stop()
throws com.ebmwebsourcing.easyviper.core.api.CoreException
- Stop the NodeImpl behaviour
- Specified by:
stop in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
- Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
destroy
public void destroy()
throws com.ebmwebsourcing.easyviper.core.api.CoreException
- Destroy the NodeImpl behaviour
- Specified by:
destroy in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
- Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
getName
public java.lang.String getName()
throws com.ebmwebsourcing.easyviper.core.api.CoreException
- Specified by:
getName in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
- Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
setName
public void setName(java.lang.String name)
throws com.ebmwebsourcing.easyviper.core.api.CoreException
- Specified by:
setName in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
- Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
setActivity
public void setActivity(com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour behaviour)
- Specified by:
setActivity in interface com.ebmwebsourcing.easyviper.core.api.engine.Node
getActivity
public com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour getActivity()
execute
public void execute()
throws com.ebmwebsourcing.easyviper.core.api.CoreException
- Specified by:
execute in interface com.ebmwebsourcing.easyviper.core.api.engine.ExecutableElement
- Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
selectDefaultNextTarget
public java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.ExecutableElement> selectDefaultNextTarget()
throws com.ebmwebsourcing.easyviper.core.api.CoreException
- Specified by:
selectDefaultNextTarget in interface com.ebmwebsourcing.easyviper.core.api.engine.ExecutableElement
- Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
getParentNode
public com.ebmwebsourcing.easyviper.core.api.engine.Node getParentNode()
- Specified by:
getParentNode in interface com.ebmwebsourcing.easyviper.core.api.engine.Node
setParentNode
public void setParentNode(com.ebmwebsourcing.easyviper.core.api.engine.Node parentNode)
getExecution
public com.ebmwebsourcing.easyviper.core.api.engine.Execution getExecution()
- Specified by:
getExecution in interface com.ebmwebsourcing.easyviper.core.api.engine.ExecutableElement
getChildNodes
public java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Node> getChildNodes()
- Specified by:
getChildNodes in interface com.ebmwebsourcing.easyviper.core.api.engine.Node
getBehaviour
public com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour getBehaviour()
- Specified by:
getBehaviour in interface com.ebmwebsourcing.easyviper.core.api.engine.Node
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getIncomingTransitions
public java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Transition> getIncomingTransitions()
- Specified by:
getIncomingTransitions in interface com.ebmwebsourcing.easyviper.core.api.engine.Node
getOutgoingTransitions
public java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Transition> getOutgoingTransitions()
- Specified by:
getOutgoingTransitions in interface com.ebmwebsourcing.easyviper.core.api.engine.Node
getMapOutgoingTransitions
public java.util.Map<java.lang.String,com.ebmwebsourcing.easyviper.core.api.engine.Transition> getMapOutgoingTransitions()
- Specified by:
getMapOutgoingTransitions in interface com.ebmwebsourcing.easyviper.core.api.engine.Node
getMapIncomingTransitions
public java.util.Map<java.lang.String,com.ebmwebsourcing.easyviper.core.api.engine.Transition> getMapIncomingTransitions()
- Specified by:
getMapIncomingTransitions in interface com.ebmwebsourcing.easyviper.core.api.engine.Node
setLog
public void setLog(java.util.logging.Logger logger)
- Specified by:
setLog in interface com.ebmwebsourcing.easyviper.core.api.engine.Element
getLogger
public java.util.logging.Logger getLogger()
- Specified by:
getLogger in interface com.ebmwebsourcing.easyviper.core.api.engine.Node
setExecution
public void setExecution(com.ebmwebsourcing.easyviper.core.api.engine.Execution exec)
- Specified by:
setExecution in interface com.ebmwebsourcing.easyviper.core.api.engine.Node
Copyright © 2009 eBM WebSourcing. All Rights Reserved.