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:
-
- 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:
-
- 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 ObjectX
s into CycL and saves it in the Cyc KB
- Parameters:
-
- 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] |
void instruction::converter::Instruction2CycLConverter::convertTimeConstraint |
( |
Quantifier |
tc, |
|
|
String |
actionInst | |
|
) |
| | [inline] |
List<String> instruction::converter::Instruction2CycLConverter::getAssertions |
( |
|
) |
[inline] |
String instruction::converter::Instruction2CycLConverter::getPlanName |
( |
|
) |
[inline] |
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:
-
- 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:
-
- Returns:
- The Name of the instance
- Exceptions:
-
| CycApiException | |
| UnknownHostException | |
| IOException | |
Definition at line 45 of file Instruction2CycLConverter.java.
void instruction::converter::Instruction2CycLConverter::resetConverter |
( |
|
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following file: