cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/network/topologies/readers/TopologyReaderBrite.java
private void parseEdgesString(String nodeLine) {

        // List of fields in the line to parse
        // EdgeID, fromNode, toNode, euclideanLength, linkDelay, linkBandwidth, AS_from, AS_to, type
        final Double[] parsedFields = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
        if(!parseLine(nodeLine, parsedFields, Double::valueOf)){
            return;
        }

        final int fromNode = parsedFields[1].intValue();
        final int toNode = parsedFields[2].intValue();
        final double linkDelay = parsedFields[4];
        final double linkBandwidth = parsedFields[5];

        graph.addLink(new TopologicalLink(fromNode, toNode, linkDelay, linkBandwidth));
    }
/**
     * Parses edges inside a line from the BRITE file.
     *
     * @param nodeLine A line read from the file
     */
Parses edges inside a line from the BRITE file.
@param nodeLine A line read from the file
Parses edges inside a line from the BRITE file . @param nodeLine A line read from the file
private void parseEdgesString(String nodeLine) {
        final Double[] parsedFields = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
        if(!parseLine(nodeLine, parsedFields, Double::valueOf)){
            return;
        }
        final int fromNode = parsedFields[1].intValue();
        final int toNode = parsedFields[2].intValue();
        final double linkDelay = parsedFields[4];
        final double linkBandwidth = parsedFields[5];
        graph.addLink(new TopologicalLink(fromNode, toNode, linkDelay, linkBandwidth));
    }
private void parseEdgesString ( String nodeLine ) { final Double [ ] parsedFields = { 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 } ; if ( ! parseLine ( nodeLine , parsedFields , Double :: valueOf ) ) { return ; } final int fromNode = parsedFields [ 1 ] . intValue ( ) ; final int toNode = parsedFields [ 2 ] . intValue ( ) ; final double linkDelay = parsedFields [ 4 ] ; final double linkBandwidth = parsedFields [ 5 ] ; graph . addLink ( new TopologicalLink ( fromNode , toNode , linkDelay , linkBandwidth ) ) ; }
Parses edges inside a line from the BRITE file.
Parses edges inside a line from the BRITE file .
// List of fields in the line to parse // EdgeID, fromNode, toNode, euclideanLength, linkDelay, linkBandwidth, AS_from, AS_to, type