public java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution> getChildExecutions() { java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution> ret = service.getChildExecutions(); return ret; }
public java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution> getChildExecutions() { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution> ret = impl.getChildExecutions(); return ret; }
@Override protected void executeOnStarted() throws CoreException { if(getNode().getExecution().getChildExecutions().isEmpty()) { //when the fastest child execution finished log.finest("End of exclusive behaviour."); this.state = State.ACTIVITY_ENDED; } }
@Override protected void executeOnStarted() throws CoreException { if (this.getNode().getExecution().getChildExecutions().isEmpty()) { this.log.finest("fork activity started => number of child executions: " + this.getNode().getExecution().getChildExecutions() .size()); this.log .finest("end fork behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_ENDED; } } }
@Override protected void executeOnStarted() throws CoreException { if (this.getNode().getExecution().getChildExecutions().isEmpty()) { this.log.finest("fork activity started => number of child executions: " + this.getNode().getExecution().getChildExecutions() .size()); this.log .finest("end fork behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_ENDED; } } }
public void stopAllExecutions() throws CoreException { for (final Execution execution : this.getParentExecution() .getChildExecutions()) { ((Execution) execution).stop(); } this.getParentExecution().stop(); }
public void startAllExecutions() throws CoreException { try { for (final Execution execution : this.getParentExecution() .getChildExecutions()) { ((Execution) execution).startSCAComponent(); } this.getParentExecution().startSCAComponent(); } catch (final SCAException e) { throw new CoreException(e); } }
public java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution> getChildExecutions() { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[14]); try { if( handlers.size() == 0 ) { java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution> ret = impl.getChildExecutions(); return ret; } else { org.objectweb.fractal.api.Component comp = getFcComponent(); org.objectweb.fractal.api.Interface itf = getFcItf(); org.ow2.frascati.tinfi.IntentJoinPointImpl<com.ebmwebsourcing.easyviper.core.api.engine.Execution> ijp = new org.ow2.frascati.tinfi.IntentJoinPointImpl(); ijp.init(handlers,comp,itf,impl,METHODS[14]); java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution> ret = (java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution>) ijp.proceed(); return ret; } } catch( Throwable t ) { if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
public void stopAllExecutions() throws CoreException { try { for (final Execution execution : this.getParentExecution() .getChildExecutions()) { ((Execution) execution).stopSCAComponent(); } this.getParentExecution().stopSCAComponent(); } catch (final SCAException e) { throw new CoreException(e); } }
@Override public synchronized void onChildBehaviourNotification(Behaviour childBehaviour) throws CoreException { if(alreadyNotified) { return; } alreadyNotified = true; log.finest("Notification received from "+childBehaviour.getName()); //cancel all the other child executions String execName = childBehaviour.getNode().getExecution().getName(); for(Execution childExec : getNode().getExecution().getChildExecutions()) { if(!execName.equals(childExec.getName())) { log.finest(childExec.getName()+" has been cancelled"); childExec.setState(Execution.State.CANCELLED); getNode().getExecution().removeChildExecution(childExec); } } }
try { if( handlers.size() == 0 ) { java.util.List<com.ebmwebsourcing.easyviper.core.api.engine.Execution> ret = impl.getChildExecutions(); return ret;