Package org.jamesii.core.distributed.partitioner.partitioning.plugintype

Examples of org.jamesii.core.distributed.partitioner.partitioning.plugintype.PartitioningFactory


          PartitionerType.SINGLE_LEVEL_ONLY));

      // Choose single-level partitioner
      // The model is not given as it won't help the partitioner, he gets the
      // coarsened graph!
      PartitioningFactory pFactory =
          SimSystem.getRegistry().getFactory(AbstractPartitioningFactory.class,
              pb);
      singleLevelPartitioningAlgo =
          pFactory.create(null, modelGraph, hardwareGraph);
    } catch (Exception ex) {
      SimSystem.report(ex);
      return false;
    }
View Full Code Here


   * @return viable setup, if exists, test with
   *         {@link PartFactorySetup#isValid()}
   */
  protected PartFactorySetup getFactories() {

    PartitioningFactory currentPFactory = null;
    ModelAnalyzerFactory suitableMAFactory = null;
    InfrastructureAnalyzerFactory suitableIAFactory = null;

    int numOfPFactories = partitioningFactories.size();
    int numOfMAFactories = modelAnalyzerFactories.size();
    int numOfIAFactories = 0;
    if (infrastructAnalysisFactories != null) {
      numOfIAFactories = infrastructAnalysisFactories.size();
    }

    for (int i = 0; i < numOfPFactories; i++) {

      currentPFactory = partitioningFactories.get(i);
      suitableMAFactory = null;
      suitableIAFactory = null;

      // Check whether there is a compatible model analyzer algorithm
      for (int j = 0; j < numOfMAFactories; j++) {
        ModelAnalyzerFactory currentMAFactory = modelAnalyzerFactories.get(j);
        if (currentPFactory.supportsModelGraphLabels(
            currentMAFactory.getGeneratedEdgeLabel(),
            currentMAFactory.getGeneratedVertexLabel())) {
          suitableMAFactory = currentMAFactory;
          break;
        }
      }

      if (suitableMAFactory == null) {
        continue;
      }

      // Check whether there is a compatible hardware analyzer algorithm
      for (int j = 0; j < numOfIAFactories; j++) {
        InfrastructureAnalyzerFactory currentIAFactory =
            infrastructAnalysisFactories.get(j);
        if (currentPFactory.supportsHardwareGraphLabels(
            currentIAFactory.getGeneratedEdgeLabel(),
            currentIAFactory.getGeneratedVertexLabel())) {
          suitableIAFactory = currentIAFactory;
          break;
        }
View Full Code Here

TOP

Related Classes of org.jamesii.core.distributed.partitioner.partitioning.plugintype.PartitioningFactory

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.