Examples of Primitive


Examples of nexj.core.meta.Primitive

               {
                  Object original = list.get(i);

                  if (convertedList == null)
                  {
                     Primitive primitive = Primitive.primitiveOf(original);

                     if (type != primitive)
                     {
                        convertedList = new ArrayList(list.size());
View Full Code Here

Examples of nexj.core.meta.Primitive

   /**
    * Gets a default MSH value.
    */
   protected Object getDefaultMSHValue(MessagePart part)
   {
      Primitive primitive = null;
      TransferObject tobj;

      if (part instanceof PrimitiveMessagePart)
      {
         primitive = ((PrimitiveMessagePart)part).getType();
      }

      switch (((HL7MessagePartMapping)part.getMapping()).getSeq())
      {
         case 7: // Message time
            if (primitive != null)
            {
               return primitive.convert(new Timestamp(System.currentTimeMillis()));
            }

            break;

         case 9: // Message type
            String sType = ((HL7MessagePartMapping)m_message.getRoot().getMapping()).getName();
            String sEvent = null;

            int i = sType.indexOf('^');

            if (i >= 0)
            {
               sEvent = sType.substring(i + 1);
               sType = sType.substring(0, i);
            }

            if (primitive != null)
            {
               return sType;
            }

            tobj = new TransferObject(2);
            setValue(tobj, (CompositeMessagePart)part, 1, sType);
            setValue(tobj, (CompositeMessagePart)part, 2, sEvent);

            return tobj;

         case 10: // Control Id
            if (primitive != null)
            {
               return primitive.convert(getControlId());
            }

            break;

         case 11: // Processing Id
View Full Code Here

Examples of org.locationtech.geogig.osm.internal.history.Primitive

            final String parentPath = NodeRef.parentPath(featurePath);
            if (Change.Type.delete.equals(change.getType())) {
                cnt++;
                deletes.add(featurePath);
            } else {
                final Primitive primitive = change.getNode().isPresent() ? change.getNode().get()
                        : change.getWay().get();
                final Geometry geom = parseGeometry(geogig, primitive, thisChangePointCache);
                if (geom instanceof Point) {
                    thisChangePointCache.put(Long.valueOf(primitive.getId()),
                            ((Point) geom).getCoordinate());
                }

                SimpleFeature feature = toFeature(primitive, geom);
View Full Code Here

Examples of org.nlogo.api.Primitive

    }
    return null;
  }

  public Primitive replaceIdentifier(String name) {
    Primitive prim = null;
    boolean qualified = name.indexOf(':') != -1;

    // Locate the class in all the loaded Jars
    Iterator<Map.Entry<String, JarContainer>> entries = jars.entrySet().iterator();
View Full Code Here

Examples of org.opengis.geometry.primitive.Primitive

  private String multiPrimitiveCoordToString(MultiPrimitive mp) {
    Iterator<Primitive> primitives = (Iterator<Primitive>) mp.getElements().iterator();
    String rString = "";
    while (primitives.hasNext()) {
      Primitive p = primitives.next();
      if (p instanceof Point)
        rString += "\n\t" + pointToString((Point) p);
      else if (p instanceof Curve)
        rString += "\n\t" + curveToString((Curve) p);
      else if (p instanceof Surface)
View Full Code Here

Examples of org.osm2world.core.target.common.Primitive

  @Override
  protected void drawPrimitive(Type type, Material material,
      List<VectorXYZ> vertices, List<VectorXYZ> normals,
      List<List<VectorXZ>> texCoordLists) {
    primitiveMap.put(material,
        new Primitive(type, vertices, normals, texCoordLists));
  }
View Full Code Here

Examples of org.renjin.primitives.R$primitive$$minus$deferred_d

  public void nestedDistanceMatrixAndUnaryOp() {

    DoubleArrayVector vector = new DoubleArrayVector(5,10,3,2,1);
    DistanceMatrix matrix = new DistanceMatrix(vector);
    System.out.println(Deparse.deparseExp(null, matrix));
    Vector negative = new R$primitive$$minus$deferred_d(matrix, AttributeMap.EMPTY);
    DeferredMean mean = new DeferredMean(negative, AttributeMap.EMPTY);
    DeferredGraph graph = new DeferredGraph(mean);

    DeferredJitter jitter = new DeferredJitter();
    JittedComputation computation = jitter.compile(graph.getRoot());
View Full Code Here

Examples of org.renjin.primitives.R$primitive$$times$deferred_dd

  public void nestedDistanceMatrixAndBinaryOp() {

    DoubleArrayVector a = new DoubleArrayVector(1,2,3,4);
    DoubleArrayVector b = new DoubleArrayVector(10,20,30,40,50,60,70,80);

    Vector times = new R$primitive$$times$deferred_dd(a, b, AttributeMap.EMPTY);
    DeferredMean mean = new DeferredMean(times, AttributeMap.EMPTY);
    DeferredGraph graph = new DeferredGraph(mean);

    Vector x = compute(graph);
    System.out.println(x);
View Full Code Here

Examples of quickdb.model.Primitive

            i++;
        }
    }

    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");

        System.out.println(admin.save(primitive));
    }
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.