SimilarInstancePerception.java
Go to the documentation of this file.
00001 package edu.tum.cs.ias.knowrob.mod_dialog.queries;
00002 
00003 import java.util.HashMap;
00004 import java.util.Vector;
00005 import java.util.regex.Matcher;
00006 import java.util.regex.Pattern;
00007 
00008 import edu.tum.cs.ias.knowrob.json_prolog.PrologValue;
00009 import edu.tum.cs.ias.knowrob.mod_dialog.DialogModule;
00010 
00011 public class SimilarInstancePerception extends SimpleTopLevelQuery {
00012 
00013         public SimilarInstancePerception(DialogModule mod) {
00014                 super(mod);
00015         }
00016 
00017         @Override
00018         public String match(String q) {
00019                 
00020 //              Matcher matcher = Pattern.compile("([w|W]here exs ([a-zA-Z0-9]*?)\\?)").matcher(q);
00021 //              if(matcher.find()) {
00022 //                      q=matcher.group(2);
00023 //
00024 //                      String query = "";
00025 //
00026 //                      HashMap<String, Vector<PrologValue>> res = DialogModule.executeQuery(query);
00027 //
00028 //                      String x = res.get("X").toString(); x=x.substring(1, x.length()-1);
00029 //                      return "No.\n"; 
00030 //              }
00031                 
00032                 return null;
00033         }
00034 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


mod_dialog
Author(s): Moritz Tenorth
autogenerated on Tue Apr 16 2013 00:38:37