public void setNextExecutableElements(final com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent arg0,final com.ebmwebsourcing.easyviper.core.api.engine.Node arg1) { service.setNextExecutableElements(arg0,arg1); }
public void setNextExecutableElements(final com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent arg0,final java.util.Collection<? extends com.ebmwebsourcing.easyviper.core.api.engine.Node> arg1) { service.setNextExecutableElements(arg0,arg1); }
public void setNextExecutableElements(final com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent arg0,final java.util.Collection<? extends com.ebmwebsourcing.easyviper.core.api.engine.Node> arg1) { 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."); } impl.setNextExecutableElements(arg0,arg1); }
public void setNextExecutableElements(final com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent arg0,final com.ebmwebsourcing.easyviper.core.api.engine.Node arg1) { 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."); } impl.setNextExecutableElements(arg0,arg1); }
public void selectDefaultNextTarget() throws CoreException { if (getExecution().hasNextExecutableElement()) return; getExecution().setNextExecutableElements(this, destination); }
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start fork behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; // select all child nodes final List<Node> childs = this.node.getChildNodes(); this.log.finest("fork activity started => number of childs: " + this.getNode().getChildNodes() .size()); getNode().getExecution().setNextExecutableElements(this, childs); }
@Override public final void notifyParentExecution() throws CoreException { getParentExecution().setNextExecutableElements(this, getParentExecution().getCurrentTarget()); }
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start fork behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; // select all child nodes final List<Node> childs = this.node.getChildNodes(); this.log.finest("fork activity started => number of childs: " + this.getNode().getChildNodes() .size()); getNode().getExecution().setNextExecutableElements(this, childs); }
private final void notifyParentExecution() throws CoreException { getParentExecution().setNextExecutableElements(this, getParentExecution().getCurrentTarget()); }
private void whileExecution() throws CoreException { Boolean cond = (Boolean) this.condition.evaluate(this.getNode().getExecution() .getParentScope()); if (cond != null && cond == true) { final List<Node> childs = this.node.getChildNodes(); if ((childs != null) && (childs.size() > 0)) { getNode().getExecution().setNextExecutableElements(this, childs.get(0)); } } else { this.log.finest("end while behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_ENDED; } }
private void whileExecution() throws CoreException { Boolean cond = (Boolean) this.condition.evaluate(this.getNode().getExecution() .getParentScope()); if (cond != null && cond == true) { final List<Node> childs = this.node.getChildNodes(); if ((childs != null) && (childs.size() > 0)) { getNode().getExecution().setNextExecutableElements(this, childs.get(0)); } } else { this.log.finest("end while behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_ENDED; } }
getNode().getExecution().setNextExecutableElements(this, selectedChild); find = true; this.getNode().getExecution().setNextExecutableElements(this, selectedChild); find = true;
private void repeatUntilExecution(boolean first) throws CoreException { boolean ok = true; if(!first) { Boolean cond = (Boolean) this.condition.evaluate(this.getNode().getExecution().getParentScope()); if (cond == null || cond == false) { this.log.finest("end repeat until behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_ENDED; ok = false; } } if(ok) { final List<Node> childs = this.node.getChildNodes(); if ((childs != null) && (childs.size() > 0)) { getNode().getExecution().setNextExecutableElements(this, childs.get(0)); } } }
public void setNextExecutableElements(final com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent arg0,final com.ebmwebsourcing.easyviper.core.api.engine.Node arg1) { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[25]); try { if( handlers.size() == 0 ) { impl.setNextExecutableElements(arg0,arg1); } 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[25],(Object)arg0,(Object)arg1); ijp.proceed(); Object ret = null; } } catch( Throwable t ) { if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
private void repeatUntilExecution(boolean first) throws CoreException { boolean ok = true; if(!first) { Boolean cond = (Boolean) this.condition.evaluate(this.getNode().getExecution().getParentScope()); if (cond == null || cond == false) { this.log.finest("end repeat until behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_ENDED; ok = false; } } if(ok) { final List<Node> childs = this.node.getChildNodes(); if ((childs != null) && (childs.size() > 0)) { getNode().getExecution().setNextExecutableElements(this, childs.get(0)); } } }
public void setNextExecutableElements(final com.ebmwebsourcing.easycommons.sca.helper.api.SCAComponent arg0,final java.util.Collection<? extends com.ebmwebsourcing.easyviper.core.api.engine.Node> arg1) { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[26]); try { if( handlers.size() == 0 ) { impl.setNextExecutableElements(arg0,arg1); } 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[26],(Object)arg0,(Object)arg1); ijp.proceed(); Object ret = null; } } catch( Throwable t ) { if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
getExecution().setNextExecutableElements(this, out); } else if (this.getParentNode() != null) { this.log.finest("this.getParentNode().getExecution(): " + this.getParentNode().getExecution()); this.log.finest("parent node is next target: " + this.getParentNode().getName()); getExecution().setNextExecutableElements(this, this.getParentNode()); } else { getExecution().setNextExecutableElements(this, Collections.EMPTY_LIST); getExecution().setNextExecutableElements(this, this.getParentNode()); getExecution().setNextExecutableElements(this, Collections.EMPTY_LIST);
getExecution().setNextExecutableElements(this, out); } else if (this.getParentNode() != null) { this.log.finest("this.getParentNode().getExecution(): " + this.getParentNode().getExecution()); this.log.finest("parent node is next target: " + this.getParentNode().getName()); getExecution().setNextExecutableElements(this, this.getParentNode()); } else { getExecution().setNextExecutableElements(this, Collections.EMPTY_LIST); getExecution().setNextExecutableElements(this, this.getParentNode()); getExecution().setNextExecutableElements(this, Collections.EMPTY_LIST);
@Override protected void executeOnInactive() throws CoreException { this.state = State.ACTIVITY_STARTED; alreadyNotified = false; if(triggeringNodes==null || triggeringNodes.isEmpty()) { this.state = State.ACTIVITY_ENDED; return; } try{ SCAHelper.getSCAHelper().startComponentAndSubComponents(getNode().getExecution().getParentScope().getComponent()); } catch(SCAException e) { throw new CoreException(e); } List<Node> nodes = new ArrayList<Node>(); for(Node child : getNode().getChildNodes()) { for(Node triggeringNode : triggeringNodes) { if(triggeringNode.getName().equals(child.getName())) { nodes.add(child); break; } } } getNode().getExecution().setNextExecutableElements(this, nodes); }
getNode().getExecution().setNextExecutableElements(this, getChildNodeSelected()); } else { this.state = State.ACTIVITY_ENDED;