Examples of Termination


Examples of ca.nengo.model.Termination

    // Plotter.plot(integrator);
    // Plotter.plot(integrator, NEFEnsemble.X);

    float tau = .05f;

    Termination interm = integrator.addDecodedTermination("input",
        new float[][] { new float[] { tau } }, tau, false);
    // Termination interm = integrator.addDecodedTermination("input", new
    // float[][]{new float[]{1f}}, tau);
    network.addProjection(input.getOrigin(FunctionInput.ORIGIN_NAME), interm);

    Termination fbterm = integrator.addDecodedTermination("feedback",
        new float[][] { new float[] { 1f } }, tau, false);
    network.addProjection(integrator.getOrigin(NEFEnsemble.X), fbterm);

    // System.out.println("Network creation: " + (System.currentTimeMillis()
    // - start));
View Full Code Here

Examples of ca.nengo.model.Termination

  /**
   * @see ca.nengo.model.Network#exposeTermination(ca.nengo.model.Termination, java.lang.String)
   */
  public void exposeTermination(Termination termination, String name) {
    Termination term;
   
      term = new TerminationWrapper(this, termination, name);
     
      myExposedTerminations.put(name, term);
      myExposedTerminationNames.put(termination, name);
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.Termination

        public void run() {
            Iterator<ChildInfo> active = active();
            if (active.hasNext()) {
                CompositeProcess mlSet = ProcessUtil.compose(new ReceiveProcess() {
                    private static final long serialVersionUID = 2554750258974084466L;
                }.setChannel(_self.self).setReceiver(new Termination() {
                    public void terminate() {
                        for (Iterator<ChildInfo> i = active(); i.hasNext(); )
                            replication(i.next().activity.self).terminate();
                        instance(ACTIVE.this);
                    }
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.Termination

        }

        public void run() {
            object(false, compose(new ReceiveProcess() {
                private static final long serialVersionUID = -5471984635653784051L;
            }.setChannel(_self.self).setReceiver(new Termination() {
                public void terminate() {
                    _terminated = true;
                    replication(_child.self).terminate();
                    instance(WAITER.this);
                }
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.Termination

                    _self.parent.completed(null, CompensationHandler.emptySet());
                }

            })).or(new ReceiveProcess() {
                private static final long serialVersionUID = 4399496341785922396L;
            }.setChannel(_self.self).setReceiver(new Termination() {
                public void terminate() {
                    getBpelRuntimeContext().cancel(_pickResponseChannel);
                    instance(WAITING.this);
                }
            })));
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.Termination

                public void onCancel() {
                    _self.parent.completed(null, CompensationHandler.emptySet());
                }
            })).or(new ReceiveProcess() {
                private static final long serialVersionUID = -2791243270691333946L;
            }.setChannel(_self.self).setReceiver(new Termination() {
                public void terminate() {
                    _self.parent.completed(null, CompensationHandler.emptySet());
                    object(new ReceiveProcess() {
                        private static final long serialVersionUID = 677746737897792929L;
                    }.setChannel(timerChannel).setReceiver(new TimerResponse() {
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.Termination

        }

        public void run() {
            object(false, compose(new ReceiveProcess() {
                private static final long serialVersionUID = -2680515407515637639L;
            }.setChannel(_self.self).setReceiver(new Termination() {
                public void terminate() {
                    replication(_child.self).terminate();

                    // Don't do any of the remaining activiites, DPE instead.
                    ArrayList<OActivity> remaining = new ArrayList<OActivity>(_remaining);
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.Termination

                        getBpelRuntimeContext().releasePartnerMex(mexId, false);
                    }

                })).or(new ReceiveProcess() {
                    private static final long serialVersionUID = 4219496341785922396L;
                }.setChannel(_self.self).setReceiver(new Termination() {
                    public void terminate() {
                        _self.parent.completed(null, CompensationHandler.emptySet());
                    }
                })));
            }
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.Termination

                public void stop() {
                    _psc.completed(null, _comps);
                }
            })).or(new ReceiveProcess() {
                private static final long serialVersionUID = 6100105997983514609L;
            }.setChannel(_tc).setReceiver(new Termination() {
                public void terminate() {
                    _psc.completed(null, _comps);
                }
            }));
View Full Code Here

Examples of org.apache.ode.bpel.runtime.channels.Termination

                    _stopped = true;
                    instance(ACTIVE.this);
                }
            })).or(new ReceiveProcess() {
                private static final long serialVersionUID = -4566956567870652885L;
            }.setChannel(_tc).setReceiver(new Termination() {
                public void terminate() {
                    replication(_activity.self).terminate();
                    _stopped = true;
                    instance(ACTIVE.this);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.