Examples of Primitive


Examples of ca.uhn.hl7v2.model.Primitive

     
        StringBuilder field = new StringBuilder();
        for (int i = 1; i <= Terser.numComponents(source); i++) {
            StringBuilder comp = new StringBuilder();
            for (int j = 1; j <= Terser.numSubComponents(source, i); j++) {
                Primitive p = Terser.getPrimitive(source, i, j);
                comp.append(encodePrimitive(p, encodingChars));
                comp.append(encodingChars.getSubcomponentSeparator());
            }
            field.append(stripExtraDelimiters(comp.toString(), encodingChars.getSubcomponentSeparator()));
            field.append(encodingChars.getComponentSeparator());
View Full Code Here

Examples of ca.uhn.hl7v2.model.Primitive

     
        StringBuilder field = new StringBuilder();
        for (int i = 1; i <= Terser.numComponents(source); i++) {
            StringBuilder comp = new StringBuilder();
            for (int j = 1; j <= Terser.numSubComponents(source, i); j++) {
                Primitive p = Terser.getPrimitive(source, i, j);
                comp.append(encodePrimitive(p, encodingChars));
                comp.append(encodingChars.getSubcomponentSeparator());
            }
            field.append(stripExtraDelimiters(comp.toString(), encodingChars.getSubcomponentSeparator()));
            field.append(encodingChars.getComponentSeparator());
View Full Code Here

Examples of cat.quickdb.model.Primitive

        }
    }

    @Test
    public void testPrimitives(){
        Primitive primitive = new Primitive();
        primitive.setDate(new java.sql.Date(110, 0, 1));
        primitive.setDoubleNumber(55.35d);
        primitive.setFloatNumber(33.4f);
        primitive.setIntNumber(5);
        primitive.setString("string");

        Assert.assertTrue(admin.save(primitive));
    }
View Full Code Here

Examples of com.microworkflow.process.Primitive

  public static Test suite() {
    return new TestSuite(TestIterative.class);
  }

  public void testIterative() {
    Primitive body=new Primitive("component", new Performer(){
      public Object execute() {
        String component=(String)getTarget();
        DomainObject domainObject=(DomainObject)get(O1_KEY);
        if (domainObject.getString() != null) {
          domainObject.setString(domainObject.getString().concat(component));
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.protocol.primitives.Primitive

   
    private void MeshPrim(RenderPrimitive rprim) throws Exception
    {
      primMesher.MeshPrim(rprim, true, DetailLevel.High, DetailLevel.High, DetailLevel.Highest);
     
      Primitive prim = rprim.getBasePrim();
      for(int i =0;  i < rprim.Faces.size(); i ++)
    {
      TextureEntryFace tef = prim.Textures.GetFace(i);
      System.out.println(String.format("\t\tFace Index: %d, Texture ID: %s", i, tef.getTextureID()));
      textureManager.requestDownloadTexture(new TextureLoadItem((FaceData)rprim.Faces.get(i).UserData,
View Full Code Here

Examples of com.opengamma.engine.target.Primitive

    final ComputationTargetResolver.AtVersionCorrection underlying = Mockito.mock(ComputationTargetResolver.AtVersionCorrection.class);
    final ConcurrentMap<ComputationTargetReference, UniqueId> resolutions = new ConcurrentHashMap<ComputationTargetReference, UniqueId>();
    final Set<UniqueId> expiredResolutions = new HashSet<UniqueId>();
    final ComputationTargetResolver.AtVersionCorrection resolver = TargetResolutionLogger.of(underlying, resolutions, expiredResolutions);
    final ComputationTargetSpecification spec = new ComputationTargetSpecification(ComputationTargetType.PRIMITIVE, UniqueId.of("Foo", "Bar"));
    final ComputationTarget target = new ComputationTarget(spec.replaceIdentifier(UniqueId.of("Foo", "Bar", "Cow")), new Primitive(UniqueId.of("Foo", "Bar", "Cow")));
    Mockito.when(underlying.resolve(spec)).thenReturn(target);
    final ObjectResolver shallowResolver = Mockito.mock(ObjectResolver.class);
    Mockito.when(underlying.getResolver(spec)).thenReturn(shallowResolver);
    assertSame(resolver.resolve(spec), target);
  }
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Primitive

        public void actionPerformed(ActionEvent e) {
            PrimitiveDialog d=new PrimitiveDialog(
                    javax.swing.SwingUtilities.getWindowAncestor( getNode().getTree()),
                    getLocation(),
                    _primitiveClass, _title);
            Primitive n=d.getResult();
            if(n!=null){
                GroupNode gn=(GroupNode)getNode();
                gn.addChild(n);
                AddEdit ae=new AddEdit(gn, n, null);
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Primitive


  //Specification of the action to be carried out when an object is picked.
  public void updateScene(int xpos, int ypos)
  {
    Primitive pickedShape = null;
    pickCanvas.setShapeLocation(xpos,ypos);
    PickResult pResult = pickCanvas.pickClosest();
    if (pResult != null)
    {
      pickedShape = (Primitive) pResult.getNode(PickResult.PRIMITIVE);
    }

    if (pickedShape != null)
    {
      System.out.println("The object "+pickedShape.getUserData()+" has been selected.");
    }
    else
    {
      System.out.println("No object has been selected.");
    }
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Primitive

  }


  public void updateScene(int xpos, int ypos)
  {
    Primitive pickedShape = null;
    pickCanvas.setShapeLocation(xpos,ypos);
    PickResult pResult = pickCanvas.pickClosest();
    if (pResult != null)
    {
      pickedShape = (Primitive) pResult.getNode(PickResult.PRIMITIVE);
    }

    if (pickedShape != null)
    {
      if (pickedShape.getUserData()=="box")
      {
        //The cube has been picked. The starting time of its rotation
        //must be set to now.
        alphas[0].setStartTime(System.currentTimeMillis()-alphas[0].getTriggerTime());
      }
      else
      {
        if (pickedShape.getUserData()=="sphere")
        {
          //The cube has been picked. The correct transformation
          //(shrinking or growing) should be chosen. The starting time of
          //the corresponding transformation must be set to now.
          if (shrink)
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Primitive

      pickCanvas.setShapeLocation(e);
      PickResult result = pickCanvas.pickClosest();
        if (result == null) {
          System.out.println("Nothing picked");
        } else {
          Primitive p = (Primitive)result.getNode(PickResult.PRIMITIVE);
          Shape3D s = (Shape3D)result.getNode(PickResult.SHAPE3D);
         
          //*******************************************************************************
          //   This code will get you a reference to the sphere clicked on
          //   notice that it now prints out which sphere you clicked on
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.