/** * Instantiates a new PlanetLab resource utilization model with variable * utilization samples from a workload file. * * @param workloadFilePath the path of a PlanetLab Datacenter workload file. * @param schedulingInterval the time interval in which precise utilization can be got from the file * @param dataSamples number of samples to read from the workload file * @throws NumberFormatException the number format exception * @see #getSchedulingInterval() */ public UtilizationModelPlanetLab(final String workloadFilePath, final double schedulingInterval, final int dataSamples) throws NumberFormatException { this(ResourceLoader.getFileReader(workloadFilePath), schedulingInterval, dataSamples); }
/** * Instantiates a Network Topology if a given file exists and can be successfully * parsed. File is written in the BRITE format and contains * topological information on simulation entities. * * @param filePath the path of the BRITE file * @see #BriteNetworkTopology() * @see #BriteNetworkTopology(InputStreamReader) * @see #getInstance(String) */ public BriteNetworkTopology(final String filePath) { this(ResourceLoader.getFileReader(filePath)); LOGGER.info("Topology file: {}", filePath); }
/** * Instantiates an AWS EC2 Instance from a JSON file. * * @param jsonFilePath the full path to the JSON file representing the template with * configurations for an AWS EC2 Instance * @see #getInstance(String) */ public AwsEc2Template(final String jsonFilePath) { this(getInstanceInternal(jsonFilePath, ResourceLoader.getFileReader(jsonFilePath))); }
@Override public TopologicalGraph readGraphFile(final String filename) { return readGraphFile(ResourceLoader.getFileReader(filename)); }