/**
 * 
 */
package blog.model;

import blog.BLOGUtil;
import blog.common.Util;

public class ModelEvidenceQueries {
  public ModelEvidenceQueries() {
    model = new Model();
    evidence = new Evidence(model);
    queries = new Queries(model);
  }

  public ModelEvidenceQueries(Model model, Evidence evidence, Queries queries) {
    this.model = model;
    this.evidence = evidence;
    this.queries = queries;
  }

  @Deprecated
  public ModelEvidenceQueries(String modelDescription, String evidenceString,
      String queriesString) {
    model = BLOGUtil.parseModel_NE(modelDescription);
    evidence = BLOGUtil.parseEvidence_NE(evidenceString, model);
    queries = new Queries(model);
    queries.add(BLOGUtil.parseQuery_NE(queriesString, model));
  }

  /**
   * Convenience method assuming there is only one query, of class ArgSpecQuery,
   * and returning it.
   */
  public ArgSpecQuery argSpecQuery() {
    return (ArgSpecQuery) Util.getFirst(queries);
  }

  public Model model;
  public Evidence evidence;
  public Queries queries;
}

/**
 * 
 */
package blog.model;

import blog.common.Util;

public class ModelEvidenceQueries {
  public ModelEvidenceQueries() {
    model = new Model();
    evidence = new Evidence(model);
    queries = new Queries(model);
  }

  public ModelEvidenceQueries(Model model, Evidence evidence, Queries queries) {
    this.model = model;
    this.evidence = evidence;
    this.queries = queries;
  }

  /**
   * Convenience method assuming there is only one query, of class ArgSpecQuery,
   * and returning it.
   */
  public ArgSpecQuery argSpecQuery() {
    return (ArgSpecQuery) Util.getFirst(queries);
  }

  public Model model;
  public Evidence evidence;
  public Queries queries;
}

remove deprecated constructor that wasn't used anywhere