Package net.wigis.graph.dnv.utilities

Examples of net.wigis.graph.dnv.utilities.SortByFloatProperty


   
    for( DNVNode tempNode : nodes )
    {
      List<DNVEdge> edges = new ArrayList<DNVEdge>( tempNode.getFromEdges() );
      edges.addAll( tempNode.getToEdges() );
      SortByFloatProperty sbfp = new SortByFloatProperty( "time", true );
      Collections.sort( edges, sbfp );
      tempNode.setProperty( "maxTime", edges.get( 0 ).getProperty( "time" ) );
      tempNode.setProperty( "minTime", edges.get( edges.size()-1 ).getProperty( "time" ) );
    }
   
   
    SortByFloatProperty sbfp = new SortByFloatProperty( "numDocuments", true );
    Collections.sort( nodes, sbfp );
    node = nodes.get( 0 );
    int maxNumDocuments = Integer.parseInt( node.getProperty( "numDocuments" ) );
    System.out.println( "Max number of docs " + maxNumDocuments );
    for( DNVNode tempNode : nodes )
View Full Code Here


      details.append( "<br />" );
      details.append( "<table border=\"1\" cellspacing=\"0\">" );
      details.append( "<tr><td style=\"font-size:large\" colspan=\"2\">Neighbor Nodes:</td></tr>" );

      List<DNVNode> nodes = getNeighbors( true );
      SortByFloatProperty sbfp = new SortByFloatProperty( "year", true );
      Collections.sort( nodes, sbfp );

      for( DNVNode neighbor : nodes )
      {
        value = "";
View Full Code Here

TOP

Related Classes of net.wigis.graph.dnv.utilities.SortByFloatProperty

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.