Public Member Functions | |
String | exportPlanToCPL (String plan_name) |
PlanExporter () throws IOException | |
JSONObject | readCplMapping (String configFile) throws java.io.IOException |
Static Public Member Functions | |
static void | main (String[] args) |
Static Public Attributes | |
static final String | MAPPING_CONFIG_FILE = "etc/knowrob2cpl.json" |
Private Member Functions | |
String | actionDesignatorFromOWLclass (String action, String prop, String loc_desig) |
String | instanceFromClass (String cl) |
String | knowrobToCpl (String val) |
String | lispify (String pl) |
String | locationDesignatorForObject (String objClass) |
String | locationDesignatorFromOWLclass (String loc) |
String | objectDesignatorFromOWLclass (String objdef) |
Private Attributes | |
Vector< String > | designator_order |
HashMap< String, String > | designators |
int | inst_counter = 100 |
JSONObject | knowrobToCPL |
ArrayList< String > | plan |
Definition at line 19 of file PlanExporter.java.
edu.tum.cs.ias.knowrob.PlanExporter.PlanExporter | ( | ) | throws IOException [inline] |
Definition at line 38 of file PlanExporter.java.
String edu.tum.cs.ias.knowrob.PlanExporter.actionDesignatorFromOWLclass | ( | String | action, |
String | prop, | ||
String | loc_desig | ||
) | [inline, private] |
Definition at line 376 of file PlanExporter.java.
String edu.tum.cs.ias.knowrob.PlanExporter.exportPlanToCPL | ( | String | plan_name | ) | [inline] |
Definition at line 46 of file PlanExporter.java.
String edu.tum.cs.ias.knowrob.PlanExporter.instanceFromClass | ( | String | cl | ) | [inline, private] |
Create unique identifier from a class description
cl | Class description |
Definition at line 501 of file PlanExporter.java.
String edu.tum.cs.ias.knowrob.PlanExporter.knowrobToCpl | ( | String | val | ) | [inline, private] |
Convert KnowRob identifier to CPL
If there is a mapping defined in the knowrobToCPL HashMap, this mapping will be used. Otherwise, the methods returns a 'lispified' string, i.e. a string that is converted from CamelCase to lower-case-hyphenated
val | KnowRob identifier |
Definition at line 427 of file PlanExporter.java.
String edu.tum.cs.ias.knowrob.PlanExporter.lispify | ( | String | pl | ) | [inline, private] |
'Lispify' a string: convert from Java CamelCaseSyntax into hyphenated-lower-case-syntax.
pl | String to be lispified |
Definition at line 454 of file PlanExporter.java.
String edu.tum.cs.ias.knowrob.PlanExporter.locationDesignatorForObject | ( | String | objClass | ) | [inline, private] |
Definition at line 246 of file PlanExporter.java.
String edu.tum.cs.ias.knowrob.PlanExporter.locationDesignatorFromOWLclass | ( | String | loc | ) | [inline, private] |
Create a location designator based on an OWL class specification
loc | OWL class specification of a location |
Definition at line 273 of file PlanExporter.java.
static void edu.tum.cs.ias.knowrob.PlanExporter.main | ( | String[] | args | ) | [inline, static] |
Main function for testing purposes
args |
Definition at line 511 of file PlanExporter.java.
String edu.tum.cs.ias.knowrob.PlanExporter.objectDesignatorFromOWLclass | ( | String | objdef | ) | [inline, private] |
Create an object designator based on an OWL class specification
objdef | OWL class specification of an object |
Definition at line 210 of file PlanExporter.java.
JSONObject edu.tum.cs.ias.knowrob.PlanExporter.readCplMapping | ( | String | configFile | ) | throws java.io.IOException [inline] |
Read JSON-formatted configuration file to initialize the mapping between KnowRob classes and CPL identifiers
configFile |
java.io.IOException |
Definition at line 474 of file PlanExporter.java.
Vector<String> edu.tum.cs.ias.knowrob.PlanExporter.designator_order [private] |
Definition at line 35 of file PlanExporter.java.
HashMap<String, String> edu.tum.cs.ias.knowrob.PlanExporter.designators [private] |
Definition at line 34 of file PlanExporter.java.
int edu.tum.cs.ias.knowrob.PlanExporter.inst_counter = 100 [private] |
Definition at line 36 of file PlanExporter.java.
JSONObject edu.tum.cs.ias.knowrob.PlanExporter.knowrobToCPL [private] |
mapping from KnowRob concepts to CPL identifiers
Definition at line 33 of file PlanExporter.java.
final String edu.tum.cs.ias.knowrob.PlanExporter.MAPPING_CONFIG_FILE = "etc/knowrob2cpl.json" [static] |
Definition at line 22 of file PlanExporter.java.
ArrayList<String> edu.tum.cs.ias.knowrob.PlanExporter.plan [private] |
List of all action instances of the plan in the correct order, e.g. "action1", "action2", ...
Definition at line 28 of file PlanExporter.java.