com.ebmwebsourcing.easyviper.core.impl.engine
Class ExecutionImpl

Package class diagram package ExecutionImpl
java.lang.Object
  extended by com.ebmwebsourcing.easycommons.sca.helper.impl.SCAComponentImpl
      extended by com.ebmwebsourcing.easyviper.core.impl.engine.ExecutionImpl
All Implemented Interfaces:
com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent, com.ebmwebsourcing.easyviper.core.api.engine.Execution

public class ExecutionImpl
extends com.ebmwebsourcing.easycommons.sca.helper.impl.SCAComponentImpl
implements com.ebmwebsourcing.easyviper.core.api.engine.Execution

Author:
Nicolas Salatge - eBM WebSourcing

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
com.ebmwebsourcing.easyviper.core.api.engine.Execution.State
 
Field Summary
protected  java.util.concurrent.BlockingQueue<ExecutionMessage> executionMessages
           
 
Constructor Summary
ExecutionImpl()
           
 
Method Summary
 void addExecution(com.ebmwebsourcing.easyviper.core.api.engine.Execution childExecution)
           
 com.ebmwebsourcing.easyviper.core.api.engine.Execution createChildExecution()
           
 void destroySCAComponent()
          Destroy the ExecutionImpl behaviour
 void end()
           
 void execute(com.ebmwebsourcing.easyviper.core.api.engine.Node execElmt)
           
 java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution> getChildExecutions()
           
 com.ebmwebsourcing.easyviper.core.api.engine.Node getCurrentTarget()
           
 com.ebmwebsourcing.easyviper.core.api.engine.Execution getParentExecution()
           
 com.ebmwebsourcing.easyviper.core.api.engine.Scope getParentScope()
           
 long getSpeedTime()
           
 com.ebmwebsourcing.easyviper.core.api.engine.Execution.State getState()
           
 boolean hasNextExecutableElement()
           
 void init()
           
 boolean isStepByStep()
           
 void notifyParentExecution()
           
 void removeChildExecution(com.ebmwebsourcing.easyviper.core.api.engine.Execution execution)
           
 void removeChildExecutions()
           
 void run()
           
 void runSlowly(long time)
           
 void runStepByStep()
           
 void setLog(java.util.logging.Logger logger)
           
 void setNextExecutableElements(com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent sender, java.util.Collection<? extends com.ebmwebsourcing.easyviper.core.api.engine.Node> nextExecutableElements)
           
 void setNextExecutableElements(com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent sender, com.ebmwebsourcing.easyviper.core.api.engine.Node nextExecutableElement)
           
 void setParentExecution(com.ebmwebsourcing.easyviper.core.api.engine.Execution parent)
           
 void setSpeedTime(long time)
           
 void setState(com.ebmwebsourcing.easyviper.core.api.engine.Execution.State state)
           
 void setStateRecursively(com.ebmwebsourcing.easyviper.core.api.engine.Execution.State state)
           
 void setStepByStep(boolean stepByStep)
           
 void signal()
           
 void step()
           
 java.lang.String toString()
           
 
Methods inherited from class com.ebmwebsourcing.easycommons.sca.helper.impl.SCAComponentImpl
createSCAComponent, getComponent, getName, setName, startSCAComponent, stopSCAComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent
createSCAComponent, getComponent, getName, setName, startSCAComponent, stopSCAComponent
 

Field Detail

executionMessages

protected java.util.concurrent.BlockingQueue<ExecutionMessage> executionMessages
Constructor Detail

ExecutionImpl

public ExecutionImpl()
Method Detail

getCurrentTarget

public com.ebmwebsourcing.easyviper.core.api.engine.Node getCurrentTarget()
Specified by:
getCurrentTarget in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

getParentScope

public com.ebmwebsourcing.easyviper.core.api.engine.Scope getParentScope()
                                                                  throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
getParentScope in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

run

public void run()
         throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
run in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

removeChildExecution

public void removeChildExecution(com.ebmwebsourcing.easyviper.core.api.engine.Execution execution)
                          throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
removeChildExecution in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

end

public void end()
         throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
end in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
See Also:
Execution#end(String, boolean)

getChildExecutions

public java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution> getChildExecutions()
Specified by:
getChildExecutions in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

getParentExecution

public com.ebmwebsourcing.easyviper.core.api.engine.Execution getParentExecution()
Specified by:
getParentExecution in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

getState

public com.ebmwebsourcing.easyviper.core.api.engine.Execution.State getState()
Specified by:
getState in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

setStateRecursively

public void setStateRecursively(com.ebmwebsourcing.easyviper.core.api.engine.Execution.State state)
Specified by:
setStateRecursively in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

setState

public void setState(com.ebmwebsourcing.easyviper.core.api.engine.Execution.State state)
Specified by:
setState in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

createChildExecution

public com.ebmwebsourcing.easyviper.core.api.engine.Execution createChildExecution()
                                                                            throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
createChildExecution in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
See Also:
Execution#createChildExecution(String)

addExecution

public void addExecution(com.ebmwebsourcing.easyviper.core.api.engine.Execution childExecution)
                  throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
addExecution in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

removeChildExecutions

public void removeChildExecutions()
                           throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
removeChildExecutions in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

setParentExecution

public void setParentExecution(com.ebmwebsourcing.easyviper.core.api.engine.Execution parent)
Specified by:
setParentExecution in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

hasNextExecutableElement

public final boolean hasNextExecutableElement()
Specified by:
hasNextExecutableElement in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

setNextExecutableElements

public final void setNextExecutableElements(com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent sender,
                                            java.util.Collection<? extends com.ebmwebsourcing.easyviper.core.api.engine.Node> nextExecutableElements)
Specified by:
setNextExecutableElements in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

setNextExecutableElements

public final void setNextExecutableElements(com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent sender,
                                            com.ebmwebsourcing.easyviper.core.api.engine.Node nextExecutableElement)
Specified by:
setNextExecutableElements in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

notifyParentExecution

public final void notifyParentExecution()
                                 throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
notifyParentExecution in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

step

public final void step()
                throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
step in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

execute

public void execute(com.ebmwebsourcing.easyviper.core.api.engine.Node execElmt)
             throws com.ebmwebsourcing.easyviper.core.api.CoreException
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
See Also:
Execution#execute(Node)

getSpeedTime

public long getSpeedTime()
Specified by:
getSpeedTime in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

setSpeedTime

public void setSpeedTime(long time)
Specified by:
setSpeedTime in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

runSlowly

public void runSlowly(long time)
               throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
runSlowly in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

init

public void init()
          throws com.ebmwebsourcing.easyviper.core.api.CoreException
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

runStepByStep

public void runStepByStep()
                   throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
runStepByStep in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

signal

public void signal()
            throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
signal in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

isStepByStep

public boolean isStepByStep()
Specified by:
isStepByStep in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

setStepByStep

public void setStepByStep(boolean stepByStep)
Specified by:
setStepByStep in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

setLog

public void setLog(java.util.logging.Logger logger)
Specified by:
setLog in interface com.ebmwebsourcing.easyviper.core.api.engine.Execution

destroySCAComponent

public void destroySCAComponent()
                         throws com.ebmwebsourcing.easycommons.sca.helper.api.SCAException
Destroy the ExecutionImpl behaviour

Specified by:
destroySCAComponent in interface com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent
Overrides:
destroySCAComponent in class com.ebmwebsourcing.easycommons.sca.helper.impl.SCAComponentImpl
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
com.ebmwebsourcing.easycommons.sca.helper.api.SCAException

toString

public java.lang.String toString()
Overrides:
toString in class com.ebmwebsourcing.easycommons.sca.helper.impl.SCAComponentImpl


Copyright © 2012 Petals Link. All Rights Reserved.