Examples of EcoreInferenceHandlerFactory


Examples of org.openiaml.model.drools.EcoreInferenceHandlerFactory

   * to modify the model.
   *
   * @return
   */
  public ICreateElementsFactory createCreateElementsFactory() {
    EcoreInferenceHandlerFactory handler = new EcoreInferenceHandlerFactory();
    return handler;
  }
View Full Code Here

Examples of org.openiaml.model.drools.EcoreInferenceHandlerFactory

    // initially empty
    assertEquals(0, root.getTypes().size());
    assertEquals(0, root.getScopes().size());

    // infer new elements
    DroolsQueueEngine engine = new DroolsQueueEngine( new EcoreInferenceHandlerFactory() );
   
    engine.create(root, new NullProgressMonitor());
   
    // check that it did actually create stuff
    assertEquals(1, root.getTypes().size());
View Full Code Here

Examples of org.openiaml.model.drools.EcoreInferenceHandlerFactory

   */
  public void testDroolsQueueCount() throws Exception {
    InternetApplication root = createInternetApplication();
   
    // infer new elements
    DroolsQueueEngine engine = new DroolsQueueEngine(new EcoreInferenceHandlerFactory());
   
    engine.create(root, new NullProgressMonitor());

    Map<Integer, Integer> queue = engine.getQueueElementsAdded();
    assertNotNull(queue);
View Full Code Here

Examples of org.openiaml.model.drools.EcoreInferenceHandlerFactory

    monitor.worked(10);
   
    // use the inference action
    monitor.subTask("Initialising inference engine");
    InferEntireModelAction action = new InferEntireModelAction();
    DroolsInferenceEngine ce = action.getEngine(new EcoreInferenceHandlerFactory());
    monitor.worked(10);

    // do inference
    monitor.subTask("Executing model completion");
    ce.create(target, new SubProgressMonitor(monitor, 80));
View Full Code Here

Examples of org.openiaml.model.drools.EcoreInferenceHandlerFactory

    }
    monitor.worked(10);

    // do inference on the model
    monitor.subTask("Perfoming inference");
    DroolsInferenceEngine ce = getEngine(new EcoreInferenceHandlerFactory());
    ce.create(model, new SubProgressMonitor(monitor, 45));

    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;
View Full Code Here

Examples of org.openiaml.model.drools.EcoreInferenceHandlerFactory

    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;

    // do inference on the model
    CreateMissingElementsWithDrools ce = new CreateMissingElementsWithDrools(new EcoreInferenceHandlerFactory(), false);
    ce.create(model, new SubProgressMonitor(monitor, 45));
   
    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;
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.