Examples of ModelInfo


Examples of urban.model.info.ModelInfo

*/
public class AddRatesFromShapesTransformer implements ModelTransformer {

  @Override
  public Model transform(Model in) {
    ShapeParameters sp = new ModelInfo(in.getLines()).getShapeParameters();
    RateCalculator rc = new RateCalculator(sp);
    Model out = new Model();
   
    for(Statement line : in.getLines())
      if (line instanceof Rule)
View Full Code Here

Examples of urban.model.info.ModelInfo

public class ShapeToRuleTransformer implements ModelTransformer {

  @Override
  public Model transform(Model in) {
    Model out = new Model();
    final RuleFactory ruleFactory = new RuleFactory(new ModelInfo(in.getLines()).getShapeParameters());
   
    for(Statement line : in.getLines()){
      out.addStatement(line);
      if (line instanceof GeneratorStatement)
        out.addStatements(ruleFactory.generateRules((((GeneratorStatement)line).getGenerator())));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.