Examples of Target


Examples of org.apache.tuscany.core.mock.component.Target

        context.start();
        context.registerModelObject(MockFactory.createSystemModuleWithWiredComponents("system.module",Scope.MODULE, Scope.MODULE));
        context.publish(new ModuleStart(this));
        Source source = (Source) ((AtomicContext) context.getContext("source")).getTargetInstance();
        Assert.assertNotNull(source);
        Target targetRef = source.getTarget();
        Assert.assertNotNull(targetRef);
        Target target = (Target) ((AtomicContext) context.getContext("target")).getTargetInstance();
        Assert.assertSame(target, targetRef);
        Assert.assertSame(target, source.getTarget());
        context.publish(new ModuleStop(this));
        context.stop();
    }
View Full Code Here

Examples of org.bouncycastle.asn1.x509.Target

        gen.setNotBefore(new Date(System.currentTimeMillis() - 50000));
        gen.setNotAfter(new Date(System.currentTimeMillis() + 50000));
        gen.setSerialNumber(BigInteger.valueOf(1));
        gen.setSignatureAlgorithm("SHA1WithRSAEncryption");

        Target targetName = new Target(Target.targetName, new GeneralName(GeneralName.dNSName,
            "www.test.com"));

        Target targetGroup = new Target(Target.targetGroup, new GeneralName(
            GeneralName.directoryName, "o=Test, ou=Test"));
        Target[] targets = new Target[2];
        targets[0] = targetName;
        targets[1] = targetGroup;
        TargetInformation targetInformation = new TargetInformation(targets);
View Full Code Here

Examples of org.cruxframework.crux.core.client.screen.views.Target

    if (returnTypeClass!= null && viewType.isAssignableFrom(returnTypeClass))
    { 
      if(parameters.length == 0)
      {
        String viewName;
        Target target = method.getAnnotation(Target.class);
        if (target != null)
        {
          viewName = target.value();
        }
        else if (name.startsWith("get"))
        {
          if (name.length() > 3)
          {
View Full Code Here

Examples of org.dozer.vo.inheritance.Target

  @Test
  public void testObjectField() throws Exception {
    mapper = getMapper("knownFailures.xml");
    Outer o = new Outer();
    Target t = mapper.map(o, Target.class);

    assertEquals(((Inner) o.getInner()).getString(), t.getString());
  }
View Full Code Here

Examples of org.dozer.vo.inheritance.hints.Target

    HashSet<Base> set = new HashSet<Base>();
    set.add(new BaseA());
    set.add(new BaseB());
    source.setSet(set);

    Target result = mapper.map(source, Target.class);

    assertNotNull(result);
    assertNotNull(result.getSet());
    assertEquals(2, result.getSet().size());

    Object[] objects = result.getSet().toArray();
    assertTrue(objects[0] instanceof Base2);
    assertTrue(objects[1] instanceof Base2);
    assertNotSame(objects[0].getClass(), objects[1].getClass());
  }
View Full Code Here

Examples of org.drools.base.evaluators.EvaluatorDefinition.Target

            OperatorDescr op = entry.getValue();

            Declaration leftDecl = createDeclarationForOperator(context, pattern, op.getLeftString());
            Declaration rightDecl = createDeclarationForOperator(context, pattern, op.getRightString());

            Target left = leftDecl != null && leftDecl.isPatternDeclaration() ? Target.HANDLE : Target.FACT;
            Target right = rightDecl != null && rightDecl.isPatternDeclaration() ? Target.HANDLE : Target.FACT;

            op.setLeftIsHandle( left == Target.HANDLE );
            op.setRightIsHandle( right == Target.HANDLE );

            Evaluator evaluator = getConstraintBuilder( context ).getEvaluator(
View Full Code Here

Examples of org.drools.compiler.Target

         ksession = SerializationHelper.getSerialisedStatefulKnowledgeSession( ksession,
                                                                               true );

         // 1st time
         Target tgt = new Target();
         tgt.setLabel( "Santa-Anna" );
         tgt.setLat( new Float( 60.26544f ) );
         tgt.setLon( new Float( 28.952137f ) );
         tgt.setCourse( new Float( 145.0f ) );
         tgt.setSpeed( new Float( 12.0f ) );
         tgt.setTime( new Float( 1.8666667f ) );
         ksession.insert( tgt );

         tgt = new Target();
         tgt.setLabel( "Santa-Maria" );
         tgt.setLat( new Float( 60.236874f ) );
         tgt.setLon( new Float( 28.992579f ) );
         tgt.setCourse( new Float( 325.0f ) );
         tgt.setSpeed( new Float( 8.0f ) );
         tgt.setTime( new Float( 1.8666667f ) );
         ksession.insert( tgt );

         ksession.fireAllRules();

         // 2nd time
         tgt = new Target();
         tgt.setLabel( "Santa-Anna" );
         tgt.setLat( new Float( 60.265343f ) );
         tgt.setLon( new Float( 28.952267f ) );
         tgt.setCourse( new Float( 145.0f ) );
         tgt.setSpeed( new Float( 12.0f ) );
         tgt.setTime( new Float( 1.9f ) );
         ksession.insert( tgt );

         tgt = new Target();
         tgt.setLabel( "Santa-Maria" );
         tgt.setLat( new Float( 60.236935f ) );
         tgt.setLon( new Float( 28.992493f ) );
         tgt.setCourse( new Float( 325.0f ) );
         tgt.setSpeed( new Float( 8.0f ) );
         tgt.setTime( new Float( 1.9f ) );
         ksession.insert( tgt );

         ksession.fireAllRules();

         // 3d time
         tgt = new Target();
         tgt.setLabel( "Santa-Anna" );
         tgt.setLat( new Float( 60.26525f ) );
         tgt.setLon( new Float( 28.952396f ) );
         tgt.setCourse( new Float( 145.0f ) );
         tgt.setSpeed( new Float( 12.0f ) );
         tgt.setTime( new Float( 1.9333333f ) );
         ksession.insert( tgt );

         tgt = new Target();
         tgt.setLabel( "Santa-Maria" );
         tgt.setLat( new Float( 60.236996f ) );
         tgt.setLon( new Float( 28.992405f ) );
         tgt.setCourse( new Float( 325.0f ) );
         tgt.setSpeed( new Float( 8.0f ) );
         tgt.setTime( new Float( 1.9333333f ) );
         ksession.insert( tgt );

         ksession.fireAllRules();

         // 4th time
         tgt = new Target();
         tgt.setLabel( "Santa-Anna" );
         tgt.setLat( new Float( 60.265163f ) );
         tgt.setLon( new Float( 28.952526f ) );
         tgt.setCourse( new Float( 145.0f ) );
         tgt.setSpeed( new Float( 12.0f ) );
         tgt.setTime( new Float( 1.9666667f ) );
         ksession.insert( tgt );

         tgt = new Target();
         tgt.setLabel( "Santa-Maria" );
         tgt.setLat( new Float( 60.237057f ) );
         tgt.setLon( new Float( 28.99232f ) );
         tgt.setCourse( new Float( 325.0f ) );
         tgt.setSpeed( new Float( 8.0f ) );
         tgt.setTime( new Float( 1.9666667f ) );
         ksession.insert( tgt );

         ksession.fireAllRules();
     }
View Full Code Here

Examples of org.drools.core.base.evaluators.EvaluatorDefinition.Target

            OperatorDescr op = entry.getValue();

            Declaration leftDecl = createDeclarationForOperator(context, pattern, op.getLeftString());
            Declaration rightDecl = createDeclarationForOperator(context, pattern, op.getRightString());

            Target left = leftDecl != null && leftDecl.isPatternDeclaration() ? Target.HANDLE : Target.FACT;
            Target right = rightDecl != null && rightDecl.isPatternDeclaration() ? Target.HANDLE : Target.FACT;

            op.setLeftIsHandle( left == Target.HANDLE );
            op.setRightIsHandle( right == Target.HANDLE );

            Evaluator evaluator = getConstraintBuilder( context ).getEvaluator(
View Full Code Here

Examples of org.eclipse.bpel.model.Target

        if (result == null) result = caseWSDLElement(source);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.TARGET: {
        Target target = (Target)theEObject;
        Object result = caseTarget(target);
        if (result == null) result = caseExtensibleElement(target);
        if (result == null) result = caseExtensibleElement_1(target);
        if (result == null) result = caseWSDLElement(target);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.validation.caret.Target

   * @return the design position
   */
  public static DesignPosition findEditPartPosition(EditPart host, Point p,
      IPositionMediator validator) {
    try {
      host = validator.getEditableContainer(new Target(host));
      FlowBoxLine boxLine = new FlowBoxLine(
          new Rectangle(p.x, p.y, 0, 0), validator, p);
      DesignPosition position = innerFindEditPartPosition(host, host, p,
          boxLine, validator);
      if (position == null) {
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.