Examples of addWeight()


Examples of com.sun.sgs.impl.service.nodemap.affinity.graph.WeightedEdge.addWeight()

                            if (bipartiteGraph.degree(end) == 0) {
                                bipartiteGraph.removeVertex(end);
                            }
                        }
                    } else {
                        edge.addWeight(-weight);
                    }
                }
            }

            // For each conflict, update values
View Full Code Here

Examples of com.sun.sgs.impl.service.nodemap.affinity.graph.WeightedEdge.addWeight()

                                affinityGraph.removeVertex(end);
                                identMap.remove(end.getIdentity());
                            }
                        }
                    } else {
                        edge.addWeight(-weight);
                    }
                }
            }

            stats.processingTimeInc(System.currentTimeMillis() - startTime);
View Full Code Here

Examples of com.sun.sgs.impl.service.nodemap.affinity.graph.WeightedEdge.addWeight()

                                affinityGraph.removeVertex(end);
                                identMap.remove(end.getIdentity());
                            }
                        }
                    } else {
                        edge.addWeight(-weight);
                    }
                }
            }

            // For each conflict, update values
View Full Code Here

Examples of com.sun.sgs.impl.service.nodemap.affinity.graph.WeightedEdge.addWeight()

                    WeightedEdge edge = foldedGraph.findEdge(label1, label2);
                    if (edge == null) {
                        foldedGraph.addEdge(new WeightedEdge(minWeight),
                                            label1, label2);
                    } else {
                        edge.addWeight(minWeight);
                    }
                }
            }
        }
View Full Code Here

Examples of fr.adrienbrault.idea.symfony2plugin.action.dict.TranslationFileModel.addWeight()

            TranslationFileModel psiWeightList = new TranslationFileModel(psiFile);

            if(symfonyBundle != null && symfonyBundle.isInBundle(psiFile)) {
                psiWeightList.setSymfonyBundle(symfonyBundle);
                psiWeightList.setBoldness(true);
                psiWeightList.addWeight(2);
            } else {
                psiWeightList.setSymfonyBundle(symfonyBundleUtil.getContainingBundle(psiFile));
            }

            String relativePath = psiWeightList.getRelativePath();
View Full Code Here

Examples of fr.adrienbrault.idea.symfony2plugin.action.dict.TranslationFileModel.addWeight()

                psiWeightList.setSymfonyBundle(symfonyBundleUtil.getContainingBundle(psiFile));
            }

            String relativePath = psiWeightList.getRelativePath();
            if(relativePath != null && (relativePath.startsWith("src") || relativePath.startsWith("app"))) {
                psiWeightList.addWeight(1);
            }

            psiFilesSorted.add(psiWeightList);
        }
View Full Code Here

Examples of org.terasology.rendering.assets.skeletalmesh.SkeletalMeshDataBuilder.addWeight()

            }
            if (md5.meshes.length > 0) {
                // TODO: Support multiple mesh somehow?
                MD5Mesh mesh = md5.meshes[0];
                for (MD5Weight weight : mesh.weightList) {
                    skeletonBuilder.addWeight(new BoneWeight(weight.position, weight.bias, weight.jointIndex));
                }

                List<Vector2f> uvs = Lists.newArrayList();
                TIntList vertexStartWeight = new TIntArrayList(mesh.numVertices);
                TIntList vertexWeightCount = new TIntArrayList(mesh.numVertices);
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.