Examples of copy()


Examples of com.heatonresearch.aifh.genetic.genome.ArrayGenome.copy()

        // handle cut section
        for (int i = 0; i < geneLength; i++) {
            if (!((i < cutpoint1) || (i > cutpoint2))) {
                offspring1.copy(father, i, i);
                offspring2.copy(mother, i, i);
            }
        }

        // handle outer sections
        for (int i = 0; i < geneLength; i++) {
View Full Code Here

Examples of com.heatonresearch.aifh.genetic.genome.IntegerArrayGenome.copy()

        // handle cut section
        for (int i = 0; i < geneLength; i++) {
            if (!((i < cutpoint1) || (i > cutpoint2))) {
                offspring1.copy(father, i, i);
                offspring2.copy(mother, i, i);
                taken1.add(father.getData()[i]);
                taken2.add(mother.getData()[i]);
            }
        }
View Full Code Here

Examples of com.hp.hpl.jena.graph.query.Domain.copy()

        }
   
    public void testCopiesDistinctButEqual()
        {
        Domain d = domain( "a lot of bottle" );
        assertNotSame( d, d.copy() );
        assertEquals( d, d.copy() );
        }

    private Domain domain( String string )
        { return new Domain( nodeArray( string ) ); }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer.copy()

    }
   
    private static void copyBPTreeNode(BPTreeNode nodeSrc, BPTreeNode nodeDst, BPlusTree bpt2)
    {
        PtrBuffer pBuff = nodeSrc.getPtrBuffer() ;
        pBuff.copy(0, nodeDst.getPtrBuffer(), 0, pBuff.getSize()) ;
        RecordBuffer rBuff = nodeSrc.getRecordBuffer() ;
        rBuff.copy(0, nodeDst.getRecordBuffer(), 0, rBuff.getSize()) ;
        nodeDst.setCount(nodeSrc.getCount()) ;
        nodeDst.setIsLeaf(nodeSrc.isLeaf()) ;
        bpt2.getNodeManager().put(nodeDst) ;
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.RecordBuffer.copy()

    private static void copyBPTreeNode(BPTreeNode nodeSrc, BPTreeNode nodeDst, BPlusTree bpt2)
    {
        PtrBuffer pBuff = nodeSrc.getPtrBuffer() ;
        pBuff.copy(0, nodeDst.getPtrBuffer(), 0, pBuff.getSize()) ;
        RecordBuffer rBuff = nodeSrc.getRecordBuffer() ;
        rBuff.copy(0, nodeDst.getRecordBuffer(), 0, rBuff.getSize()) ;
        nodeDst.setCount(nodeSrc.getCount()) ;
        nodeDst.setIsLeaf(nodeSrc.isLeaf()) ;
        bpt2.getNodeManager().put(nodeDst) ;
    }
}
View Full Code Here

Examples of com.ibm.richtext.textpanel.MTextPanel.copy()

            switch (fKind) {
                case CUT:
                    panel.cut();
                    break;
                case COPY:
                    panel.copy();
                    break;
                case CLEAR:
                    panel.clear();
                    break;
            }
View Full Code Here

Examples of com.iggroup.oss.restdoclet.plugin.io.ConfigCopier.copy()

   private void deploy() throws IOException {
      LOG.info("Generating jar-archive");
      final DirectoryBuilder dirs =
         new DirectoryBuilder(baseDirectory, outputDirectory);
      final ConfigCopier cc = new ConfigCopier(dirs);
      cc.copy();

      LOG.debug("Creating properties: " + artifactId + ", " + version + ", "
         + finalName + ", " + classifier + ", " + scmUrl);
      cc.createProperties(artifactId, version, finalName, classifier, scmUrl);
      LOG.debug("Building jar: " + finalName + '-' + classifier);
View Full Code Here

Examples of com.intellij.psi.PsiFile.copy()

  public XmlFile getSchema(@NotNull @NonNls String url, @Nullable Module module, @NotNull PsiFile baseFile) {
    final URL resource = NMMLSchemaProvider.class.getResource("/nmml.xsd");
    final VirtualFile fileByURL = VfsUtil.findFileByURL(resource);
    PsiFile result = baseFile.getManager().findFile(fileByURL);
    if (result instanceof XmlFile) {
      return (XmlFile)result.copy();
    }
    return null;
  }

  @Override
View Full Code Here

Examples of com.ipc.oce.DynamicNamespaceContext.copy()

 
  @Test
  public void testCopyNamespace() {
    DynamicNamespaceContext dnc1 = (DynamicNamespaceContext) app.getNamespaceContext();
    String s1 = dnc1.toString();
    String s2 = dnc1.copy().toString();
    System.out.println(s1);
    System.out.println(s2);
    assertNotSame(s1, s2);
    assertNotSame(dnc1, dnc1.copy());
  }
View Full Code Here

Examples of com.jengine.orm.model.field.Field.copy()

            if (Modifier.isStatic(fld.getModifiers())) {
                try {
                    if (fld.get(null) instanceof Field) {
                        Field modelField = (Field) fld.get(null);
                        try {
                            modelFields.put(fld.getName(), modelField.copy());
                        } catch (DBException e) {
                            e.printStackTrace();
                        }
                    }
                } catch (IllegalAccessException e) {
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.