All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends
Public Member Functions | Static Public Member Functions | Static Public Attributes | Package Attributes | Private Member Functions | Private Attributes | Static Private Attributes
instruction.exporter.PlanExporter Class Reference

List of all members.

Public Member Functions

CycList arg1GAFsAbout (String concept, String microtheory) throws UnknownHostException, IOException
CycList arg2GAFsAbout (String concept, String microtheory) throws UnknownHostException, IOException
String exportPlanToRPL (String planName)
void readActionParametersFromKB (ArrayList< String > actionList) throws UnknownHostException, IOException
void readActionsForPlanFromKB (String plan) throws UnknownHostException, IOException
void readActionTypesFromKB () throws UnknownHostException, IOException
void readLocationsFromKB (HashMap< String, CycList > paramList) throws UnknownHostException, IOException
void readObjectsFromKB (HashMap< String, CycList > paramList) throws UnknownHostException, IOException
void readRplNames ()

Static Public Member Functions

static PlanExporter getInstance () throws UnknownHostException, CycApiException, IOException

Static Public Attributes

static final String MT_TUM_KITCHEN_ENVIRONMENT = "#$TUMKitchenEnvironmentMt"
static final String MT_TUM_KITCHEN_ENVIRONMENT_PLANNING = "#$TUMKitchenEnvironmentPlanningMt"
static final String MT_UNIVERSAL_VOCABULARY = "#$UniversalVocabularyMt"

Package Attributes

String designators = new String()
String goals = new String()
int locCounter = 0

Private Member Functions

String constructLocDesignatorFromCycString (String locDesc, String action) throws UnknownHostException, IOException
boolean containsString (String[] list, String str)
HashMap< String, String > cycParamListToStringMap (CycList cycPar)
List< String > getAllLocationIds ()
List< String > getAllObjectIds ()
void getInvolvedEntities (String id, List< String > entities)
String getObjectLocationForAction (String action)
String getObjectLocationOfPreviousAction (String action)
String getPreviousAction (String action)
String makePerceiveForEntities (List< String > entities)
 PlanExporter () throws UnknownHostException, CycApiException, IOException
String readAchieve (String action)
String readContainerContentStirred (String action)
String readContainerContentTransfilled (String action)
String readContainerFilled (String action)
String readCook (String action)
String readEnclosingObjectOpened (String action)
String readFindObject (String action)
String readHotPlateTemperature (String action)
void readLocationDesignators (HashMap< String, String > locations) throws UnknownHostException, IOException
String readObjectAddedToContainer (String action)
String readObjectAtPlace (String action)
String readObjectClosed (String action)
void readObjectDesignators (HashMap< String, CycList > objects)
String readObjectFlipped (String action)
String readObjectOnObject (String action)
String readObjectPickedUp (String action)
String readUse (String action)
String readWait (String action)

Private Attributes

Map< String, String > actionLocations = null
HashMap< String, CycList > actionParameters
HashMap< String, String > actionTypes
CycObject kitchenEnvMt = null
List< String > locationDesignators = new ArrayList<String>()
HashMap< String, String > locations
List< String > objectDesignators = new ArrayList<String>()
HashMap< String, CycList > objects
HashMap< String, String > objLocations
ArrayList< String > plan
HashMap< String, String > rplName

Static Private Attributes

static CycAccess cyc = null
static PlanExporter me = null
static String[] spatialRelations

Detailed Description

Definition at line 20 of file PlanExporter.java.


Constructor & Destructor Documentation

instruction.exporter.PlanExporter.PlanExporter ( ) throws UnknownHostException, CycApiException, IOException [inline, private]

Definition at line 91 of file PlanExporter.java.


Member Function Documentation

CycList instruction.exporter.PlanExporter.arg1GAFsAbout ( String  concept,
String  microtheory 
) throws UnknownHostException, IOException [inline]

Definition at line 360 of file PlanExporter.java.

CycList instruction.exporter.PlanExporter.arg2GAFsAbout ( String  concept,
String  microtheory 
) throws UnknownHostException, IOException [inline]

Definition at line 377 of file PlanExporter.java.

String instruction.exporter.PlanExporter.constructLocDesignatorFromCycString ( String  locDesc,
String  action 
) throws UnknownHostException, IOException [inline, private]

Definition at line 687 of file PlanExporter.java.

boolean instruction.exporter.PlanExporter.containsString ( String[]  list,
String  str 
) [inline, private]

Definition at line 1215 of file PlanExporter.java.

HashMap<String, String> instruction.exporter.PlanExporter.cycParamListToStringMap ( CycList  cycPar) [inline, private]

Definition at line 1192 of file PlanExporter.java.

String instruction.exporter.PlanExporter.exportPlanToRPL ( String  planName) [inline]

Definition at line 392 of file PlanExporter.java.

List<String> instruction.exporter.PlanExporter.getAllLocationIds ( ) [inline, private]

Definition at line 882 of file PlanExporter.java.

List<String> instruction.exporter.PlanExporter.getAllObjectIds ( ) [inline, private]

Definition at line 872 of file PlanExporter.java.

static PlanExporter instruction.exporter.PlanExporter.getInstance ( ) throws UnknownHostException, CycApiException, IOException [inline, static]

Definition at line 99 of file PlanExporter.java.

void instruction.exporter.PlanExporter.getInvolvedEntities ( String  id,
List< String >  entities 
) [inline, private]

Recursively searches for all entities that are involved in the specified action or location. The entity IDs will be stored in the list.

Parameters:
action
entities

Definition at line 840 of file PlanExporter.java.

String instruction.exporter.PlanExporter.getObjectLocationForAction ( String  action) [inline, private]

Definition at line 922 of file PlanExporter.java.

String instruction.exporter.PlanExporter.getObjectLocationOfPreviousAction ( String  action) [inline, private]

Definition at line 910 of file PlanExporter.java.

String instruction.exporter.PlanExporter.getPreviousAction ( String  action) [inline, private]

Definition at line 901 of file PlanExporter.java.

String instruction.exporter.PlanExporter.makePerceiveForEntities ( List< String >  entities) [inline, private]

Definition at line 892 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readAchieve ( String  action) [inline, private]

Definition at line 1169 of file PlanExporter.java.

void instruction.exporter.PlanExporter.readActionParametersFromKB ( ArrayList< String >  actionList) throws UnknownHostException, IOException [inline]

Definition at line 297 of file PlanExporter.java.

void instruction.exporter.PlanExporter.readActionsForPlanFromKB ( String  plan) throws UnknownHostException, IOException [inline]

Definition at line 261 of file PlanExporter.java.

void instruction.exporter.PlanExporter.readActionTypesFromKB ( ) throws UnknownHostException, IOException [inline]

Definition at line 285 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readContainerContentStirred ( String  action) [inline, private]

Definition at line 1102 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readContainerContentTransfilled ( String  action) [inline, private]

Definition at line 1082 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readContainerFilled ( String  action) [inline, private]

Definition at line 1061 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readCook ( String  action) [inline, private]

Definition at line 1160 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readEnclosingObjectOpened ( String  action) [inline, private]

Definition at line 1031 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readFindObject ( String  action) [inline, private]

Definition at line 944 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readHotPlateTemperature ( String  action) [inline, private]

Definition at line 1007 of file PlanExporter.java.

void instruction.exporter.PlanExporter.readLocationDesignators ( HashMap< String, String >  locations) throws UnknownHostException, IOException [inline, private]

Definition at line 613 of file PlanExporter.java.

void instruction.exporter.PlanExporter.readLocationsFromKB ( HashMap< String, CycList >  paramList) throws UnknownHostException, IOException [inline]

Definition at line 335 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readObjectAddedToContainer ( String  action) [inline, private]

Definition at line 994 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readObjectAtPlace ( String  action) [inline, private]

Definition at line 930 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readObjectClosed ( String  action) [inline, private]

Definition at line 1053 of file PlanExporter.java.

void instruction.exporter.PlanExporter.readObjectDesignators ( HashMap< String, CycList >  objects) [inline, private]

Definition at line 553 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readObjectFlipped ( String  action) [inline, private]

Definition at line 1040 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readObjectOnObject ( String  action) [inline, private]

Definition at line 970 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readObjectPickedUp ( String  action) [inline, private]

Definition at line 955 of file PlanExporter.java.

void instruction.exporter.PlanExporter.readObjectsFromKB ( HashMap< String, CycList >  paramList) throws UnknownHostException, IOException [inline]

Definition at line 309 of file PlanExporter.java.

Definition at line 109 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readUse ( String  action) [inline, private]

Definition at line 1179 of file PlanExporter.java.

String instruction.exporter.PlanExporter.readWait ( String  action) [inline, private]

Definition at line 1124 of file PlanExporter.java.


Member Data Documentation

Map<String, String> instruction.exporter.PlanExporter.actionLocations = null [private]

Maps an action instance to its goal location, e.g. "puttingsomethingsomewhere1" -> "location0"

Definition at line 79 of file PlanExporter.java.

HashMap<String, CycList> instruction.exporter.PlanExporter.actionParameters [private]

Maps an action instance to a list of assertions associated to that instance, e.g. "puttingsomethingsomewhere1" -> (isa puttingsomethingsomewhere1 PuttingSomethingSomewhere), (objectActedOn puttingsthswh ...)

Definition at line 48 of file PlanExporter.java.

HashMap<String, String> instruction.exporter.PlanExporter.actionTypes [private]

Most specific superclass of the action instances in Cyc, e.g. "puttingsomethingsomewhere1" -> "PuttingSomethingSomewhere"

Definition at line 40 of file PlanExporter.java.

CycAccess instruction.exporter.PlanExporter.cyc = null [static, private]

Definition at line 81 of file PlanExporter.java.

String instruction.exporter.PlanExporter.designators = new String() [package]

Definition at line 86 of file PlanExporter.java.

String instruction.exporter.PlanExporter.goals = new String() [package]

Definition at line 87 of file PlanExporter.java.

Definition at line 84 of file PlanExporter.java.

List<String> instruction.exporter.PlanExporter.locationDesignators = new ArrayList<String>() [private]

A list containing all location designators of this plan

Definition at line 68 of file PlanExporter.java.

HashMap<String, String> instruction.exporter.PlanExporter.locations [private]

Maps each location ID generated to a set of associated assertions, e.g. "location0" -> "(purposeOf-Generic action1 (...))"

Definition at line 61 of file PlanExporter.java.

Definition at line 89 of file PlanExporter.java.

Definition at line 82 of file PlanExporter.java.

final String instruction.exporter.PlanExporter.MT_TUM_KITCHEN_ENVIRONMENT = "#$TUMKitchenEnvironmentMt" [static]

Definition at line 22 of file PlanExporter.java.

final String instruction.exporter.PlanExporter.MT_TUM_KITCHEN_ENVIRONMENT_PLANNING = "#$TUMKitchenEnvironmentPlanningMt" [static]

Definition at line 23 of file PlanExporter.java.

final String instruction.exporter.PlanExporter.MT_UNIVERSAL_VOCABULARY = "#$UniversalVocabularyMt" [static]

Definition at line 21 of file PlanExporter.java.

List<String> instruction.exporter.PlanExporter.objectDesignators = new ArrayList<String>() [private]

A list containing all object designators of this plan

Definition at line 73 of file PlanExporter.java.

HashMap<String, CycList> instruction.exporter.PlanExporter.objects [private]

Maps an object instance name to a list of all associated assertions, e.g. "table-pieceoffurniture1" -> (isa table-pieceoffurniture1 Table-PieceOfFurniture)

Definition at line 55 of file PlanExporter.java.

HashMap<String, String> instruction.exporter.PlanExporter.objLocations [private]

Definition at line 63 of file PlanExporter.java.

ArrayList<String> instruction.exporter.PlanExporter.plan [private]

List of all action instances of the plan in the correct order, e.g. "action1", "action2", ...

Definition at line 32 of file PlanExporter.java.

HashMap<String, String> instruction.exporter.PlanExporter.rplName [private]

Definition at line 34 of file PlanExporter.java.

Initial value:
 { "TopSide", "RightSide",
                        "BottomSide", "CornerOnObject", "CenterOfGeographicalRegion",
                        "FrontSide", "Side" }

Definition at line 25 of file PlanExporter.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


comp_ehow
Author(s): Moritz Tenorth, Daniel Nyga
autogenerated on Tue Apr 16 2013 00:18:16