public org.objectweb.fractal.api.Component getComponent() { org.objectweb.fractal.api.Component ret = service.getComponent(); return ret; }
@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); }
public com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour getBehaviour() { com.ebmwebsourcing.easyviper.core.api.engine.behaviour.Behaviour ret = service.getBehaviour(); return ret; }
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start exit behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; this.getNode().getExecution().setStateRecursively(Execution.State.CANCELLED); this.state = State.ACTIVITY_ENDED; }
Behaviour sequenceBehaviouur = forkNode.getBehaviour(); parent.unlinkedNodeAndFunctionnalBehaviour(forkNode, sequenceBehaviouur); forkNode.setName(forkNode.getName().toLowerCase().replace("fork", "sequence")); Iterator<Node> it = forkNode.getChildNodes().iterator(); Component fractalNode = node1.getComponent(); Node node11 = (Node) fractalNode.getFcInterface("service"); node1 = node11; Component fractalNode2 = node2.getComponent(); Node node22 = (Node) fractalNode2.getFcInterface("service"); node2 = node22;
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start sequence behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; final List<Node> childs = this.node.getChildNodes(); if ((childs != null) && (childs.size() > 0)) { if ((node.getIncomingTransitions() == null) || ((node.getIncomingTransitions() != null) && (node .getIncomingTransitions().size() == 0))) { firstNode = node; break; getNode().getExecution().setNextExecutableElements(this, firstNode); } else { this.state = State.ACTIVITY_ENDED;
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start sequence behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; try { final List<Node> childs = this.node.getChildNodes(); if ((childs != null) && (childs.size() > 0)) { if ((node.getIncomingNodes() == null) || ((node.getIncomingNodes() != null) && (node .getIncomingNodes().size() == 0))) { firstNode = node; break; getNode().getExecution().setNextExecutableElements(this, firstNode); } else { this.state = State.ACTIVITY_ENDED;
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start scope behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; Scope scope = (Scope) this.getNode().getComponent().getFcInterface("service"); if(execComp == null) { exec = scope.createExecution("exec_in_" + scope.getName()); execComp = SCAHelper.getSCAHelper().getComponentByInterface(this.getNode().getComponent(), (Interface) exec, "service"); } else { exec = (Execution) execComp.getFcInterface("service"); scope.linkInitialNodeAndExecution(); exec.setStepByStep(this.getNode().getExecution().isStepByStep()); this.log.finest("this.getNode().getName() = " + this.getNode().getName()); this.log.finest("this.getNode().getParentNode() = " + this.getNode().getParentNode()); this.log.finest("scope.getParentNode() = " + scope.getParentNode()); Scope parentScope = scope.getParentScope();
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start breakpoint behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; DebugBehaviour debug = DebugUtil.findDebugBehaviour(this.getNode().getExecution().getParentScope().getProcess()); if (debug != null) { this.log.finest("is debug mode? " + debug.isActivate()); } else { this.log.finest("is debug mode? false - no debug behaviour found"); } if (debug != null && debug.isActivate()) { this.getNode().getExecution().setState( Execution.State.SUSPENDED); this.log.finest("breakpoint behaviour: suspend the execution " + this.getNode().getExecution().getName() + " => " + this.getNode().getExecution().getState()); this.getNode().selectDefaultNextTarget(); } }
@Override protected void executeOnInactive() throws CoreException { this.log.finest("start scope behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_STARTED; if(execComp == null) { exec = scope.createExecution("exec_in_" + scope.getName()); execComp = FractalHelper.getFractalHelper().getComponentByInterface(this.getNode().getComponent(), (Interface) exec, "service"); } else { exec = (Execution) execComp.getFcInterface("service"); scope.linkInitialNodeAndExecution(); exec.setStepByStep(this.getNode().getExecution().isStepByStep()); this.log.finest("run the execution in scope " + scope.getName()); exec.run(); this.log.finest("this.getNode().getName() = " + this.getNode().getName()); this.log.finest("this.getNode().getParentNode() = " + this.getNode().getParentNode()); this.log.finest("scope.getParentNode() = " + scope.getParentNode()); this.log.finest("end scope behaviour on node: " + this.node.getName());
@Override protected void executeOnStarted() throws CoreException { this.log .finest("end sequence behaviour on node: " + this.node.getName()); this.state = State.ACTIVITY_ENDED; } }
public com.ebmwebsourcing.easyviper.core.api.engine.Execution getExecution() { com.ebmwebsourcing.easyviper.core.api.engine.Execution ret = service.getExecution(); return ret; }
(underscope).init(underscopeComp); underscope.setName(name); if (!scope.getLogger().getName().equals(ScopeImpl.class.getName())) { underscope.setLog(scope.getLogger()); underscope.setActivity(behaviour);
@Override protected void executeOnStarted() throws CoreException { try{ Scope scope = (Scope) this.getNode().getComponent().getFcInterface("service"); Component execComp = SCAHelper.getSCAHelper().getFirstComponentByName(scope.getComponent(), "exec_in_" + scope.getName()); if (!SCAHelper.getSCAHelper().isStarted(execComp)) { SCAHelper.getSCAHelper().startComponent(execComp); } Execution exec = (Execution) execComp.getFcInterface("service"); if(exec.getState()!=Execution.State.ENDED) return; this.state = State.ACTIVITY_ENDED; scope.end(false); this.log.finest("end scope behaviour on node: " + this.node.getName()); } catch (NoSuchInterfaceException e) { throw new CoreException(e); } catch (SCAException e) { throw new CoreException(e); } }
underscope.setName(name); if (!scope.getLogger().getName().equals(ScopeImpl.class.getName())) { underscope.setLog(scope.getLogger()); underscope.setActivity(behaviour);
public void actionPerformed(final MenuItemTreeView e) { final Node node = (Node) e.getSelectedObject(); Component ci = node.getComponent(); (Interface) forkNode.getBehaviour(), "service"); if (!FractalHelper.getFractalHelper().isStarted(componentBehaviour)) { FractalHelper.getFractalHelper().startComponent( if(forkNode.getBehaviour() instanceof ForkBehaviour) { ReorganizationPatternFactory.getInstance().convertFork2Sequence(forkNode, scope);
(Interface) this.node.getBehaviour(), "service"); if (!FractalHelper.getFractalHelper().isStarted(componentBehaviour)) { FractalHelper.getFractalHelper().startComponent( this.jTextFieldBehaviour.setText(this.node.getBehaviour().getName()); for (final Transition t : this.node.getIncomingTransitions()) { ((DefaultListModel) this.jListIncomingTransition.getModel()) .addElement(t); for (final Transition t : this.node.getOutgoingTransitions()) { ((DefaultListModel) this.jListOutgoingNode.getModel()) .addElement(t);
nextConcurrently(nextExecutableElements); if(getCurrentTarget().getBehaviour() instanceof ExclusiveBehaviour) { setState(State.SUSPENDED); && (getState() != State.CANCELLED)) { currentTarget.selectDefaultNextTarget();