|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cgp.translators.SimpleGenerator | +--cgp.translators.CGIFGenerator
A CGIF Generator class.
Field Summary | |
private boolean |
allowIncompleteRelations
Flag indicating whether the generator should allow incomplete relations or throw an exception. |
private static java.lang.String |
MARKER_TABLE_NAME
Name of MarkerTable unit in context. |
private static java.lang.String |
NEG_TYPE_LABEL
Type label for negation relation type. |
private boolean |
supressGraphComments
Flag indicating whether the generator should supress graph comments. |
private boolean |
supressNodeComments
Flag indicating whether the generator should supress node comments. |
private static boolean |
USE_LITERAL_CONCEPTS_IN_RELATORS
Flag that enables 'inlining' of concepts within relations where possible. |
Fields inherited from class cgp.translators.SimpleGenerator |
conceptHierarchy,
DEFINING_LABEL_TABLE_NAME,
knowledgeBase,
markerSet,
relationHierarchy,
translationContext,
writer |
Constructor Summary | |
CGIFGenerator()
|
Method Summary | |
(package private) void |
Actor(notio.Actor actor,
notio.translators.DefiningLabelTable definingLabelTable)
Generates a actor to the output stream. |
(package private) void |
ActorComment(java.lang.String comment)
Generates a actor comment to output stream. |
(package private) void |
Arc(notio.Concept argument,
notio.translators.DefiningLabelTable definingLabelTable)
Generates an arc to the output stream. |
(package private) void |
Concept(notio.Concept concept,
notio.translators.DefiningLabelTable definingLabelTable)
Generates a concept to the output stream. |
(package private) void |
ConceptComment(java.lang.String comment)
Generates a concept comment to output stream. |
(package private) void |
ConceptType(notio.ConceptType conType)
Generates a concept type to the output stream. |
(package private) void |
ConceptTypeDefinition(notio.ConceptTypeDefinition typeDef)
Generates a concept type definition to the output stream. |
(package private) void |
Designator(notio.Designator designator,
notio.translators.DefiningLabelTable definingLabelTable)
Generates a designator to the output stream. |
void |
generateActor(notio.Actor actor)
Generates an actor to the output stream. |
void |
generateConcept(notio.Concept concept)
Generates a concept to the output stream. |
void |
generateGraph(notio.Graph graph)
Generates a graph to the output stream. |
void |
generateOutermostContext(notio.Graph graph)
Generates a graph to the output stream. |
void |
generateRelation(notio.Relation relation)
Generates a relation to the output stream. |
boolean |
getAllowIncompleteRelations()
Returns a flag indicating whether incomplete relations are allowed whilst generating. |
boolean |
getSupressGraphComments()
Returns a flag indicating whether this generator will supress comments in graphs. |
boolean |
getSupressNodeComments()
Returns a flag indicating whether this generator will supress comments in nodes (Concepts, Relations, and Actors). |
(package private) void |
Graph(notio.Graph graph,
notio.translators.DefiningLabelTable definingLabelTable)
Generates a graph to the output stream. |
(package private) void |
GraphComment(java.lang.String comment)
Generates a graph comment to output stream. |
void |
initializeGenerator(java.io.Writer newWriter,
notio.KnowledgeBase newKnowledgeBase,
notio.TranslationContext newTranslationContext)
Initializes the generator to write to the specified writer using the specified TranslationContext and KnowledgeBase. |
(package private) void |
LiteralDesignator(notio.LiteralDesignator designator)
Generates a literal designator to output stream. |
(package private) void |
MarkerDesignator(notio.MarkerDesignator designator)
Generates a marker designator to output stream. |
(package private) void |
NameDesignator(notio.NameDesignator designator)
Generates a name designator to output stream. |
(package private) void |
Quantifier(notio.Macro quantifier)
Generates a quantifier to the output stream. |
(package private) void |
Referent(notio.Referent referent,
notio.translators.DefiningLabelTable definingLabelTable)
Generates a referent to the output stream. |
(package private) void |
Relation(notio.Relation relation,
notio.translators.DefiningLabelTable definingLabelTable)
Generates a relation to the output stream. |
(package private) void |
RelationComment(java.lang.String comment)
Generates a relation comment to output stream. |
(package private) void |
RelationType(notio.RelationType relType)
Generates a relation type to the output stream. |
(package private) void |
RelationTypeDefinition(notio.RelationTypeDefinition typeDef)
Generates a relation type definition to the output stream. |
void |
setAllowIncompleteRelations(boolean flag)
Sets a flag indicating whether incomplete relations are allowed whilst generating. |
void |
setSupressGraphComments(boolean flag)
Sets a flag indicating whether this generator should supress comments in graphs. |
void |
setSupressNodeComments(boolean flag)
Sets a flag indicating whether this generator should supress comments in nodes (Concepts, Relations, and Actors). |
Methods inherited from class cgp.translators.SimpleGenerator |
escapeCharactersInString,
generate,
generateUnit,
getDefiningLabelTable,
getUnitClass,
initializeGenerator |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final java.lang.String MARKER_TABLE_NAME
private static final java.lang.String NEG_TYPE_LABEL
private static final boolean USE_LITERAL_CONCEPTS_IN_RELATORS
private boolean allowIncompleteRelations
private boolean supressNodeComments
private boolean supressGraphComments
Constructor Detail |
public CGIFGenerator()
Method Detail |
public void initializeGenerator(java.io.Writer newWriter, notio.KnowledgeBase newKnowledgeBase, notio.TranslationContext newTranslationContext) throws notio.GeneratorException
newWriter
- the writer to be generated to.newKnowledgeBase
- the knowledge base to be used while generating.newTranslationContext
- the translationContext to be used while
generating.public void setAllowIncompleteRelations(boolean flag)
flag
- the new value for the flag.Relation.isComplete()
public boolean getAllowIncompleteRelations()
Relation.isComplete()
public void setSupressNodeComments(boolean flag)
flag
- the new value for the flag.public boolean getSupressNodeComments()
public void setSupressGraphComments(boolean flag)
flag
- the new value for the flag.public boolean getSupressGraphComments()
public void generateOutermostContext(notio.Graph graph) throws notio.GeneratorException
graph
- the graph to be generated.public void generateGraph(notio.Graph graph) throws notio.GeneratorException
graph
- the graph to be generated.public void generateConcept(notio.Concept concept) throws notio.GeneratorException
concept
- the concept to be generated.public void generateRelation(notio.Relation relation) throws notio.GeneratorException
relation
- the relation to be generated.public void generateActor(notio.Actor actor) throws notio.GeneratorException
relation
- the relation to be generated.void Graph(notio.Graph graph, notio.translators.DefiningLabelTable definingLabelTable) throws notio.GeneratorException
graph
- the graph to be generated.definingLabelTable
- the current defining label table.void GraphComment(java.lang.String comment) throws notio.GeneratorException
comment
- the graph comment to be generated.void Concept(notio.Concept concept, notio.translators.DefiningLabelTable definingLabelTable) throws notio.GeneratorException
concept
- the concept to be generated.definingLabelTable
- the current defining label table.void ConceptType(notio.ConceptType conType) throws notio.GeneratorException
conType
- the concept type to be generated.void ConceptTypeDefinition(notio.ConceptTypeDefinition typeDef) throws notio.GeneratorException
typeDef
- the concept type definition to be generated.void Referent(notio.Referent referent, notio.translators.DefiningLabelTable definingLabelTable) throws notio.GeneratorException
referent
- the referent to be generated.definingLabelTable
- the current defining label table.void Quantifier(notio.Macro quantifier) throws notio.GeneratorException
quantifier
- the quantifier to be generated.void Designator(notio.Designator designator, notio.translators.DefiningLabelTable definingLabelTable) throws notio.GeneratorException
designator
- the designator to be generated.definingLabelTable
- the current defining label table.void LiteralDesignator(notio.LiteralDesignator designator) throws notio.GeneratorException
designator
- the designator to be generated.void MarkerDesignator(notio.MarkerDesignator designator) throws notio.GeneratorException
designator
- the designator to be generated.void NameDesignator(notio.NameDesignator designator) throws notio.GeneratorException
designator
- the designator to be generated.void ConceptComment(java.lang.String comment) throws notio.GeneratorException
comment
- the concept comment to be generated.void Relation(notio.Relation relation, notio.translators.DefiningLabelTable definingLabelTable) throws notio.GeneratorException
relation
- the relation to be generated.definingLabelTable
- the current defining label table.void RelationType(notio.RelationType relType) throws notio.GeneratorException
relType
- the relation type to be generated.void RelationTypeDefinition(notio.RelationTypeDefinition typeDef) throws notio.GeneratorException
typeDef
- the relation type definition to be generated.final void Arc(notio.Concept argument, notio.translators.DefiningLabelTable definingLabelTable) throws notio.GeneratorException
argument
- the relation argument to be generated.definingLabelTable
- the current defining label table.void RelationComment(java.lang.String comment) throws notio.GeneratorException
comment
- the relation comment to be generated.void Actor(notio.Actor actor, notio.translators.DefiningLabelTable definingLabelTable) throws notio.GeneratorException
actor
- the actor to be generated.definingLabelTable
- the current defining label table.void ActorComment(java.lang.String comment) throws notio.GeneratorException
comment
- the actor comment to be generated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |