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>() |
Definition at line 19 of file Instruction2CycLConverter.java.
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.
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
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.
instructionList | List of Instructions of the HowTo |
howto | Instruction representing the "name" of the HowTo |
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.
inst |
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
pp | |
parentObjects |
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 ObjectX
s into CycL and saves it in the Cyc KB
objects |
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
pp | |
actionInstance | |
parentObjects |
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
q | |
objectInstance |
Definition at line 674 of file Instruction2CycLConverter.java.
void instruction.converter.Instruction2CycLConverter.convertTimeConstraint | ( | Quantifier | tc, |
String | actionInst | ||
) | [inline] |
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
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
concept | |
nameProposal |
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.
concept |
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.
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.
String instruction.converter.Instruction2CycLConverter.planName = "" [package] |
Definition at line 23 of file Instruction2CycLConverter.java.