Package fiftyone.mobile.detection.entities

Examples of fiftyone.mobile.detection.entities.Node


            orderedNodes.addAll(nodes);
            Collections.sort(orderedNodes, nodeComparator);
            Iterator<Node> nodeIterator = orderedNodes.iterator();

            // Get the first node and add all the signature indexes.
            Node node = nodeIterator.next();
            final PossibleSignatures linkedList = buildInitialList(
                    node.getRankedSignatureIndexes());

            // Count the number of times each signature index occurs.
            while (nodeIterator.hasNext()) {
                node = nodeIterator.next();
                maxCount = getClosestSignaturesForNode(
                        node.getRankedSignatureIndexes(),
                        linkedList,
                        maxCount,
                        iteration);
                iteration++;
            }
View Full Code Here


        while (match.nextCharacterPositionIndex > 0) {
            if (existingNodeIndex < 0
                    || match.getNodes().get(existingNodeIndex).getRoot().position
                    < match.nextCharacterPositionIndex) {
                match.rootNodesEvaluated++;
                Node node = match.getDataSet().rootNodes.get(match.nextCharacterPositionIndex).
                        getCompleteNumericNode(match);
                if (node != null
                        && node.getIsOverlap(match) == false) {
                    // Insert the node and update the existing index so that
                    // it's the node to the left of this one.
                    existingNodeIndex = match.insertNode(node) - 1;

                    // Move to the position of the node found as
View Full Code Here

            // Increase the count of root nodes checked.
            match.rootNodesEvaluated++;

            // See if a leaf node will match from this list.
            Node node = match.getDataSet().rootNodes.get(match.nextCharacterPositionIndex).
                    getCompleteNode(match);

            if (node != null) {
                match.getNodes().add(0, node);
View Full Code Here

* ********************************************************************* */
public class NodeFactory extends BaseEntityFactory<Node> {

    @Override
    public Node create(Dataset dataSet, int index, BinaryReader reader) {
        return new Node(dataSet, index, reader);
    }
View Full Code Here

TOP

Related Classes of fiftyone.mobile.detection.entities.Node

Copyright © 2018 www.massapicom. 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.