$search

instruction::converter::Instruction2CycLConverter Class Reference

List of all members.

Public Member Functions

void connectObjectWithPreposition (String child, String parent, Word pp, String action)
void convertAdjectives (List< Word > adjectives, String objectInstance, String actionInstance)
void convertHowTo (List< Instruction > instructionList, Instruction howto) throws CycApiException, UnknownHostException, IOException
String convertInstruction (Instruction inst) throws CycApiException, UnknownHostException, IOException
void convertNestedPP (Preposition pp, List< String > parentObjects, String actionInstance) throws CycApiException, UnknownHostException, IOException
List< String > convertObjects (List< ObjectX > objects, String actionInstance) throws CycApiException, UnknownHostException, IOException
void convertPP (Preposition pp, String actionInstance, List< String > parentObjects) throws CycApiException, UnknownHostException, IOException
void convertQuantifier (Quantifier q, String objectInstance)
void convertTimeConstraint (Quantifier tc, String actionInst)
List< String > getAssertions ()
String getPlanName ()
String makeInstanceOfAction (String concept, String nameProposal) throws CycApiException, UnknownHostException, IOException
String makeInstanceOfObject (String concept) throws CycApiException, UnknownHostException, IOException
void resetConverter ()

Package Attributes

List< String > assertions = new ArrayList<String>()
String planName = ""

Private Attributes

HashMap< String, String > objectInstances = new HashMap<String, String>()

Detailed Description

Definition at line 19 of file Instruction2CycLConverter.java.


Member Function Documentation

void instruction::converter::Instruction2CycLConverter::connectObjectWithPreposition ( String  child,
String  parent,
Word  pp,
String  action 
) [inline]

Converts the prepositional relation between two Objects child and parent into CycL and saves it in the Cyc KB.

Parameters:
child instance name of the child object
parent instance name of the parent object
pp the preposition connecting child and parent
action 

Definition at line 410 of file Instruction2CycLConverter.java.

void instruction::converter::Instruction2CycLConverter::convertAdjectives ( List< Word adjectives,
String  objectInstance,
String  actionInstance 
) [inline]

Converts a list of adjectives of an object that has been instantiated with the name objectInstance

Parameters:
adjectives 
objectInstance 

Definition at line 578 of file Instruction2CycLConverter.java.

void instruction::converter::Instruction2CycLConverter::convertHowTo ( List< Instruction instructionList,
Instruction  howto 
) throws CycApiException, UnknownHostException, IOException [inline]

Converts a whole HowTo into CycL and saves it in the Cyc KB.

Parameters:
instructionList List of Instructions of the HowTo
howto Instruction representing the "name" of the HowTo
Exceptions:
CycApiException 
UnknownHostException 
IOException 

Definition at line 253 of file Instruction2CycLConverter.java.

String instruction::converter::Instruction2CycLConverter::convertInstruction ( Instruction  inst  )  throws CycApiException, UnknownHostException, IOException [inline]

Converts a single Instruction into CycL and saves it in the Cyc KB.

Parameters:
inst 
Returns:
Exceptions:
CycApiException 
UnknownHostException 
IOException 

Definition at line 127 of file Instruction2CycLConverter.java.

void instruction::converter::Instruction2CycLConverter::convertNestedPP ( Preposition  pp,
List< String >  parentObjects,
String  actionInstance 
) throws CycApiException, UnknownHostException, IOException [inline]

Converts a Preposition that is nested, i.e. not directly hold by an Instruction, but by an ObjectX

Parameters:
pp 
parentObjects 
Exceptions:
CycApiException 
UnknownHostException 
IOException 

Definition at line 741 of file Instruction2CycLConverter.java.

List<String> instruction::converter::Instruction2CycLConverter::convertObjects ( List< ObjectX objects,
String  actionInstance 
) throws CycApiException, UnknownHostException, IOException [inline]

Converts a set of ObjectXs into CycL and saves it in the Cyc KB

Parameters:
objects 
Returns:
Exceptions:
CycApiException 
UnknownHostException 
IOException 

Definition at line 531 of file Instruction2CycLConverter.java.

void instruction::converter::Instruction2CycLConverter::convertPP ( Preposition  pp,
String  actionInstance,
List< String >  parentObjects 
) throws CycApiException, UnknownHostException, IOException [inline]

Converts a Preposition an root level, i.e. directly stored in an Instruction into CycL and saves it in the Cyc KB

Parameters:
pp 
actionInstance 
parentObjects 
Exceptions:
CycApiException 
UnknownHostException 
IOException 

Definition at line 363 of file Instruction2CycLConverter.java.

void instruction::converter::Instruction2CycLConverter::convertQuantifier ( Quantifier  q,
String  objectInstance 
) [inline]

Converts a Quantifier of an Object into CycL and saves in the Cyc KB

Parameters:
q 
objectInstance 

Definition at line 674 of file Instruction2CycLConverter.java.

void instruction::converter::Instruction2CycLConverter::convertTimeConstraint ( Quantifier  tc,
String  actionInst 
) [inline]
Parameters:
tc 
actionInst 

Definition at line 186 of file Instruction2CycLConverter.java.

List<String> instruction::converter::Instruction2CycLConverter::getAssertions (  )  [inline]

Returns all assertions that have been successfully made

Returns:

Definition at line 780 of file Instruction2CycLConverter.java.

String instruction::converter::Instruction2CycLConverter::getPlanName (  )  [inline]

Definition at line 785 of file Instruction2CycLConverter.java.

String instruction::converter::Instruction2CycLConverter::makeInstanceOfAction ( String  concept,
String  nameProposal 
) throws CycApiException, UnknownHostException, IOException [inline]

Creates a new instance of an Action given by the Concept concept.The instance is named by the concept name in lower case letters + the smallest non-zero integer value, which has not yet been used, if nameProposal is null

Parameters:
concept 
nameProposal 
Returns:
Exceptions:
CycApiException 
UnknownHostException 
IOException 

Definition at line 90 of file Instruction2CycLConverter.java.

String instruction::converter::Instruction2CycLConverter::makeInstanceOfObject ( String  concept  )  throws CycApiException, UnknownHostException, IOException [inline]

Creates a new instance of the given concept in Cyc. The instance is named by the concept name in lower case letters + the smallest non-zero integer value, which has not yet been used. The type of the instance is only valid in the TUMKitchenEnvironmentMt Example: napkin1, napkin2, napkin3 - when makeInstanceOfObject("Napkin") was called 3 times.

Parameters:
concept 
Returns:
The Name of the instance
Exceptions:
CycApiException 
UnknownHostException 
IOException 

Definition at line 45 of file Instruction2CycLConverter.java.

void instruction::converter::Instruction2CycLConverter::resetConverter (  )  [inline]

Resets the Converter instance

Definition at line 770 of file Instruction2CycLConverter.java.


Member Data Documentation

List<String> instruction::converter::Instruction2CycLConverter::assertions = new ArrayList<String>() [package]

List of all assertions that have been made

Definition at line 22 of file Instruction2CycLConverter.java.

HashMap<String, String> instruction::converter::Instruction2CycLConverter::objectInstances = new HashMap<String, String>() [private]

Cache for all Objects intantiated during the howto. Maps Concepts to instance names

Definition at line 29 of file Instruction2CycLConverter.java.

Definition at line 23 of file Instruction2CycLConverter.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 Mon Dec 3 21:28:15 2012