Package ru.bmstu.datalog.storage

Examples of ru.bmstu.datalog.storage.DatalogStorage


   * @param program
   * @param storagePath
   * @return
   */
  public static HashSet<Predicate> getAnswer(DatalogData program, String storagePath) {
    storage = new DatalogStorage(storagePath, false);
       
    return initAndStartAlgo(program);
  }
View Full Code Here


   * Used data for facts,rules and requests. After, facts are placed in tempStorage.
   * @param data
   * @return
   */
  public static HashSet<Predicate> getAnswer(DatalogData data) {
    storage = new DatalogStorage("tempStorage", false);
    storage.clear();
    storage.insertFacts(data.getFacts());
   
    return initAndStartAlgo(data);   
  }
View Full Code Here

   * @param program
   * @param data
   * @return
   */
  public static HashSet<Predicate> getAnswer(DatalogData program, DatalogData data) {
    storage = new DatalogStorage("tempStorage", false);
    storage.clear();
    storage.insertFacts(data.getFacts());
   
    return initAndStartAlgo(program);
  }
View Full Code Here

    rules = data.getRules();
    requests = data.getRequests();
    currentVariable = 0;
   
    requestCash = new HashSet<Predicate>();
    answerSet = new DatalogStorage("answerStorage", true);
   
    //preprocessoring
    sortPredicateInRule();
    evaluateVariables();
    initRuleNames();
View Full Code Here

TOP

Related Classes of ru.bmstu.datalog.storage.DatalogStorage

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.