Ejemplo n.º 1
0
  public ModelGraph generateModelGraph() throws ReflectionException {
    LBConfiguration lbConf = laboConf.getLBConfiguration(simDesc.getLBConfigurationId());

    SubLatticesConfiguration subConf = lbConf.getSubLatticesConfiguration();
    ModelGraphGenerator mGraphGen =
        (ModelGraphGenerator) Reflection.newInstance(subConf.getGeneratorClassName());

    LatticeDescription lattDesc = lbConf.getLatticeDescription();
    int[] size = lattDesc.getSize();
    Lattice latt = (Lattice) Reflection.newInstance(lattDesc.getClassName());
    LatticeDescriptor desc = latt.getLatticeDescriptor();
    mGraphGen.setParameters(size, subConf.getMinSubLatticesCount(), desc);

    return mGraphGen.generateModelGraph();
  }
Ejemplo n.º 2
0
  @Override
  public void setSize(int[] latticeSize) {
    super.setSize(latticeSize);

    xSize = latticeSize[0];
    ySize = latticeSize[1];
    zSize = latticeSize[2];
  }