Examples of performOperation()


Examples of com.heatonresearch.aifh.evolutionary.opp.EvolutionaryOperator.performOperation()

                        this.parents[1] = chooseParent();
                    }

                    // success, perform crossover
                    if (this.parents[0] != this.parents[1]) {
                        opp.performOperation(this.rnd, this.parents, 0,
                                this.children, 0);
                    }
                } else {
                    // clone a child (asexual reproduction)
                    opp.performOperation(this.rnd, this.parents, 0,
View Full Code Here

Examples of com.heatonresearch.aifh.evolutionary.opp.EvolutionaryOperator.performOperation()

                        opp.performOperation(this.rnd, this.parents, 0,
                                this.children, 0);
                    }
                } else {
                    // clone a child (asexual reproduction)
                    opp.performOperation(this.rnd, this.parents, 0,
                            this.children, 0);
                    this.children[0].setPopulation(this.parents[0]
                            .getPopulation());
                }
View Full Code Here

Examples of com.heatonresearch.aifh.genetic.crossover.Splice.performOperation()

        // Create an array to hold the offspring.
        IntegerArrayGenome[] offspring = new IntegerArrayGenome[2];

        // Perform the operation
        opp.performOperation(rnd, parents, 0, offspring, 0);

        // Display the results
        System.out.println("Parent 1: " + Arrays.toString(parents[0].getData()));
        System.out.println("Parent 2: " + Arrays.toString(parents[1].getData()));
        System.out.println("Offspring 1: " + Arrays.toString(offspring[0].getData()));
View Full Code Here

Examples of com.heatonresearch.aifh.genetic.crossover.SpliceNoRepeat.performOperation()

        // Create an array to hold the offspring.
        IntegerArrayGenome[] offspring = new IntegerArrayGenome[2];

        // Perform the operation
        opp.performOperation(rnd, parents, 0, offspring, 0);

        // Display the results
        System.out.println("Parent 1: " + Arrays.toString(parents[0].getData()));
        System.out.println("Parent 2: " + Arrays.toString(parents[1].getData()));
        System.out.println("Offspring 1: " + Arrays.toString(offspring[0].getData()));
View Full Code Here

Examples of com.heatonresearch.aifh.genetic.mutate.MutatePerturb.performOperation()

        // Create an array to hold the offspring.
        DoubleArrayGenome[] offspring = new DoubleArrayGenome[1];
        offspring[0] = new DoubleArrayGenome(5);

        // Perform the operation
        opp.performOperation(rnd, parents, 0, offspring, 0);

        // Display the results
        System.out.println("Parent: " + Arrays.toString(parents[0].getData()));
        System.out.println("Offspring: " + Arrays.toString(offspring[0].getData()));
View Full Code Here

Examples of com.heatonresearch.aifh.genetic.mutate.MutateShuffle.performOperation()

        // Create an array to hold the offspring.
        IntegerArrayGenome[] offspring = new IntegerArrayGenome[1];
        offspring[0] = new IntegerArrayGenome(5);

        // Perform the operation
        opp.performOperation(rnd, parents, 0, offspring, 0);

        // Display the results
        System.out.println("Parent: " + Arrays.toString(parents[0].getData()));
        System.out.println("Offspring: " + Arrays.toString(offspring[0].getData()));
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.dom.ODOMEditorContextManager.performOperation()

            public ODOMEditorContext create() throws Exception {
                return createEditorContext();
            }
        });

        manager.performOperation(new ODOMEditorContextOperation() {
            public void perform(ODOMEditorContext context) throws Exception {
                // perform a cut to populate the clipboard
                Clipboard clipboard = new Clipboard(Display.getDefault());
                TestData data = createTestData(new CutActionCommand(clipboard,
                        context.getODOMSelectionManager()));
View Full Code Here

Examples of org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation()

                  compensatingExecution.getActivity().getActivityBehavior().getClass().getCanonicalName()));
        }
        compensatingExecution.setActivity(compensationHandler);
       
        // executing the atomic operation makes sure activity start events are fired
        compensatingExecution.performOperation(AtomicOperation.ACTIVITY_START);
       
      }catch (Exception e) {
        throw new ActivitiException("Error while handling compensation event "+eventSubscription, e);
      }
           
View Full Code Here

Examples of org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation()

      try {

        compensatingExecution.setActivity(compensationHandler);
       
        // executing the atomic operation makes sure activity start events are fired
        compensatingExecution.performOperation(AtomicOperation.ACTIVITY_START);
       
      }catch (Exception e) {
        throw new ActivitiException("Error while handling compensation event "+eventSubscription, e);
      }
           
View Full Code Here

Examples of org.activiti.engine.impl.pvm.runtime.InterpretableExecution.performOperation()

    }
   
    if(borderEventActivity.getActivityBehavior() instanceof EventSubProcessStartEventActivityBehavior) {
      InterpretableExecution execution = (InterpretableExecution) leavingExecution;
      execution.setActivity(borderEventActivity.getParentActivity());
      execution.performOperation(AtomicOperation.ACTIVITY_START); // make sure the listeners are invoked!
    }else {
      leavingExecution.executeActivity(borderEventActivity);
    }
  }
 
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.