|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectaminePlatform.util.cg.Concept
Title: util.cg.Concept Class
Description: A Concept is composed of a type, a designator with an optional coreferent, a descriptor, a state (used in the context of Synergy Language) and a point (in the case of graphic display). Concept type is either a variable or a reference to a Type CS contained in the current ontology. Concept designator is either null, a variable, a reference to an Individual CS contained in the current ontology, a Designator Set (set of Individual) or a pseudo-designator. A coreferent, if specified, is a variable. Concept descriptor is either null, a variable, a CS, any Amine Object (AmineBoolean, AmineInteger, AmineDouble, Identifier, String, Boolean, Integer, Double, AmineSet, AmineList, Term, Concept, CG), any Java Object that implements AmineObject and Matching interfaces or even any Java Object. Only the type is mandatory in the specification of a concept, the other components are optional.
Copyright : Copyright (c) Adil KABBAJ 2004-2009
Field Summary |
Constructor Summary | |
Concept(java.lang.Object type)
Create a concept given its type only. |
|
Concept(java.lang.Object type,
java.lang.Object designator)
Create a concept given its type and designator. |
|
Concept(java.lang.Object type,
java.lang.Object designator,
java.lang.Object descriptor)
Create a concept given its type, designator and descriptor. |
|
Concept(java.lang.Object type,
java.lang.Object designator,
Variable coreferent,
java.lang.Object descriptor)
Create a concept given its type, designator, coreferent and descriptor. |
|
Concept(java.lang.Object type,
java.lang.Object designator,
Variable coreferent,
java.lang.Object descriptor,
java.awt.Point leftTopPoint)
The general specification of the concept constructor. |
Method Summary | |
void |
addIncomeEdge(Edge edge)
|
boolean |
addIncomeRelation(Relation relation)
Add the specified relation to the attribute incomeRelations of the current concept. |
void |
addOutcomeEdge(Edge edge)
|
boolean |
addOutcomeRelation(Relation relation)
Add the specified relation to the attribute outcomeRelations of the current concept. |
(package private) void |
analogDesignator(BindingContext bindContext,
java.lang.Object bindInf,
Concept conc2,
java.lang.Object bindInf2,
CGOperations cgOperations)
|
static boolean |
canBeDesignator(java.lang.Object designator)
Check if designator can be a concept designator (it could be null or an Individual CS or a set of Individuals or a variable or a pseudo-designator), without the test of conformity between a concept type and the designator. |
static boolean |
canBeDesignator(java.lang.Object designator,
java.lang.Object type)
Check if designator can be a designator (i.e. it can be null, an Individual CS, a set of Individuals, a variable or a pseudo-designator), taking into account the conformity test between the designator and the specified type. |
static boolean |
canBeState(byte s)
Check if the specified byte s can be a state of the current concept. |
static boolean |
canBeType(java.lang.Object type)
Check if type can be a type for a concept : it should be either a Type CS or a variable or a composed type or a predicate (a Term). |
void |
clear()
This method should be used with care since it will destroy the structures that could be included in the concept, like a DesignatorSet or any descriptor. |
void |
clearIncomeRelations()
Clear the ArrayList incomeRelations of the current concept and set it to null. |
void |
clearOutcomeRelations()
Clear the ArrayList outcomeRelations of the current concept and set it to null. |
java.lang.Object |
clone()
Return a deep copy of the current concept. |
java.lang.Object |
clone(BindingContext bindContext,
java.lang.Object bindInf)
This method is equivalent to copy(bindContext, bindInf). |
Concept |
copy()
Performs a deep copy of the current concept. |
Concept |
copy(BindingContext bindContext,
java.lang.Object bindInf)
Perform a deep copy of the current concept, the relations related to the concept are concerned by this copy; the new concept will have no income and no outcome relations. |
Concept |
copy(BindingContext bindContext,
java.lang.Object bindInf,
CorefMatchList corefMatchL,
int indx)
|
Variable |
copyCoreferent()
Copy the coreferent of the current concept (if it has). |
Variable |
copyCoreferent(CorefMatchList corefMatchL,
int indx)
|
java.lang.Object |
copyDescriptor(BindingContext bindContext,
java.lang.Object bindInf)
Copy the descriptor of the current concept. |
java.lang.Object |
copyDescriptor(BindingContext bindContext,
java.lang.Object bindInf,
CorefMatchList corefMatchL,
int indx)
|
java.lang.Object |
copyDesignator(BindingContext bindContext,
java.lang.Object bindInf)
Copy the designator of the current concept. |
static java.lang.Object |
copyDesignator(BindingContext bindContext,
java.lang.Object designator,
java.lang.Object bindInf)
This method is the static variant of the method copyDesignator(bindContext, bindInf). |
Node |
copyNode()
|
java.awt.Point |
copyPoint()
Copy the position of the current concept (if it has). |
java.lang.Object |
copyType(BindingContext bindContext,
java.lang.Object bindInf)
Return the type of the current concept (or its value if the type is a variable and variable binding is considered) which is a Type CS. |
static java.lang.Object |
copyType(BindingContext bindContext,
java.lang.Object type,
java.lang.Object bindInf)
This method is the static variant of the method copyType(bindContext, bindInf). |
boolean |
eqDesignator(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object designator2,
java.lang.Object bindInfDsgn)
Test if two concept designators are equal. |
boolean |
eqType(BindingContext bindContext,
java.lang.Object bindInfType1,
java.lang.Object type2,
java.lang.Object bindInfType2)
Test if two concept types are equal. |
boolean |
equal(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Check that the current object is equal with the specified object obj. |
boolean |
equal(java.lang.Object obj)
Check that the current object is equal with the specified object obj. |
void |
finalize()
Finalize the current concept. |
java.lang.Object |
generalize(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Perform a generalization of the current object with the specified object obj, to determine what is common to the two objects. |
java.lang.Object |
generalize(java.lang.Object obj)
Perform a generalization of the current object with the specified object obj, to determine what is common to the two objects. |
java.util.ArrayList |
getAdjacentNodes()
|
java.lang.Object[] |
getArrayIncomeRelations()
Get the incomeRelations of the current concept in an array |
java.lang.Object[] |
getArrayOutcomeRelations()
Get the outcomeRelations of the current concept in an array |
Variable |
getCoreferent()
Get the coreferent of the current concept |
java.lang.Object |
getDescriptor()
Get the descriptor of the current concept |
java.lang.Object |
getDesignator()
Get the designator of the current concept |
java.util.Enumeration |
getEdges()
|
java.util.Enumeration |
getIncomeEdges()
|
java.util.Enumeration |
getIncomeRelations()
Get an Enumeration over the incomeRelations of the current concept |
java.awt.Point |
getLeftTopPoint()
Get the left-top point of the rectangle that represents the current concept |
int |
getNbrIncomeRels()
Get the number of income relations of the current concept |
int |
getNbrOutcomeRels()
Get the number of outcome relations of the current concept |
int |
getNbrRelations()
Get the number of income and outcome relations of the current concept |
java.util.Enumeration |
getOutcomeEdges()
|
java.util.Enumeration |
getOutcomeRelations()
Get an Enumeration over the outcomeRelations of the current concept |
java.lang.String |
getParameter()
If the current concept is a parameter, this method will return its parameter attribute; a String of the form inNBR or outNBR. |
java.util.Enumeration |
getRelations()
Get an Enumeration over all the income and outcome relations of the current concept. |
byte |
getState()
Get the state of the current concept |
java.lang.Object |
getType()
Get the type of the current concept |
void |
getVariables(java.util.ArrayList varsIdent)
This method adds in the specified varsIdent all the variables used in the current Concept. |
boolean |
hasBoundCoreferent()
This method returns true if the concept has a coreferent that starts with "?" |
boolean |
hasContentToDisplay()
Check if the current concept is a context : if its descriptor is a CG |
boolean |
hasDefinitionalCoreferent()
This method returns true if the concept has a coreferent that starts with "*" |
static boolean |
isConcept(java.lang.Object obj)
Check if the specified Object obj is a Concept. |
static boolean |
isConform(BindingContext bindContext,
java.lang.Object designator,
java.lang.Object bindInfDsgn,
java.lang.Object type,
java.lang.Object bindInfType)
Check if the specified designator is conform to the specified type. |
boolean |
isConnected()
A concept is connected if it has at least an income relation or an outcome relation |
boolean |
isContext()
Check if the current concept is a context : if its descriptor is a CG or a Context CS |
CG |
isContext(BindingContext bindContext,
java.lang.Object bindInf)
Check if the current concept is a context; if its descriptor is a CG or a Context CS. |
static boolean |
isCoreferent(java.lang.Object x)
|
static boolean |
isDesignatorSource(java.lang.Object designator)
Check if designator corresponds to a variable with the special name "source" |
static boolean |
isDesignatorSuper(java.lang.Object designator)
Check if designator corresponds to a variable with the special name "super" |
static boolean |
isDesignatorTarget(java.lang.Object designator)
Check if designator corresponds to a variable with the special name "target" |
static boolean |
isDesignatorThis(java.lang.Object designator)
Check if designator corresponds to a variable with the special name "this" |
boolean |
isIncomeRelation(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object relType,
java.lang.Object bindInfType)
Check if the current concept has an income relation with the specified relType. |
boolean |
isIncomeRelation(java.lang.Object relType)
Check if the current concept has an income relation with the specified relType. |
boolean |
isIncomeRelation(java.lang.Object relType,
java.lang.String suffix)
Similar to the monadic definition, except that we consider the suffix of the two relations. |
boolean |
isIncomeRelation(Relation relation)
Check if the current concept has the specified relation as an income relation. |
boolean |
isOutcomeRelation(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object relType,
java.lang.Object bindInfType)
Check if the current concept has an outcome relation with the specified relType. |
boolean |
isOutcomeRelation(java.lang.Object relType)
Check if the current concept has an outcome relation with the specified relType. |
boolean |
isOutcomeRelation(java.lang.Object relType,
java.lang.String suffix)
Similar to the monadic definition, except that we consider the suffix of the two relations. |
boolean |
isOutcomeRelation(Relation relation)
Check if the current concept has the specified relation as an outcome relation. |
boolean |
isParameter()
Check if the current concept is a parameter (in a CG that represents the description of an operation with parameters, as in the context of SYNERGY). |
static boolean |
isPseudoDesignator(java.lang.Object designator)
Check if designator corresponds to a pseudoDesignator : if the designator is a String |
java.lang.Object |
match(byte matchOperation,
BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Match the current object with the specified object obj, according to the value of the parameter matchOperation. |
java.lang.Object |
match(byte matchOperation,
BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj,
CGOperations cgOperations)
Match the current object with the specified object obj, according to the value of the parameter matchOperation. |
java.lang.Object |
match(byte matchOperation,
java.lang.Object obj)
Match the current object with the specified object obj, according to the value of the parameter matchOperation. |
(package private) boolean |
matchCoref(byte matchOperation,
Concept conc2,
Concept conc3,
CGOperations cgOperations)
|
(package private) boolean |
matchDescriptor(byte matchOperation,
BindingContext bindContext,
java.lang.Object bindInf1,
java.lang.Object descr2,
java.lang.Object bindInfDescr2,
Concept conc3,
CGOperations cgOperations)
|
(package private) boolean |
matchDesignator(byte matchOperation,
BindingContext bindContext,
java.lang.Object bindInf1,
java.lang.Object dsgntr2,
java.lang.Object bindInf2,
Concept conc3)
|
(package private) boolean |
matchType(byte matchOperation,
BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object type2,
java.lang.Object bindInf2,
Concept conc3)
|
(package private) boolean |
matchTypeDesignator(byte matchOperation,
BindingContext bindContext,
java.lang.Object bindInf1,
Concept conc2,
java.lang.Object bindInf2,
Concept conc3)
|
java.lang.Object |
maximalJoin(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Perform a maximal join of the current object with the specified object obj. |
java.lang.Object |
maximalJoin(java.lang.Object obj)
Perform a maximal join of the current object with the specified object obj. |
static Concept |
parse(java.lang.String strgConc,
Lexicon lexicon)
Parse the textual formulation of a Concept (parameter strgConc) using the specified lexicon and produce its internal representation. |
boolean |
removeIncomeRelation(Relation relation)
Remove the specified relation from the incomeRelations of the current concept. |
void |
removeIncomeRelations()
Remove from the CG all the incomeRelations of the current concept. |
boolean |
removeOutcomeRelation(Relation relation)
Remove the specified relation from the outcomeRelations of the current concept. |
void |
removeOutcomeRelations()
Remove from the CG all the outcomeRelations of the current concept. |
void |
setCoreferent(Variable coreferent)
Set the specified coreferent as the coreferent for the current concept. |
void |
setDescriptor(java.lang.Object descriptor)
Set the specified descriptor as the descriptor of the current concept |
boolean |
setDesignator(java.lang.Object designator)
Set the specified designator as the designator of the current concept if designator can be a designator and it is conform with the type of the current concept. |
void |
setIncomeEdges(java.util.ArrayList edges)
|
boolean |
setIncomeRelations(java.util.ArrayList relations)
Set the specified ArrayList as the value for the attribute incomeRelations of the current concept. |
void |
setLeftTopPoint(java.awt.Point leftTopPoint)
Set the specified point (leftTopPoint) as the left-top point of the rectangle that represents the current concept |
void |
setOutcomeEdges(java.util.ArrayList edges)
|
boolean |
setOutcomeRelations(java.util.ArrayList relations)
Set the specified ArrayList as the value for the attribute outcomeRelations of the current concept. |
void |
setParameter(java.lang.String parameter)
If the current concept is a parameter, this method will set its parameter attribute; a String of the form inNBR or outNBR. |
void |
setRectangle(java.awt.Rectangle rectangle)
|
boolean |
setState(byte state)
Set the specified state as the state of the current concept if it can be a concept state. |
boolean |
setType(java.lang.Object type)
Set a type to the current concept. |
boolean |
subsume(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Check that the current object subsumes (is more general than) the specified object obj. |
boolean |
subsume(java.lang.Object obj)
Check that the current object subsumes (is more general than) the specified object obj. |
java.lang.Object |
subsumeWithResult(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Check that the current object subsumes (is more general than) the specified object obj. |
java.lang.Object |
subsumeWithResult(java.lang.Object obj)
Check that the current object subsumes (is more general than) the specified object obj. |
CG |
toCG()
|
java.lang.String |
toCGIF(BindingContext bindContext,
java.lang.Object bindInf,
Lexicon lexicon)
This method returns the CGIF form of the current concept. |
java.lang.String |
toCGIF(Lexicon lexicon)
This method is similar to toLF() excepts that it returns the textualization of the current concept in a CGIF form. |
java.lang.String |
toDisplayString(Lexicon lexicon)
|
java.lang.String |
toLF(BindingContext bindContext,
java.lang.Object bindInf,
Lexicon lexicon)
This method returns the LF of the current concept. |
java.lang.String |
toLF(Lexicon lexicon)
Give the textual formulation, in LF, for the current concept. |
java.lang.String |
toString(BindingContext bindContext,
java.lang.Object bindInf,
Lexicon lexicon)
By default, the textualization of a concept will be in Linear Form. |
java.lang.String |
toString(Lexicon lexicon)
By default, the textualization of a concept will be in Linear Form. |
void |
trimToSize()
Optimize the storage of a concept |
boolean |
unify(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Unify the current object with the specified object obj. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Concept(java.lang.Object type, java.lang.Object designator, Variable coreferent, java.lang.Object descriptor, java.awt.Point leftTopPoint) throws ConceptException
type
- The type of the concept. It should not be null.designator
- The designator of the concept. It can be null.coreferent
- The coreferent of the concept. It can be null.descriptor
- The descriptor of the concept. It can be null.leftTopPoint
- The left top point of the position of the concept.
It can be null and it is used for graphic treatement only.
Throws
- ConceptException if one of the concept components is not valid
ConceptException
public Concept(java.lang.Object type) throws ConceptException
:
- throws ConceptException if type is null
ConceptException
public Concept(java.lang.Object type, java.lang.Object designator) throws ConceptException
:
- throws ConceptException if type is null
ConceptException
public Concept(java.lang.Object type, java.lang.Object designator, java.lang.Object descriptor) throws ConceptException
:
- throws ConceptException if type is null
ConceptException
public Concept(java.lang.Object type, java.lang.Object designator, Variable coreferent, java.lang.Object descriptor) throws ConceptException
:
- throws ConceptException if type is null
ConceptException
Method Detail |
public void finalize()
finalize
in interface AmineObject
public void clear()
clear
in interface AmineObject
public static boolean isConcept(java.lang.Object obj)
obj
- An object
public java.lang.Object clone()
clone
in interface AmineObject
public java.lang.Object clone(BindingContext bindContext, java.lang.Object bindInf)
clone
in interface AmineObject
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and the current concept
public Concept copy()
public Node copyNode()
copyNode
in interface Node
public Concept copy(BindingContext bindContext, java.lang.Object bindInf)
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and the current concept
public Concept copy(BindingContext bindContext, java.lang.Object bindInf, CorefMatchList corefMatchL, int indx)
public java.lang.Object copyType(BindingContext bindContext, java.lang.Object bindInf)
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and the current concept
public static java.lang.Object copyType(BindingContext bindContext, java.lang.Object type, java.lang.Object bindInf)
bindContext
- The Binding contexttype
- a Concept type which could be a Type CS or a VariablebindInf
- The binding information related to the binding context and the type
public java.lang.Object copyDesignator(BindingContext bindContext, java.lang.Object bindInf)
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and the current concept
public static java.lang.Object copyDesignator(BindingContext bindContext, java.lang.Object designator, java.lang.Object bindInf)
bindContext
- The Binding contextdesignator
- a Concept designatorbindInf
- The binding information related to the binding context and the current concept
public Variable copyCoreferent()
public Variable copyCoreferent(CorefMatchList corefMatchL, int indx)
public java.lang.Object copyDescriptor(BindingContext bindContext, java.lang.Object bindInf)
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and the current concept
public java.lang.Object copyDescriptor(BindingContext bindContext, java.lang.Object bindInf, CorefMatchList corefMatchL, int indx)
public java.awt.Point copyPoint()
public static boolean canBeType(java.lang.Object type)
type
- An Object
public static boolean canBeDesignator(java.lang.Object designator, java.lang.Object type)
designator
- An Object that could be a concept designatortype
- An object that should be a concept type
public static boolean canBeDesignator(java.lang.Object designator)
designator
- : an Object
public static boolean isConform(BindingContext bindContext, java.lang.Object designator, java.lang.Object bindInfDsgn, java.lang.Object type, java.lang.Object bindInfType)
bindContext
- The Binding contextdesignator
- a Concept designatorbindInfDsgn
- The binding information related to the binding context and to designatortype
- An Object that could be a Variable or a Type CS.bindInfType
- The binding information related to the binding context and to type
public static boolean isDesignatorSuper(java.lang.Object designator)
designator
- An Object
public static boolean isDesignatorThis(java.lang.Object designator)
designator
- An Object
public static boolean isDesignatorSource(java.lang.Object designator)
designator
- An Object
public static boolean isDesignatorTarget(java.lang.Object designator)
designator
- An Object
public static boolean isPseudoDesignator(java.lang.Object designator)
designator
- An Object
public boolean isConnected()
public boolean isContext()
public CG isContext(BindingContext bindContext, java.lang.Object bindInf)
bindContext
- The binding context for the current conceptbindInf
- The binding informatin for the current concept
public boolean hasContentToDisplay()
hasContentToDisplay
in interface Node
public java.lang.Object getType()
public boolean setType(java.lang.Object type)
public java.lang.Object getDesignator()
public boolean setDesignator(java.lang.Object designator)
designator
- An object
public static boolean isCoreferent(java.lang.Object x)
public boolean isParameter()
public java.lang.String getParameter()
public void setParameter(java.lang.String parameter)
public Variable getCoreferent()
public void setCoreferent(Variable coreferent)
coreferent
- A variablepublic boolean hasDefinitionalCoreferent()
public boolean hasBoundCoreferent()
public java.lang.Object getDescriptor()
public void setDescriptor(java.lang.Object descriptor)
descriptor
- An objectpublic byte getState()
public boolean setState(byte state)
state
- A byte that could represent the state of the current conceptpublic static boolean canBeState(byte s)
s
- A byte that could represent a possible concept state
public java.awt.Point getLeftTopPoint()
getLeftTopPoint
in interface Node
public void setLeftTopPoint(java.awt.Point leftTopPoint)
setLeftTopPoint
in interface Node
leftTopPoint
- A point that represents the left-top position of the
rectangle that represents the current conceptpublic void setRectangle(java.awt.Rectangle rectangle)
setRectangle
in interface Node
public java.util.Enumeration getIncomeRelations()
public java.util.Enumeration getIncomeEdges()
getIncomeEdges
in interface Node
public java.lang.Object[] getArrayIncomeRelations()
public boolean setIncomeRelations(java.util.ArrayList relations)
relations
- An ArrayList of Relation. This parameter can be null.
public void setIncomeEdges(java.util.ArrayList edges)
setIncomeEdges
in interface Node
public boolean isIncomeRelation(Relation relation)
relation
- A Relation
public boolean isIncomeRelation(java.lang.Object relType)
relType
- A relation Type
public boolean isIncomeRelation(java.lang.Object relType, java.lang.String suffix)
relType
- A relation Typesuffix
- A String that represents the suffix of the relation
public boolean isIncomeRelation(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object relType, java.lang.Object bindInfType)
bindContext
- The Binding ContextbindInf
- The Binding information associated to the current conceptrelType
- The relation typebindInfType
- The Binding information associated to relType
public boolean addIncomeRelation(Relation relation)
relation
- A Relation to add as new income relation for the current concept
public void addIncomeEdge(Edge edge)
addIncomeEdge
in interface Node
public boolean removeIncomeRelation(Relation relation)
relation
- A Relation
public void clearIncomeRelations()
public void removeIncomeRelations()
public java.util.Enumeration getOutcomeRelations()
public java.util.Enumeration getOutcomeEdges()
getOutcomeEdges
in interface Node
public java.lang.Object[] getArrayOutcomeRelations()
public boolean setOutcomeRelations(java.util.ArrayList relations)
relations
- An ArrayList of Relation. This parameter can be null.
public void setOutcomeEdges(java.util.ArrayList edges)
setOutcomeEdges
in interface Node
public boolean isOutcomeRelation(Relation relation)
relation
- A Relation
public boolean isOutcomeRelation(java.lang.Object relType)
relType
- A relation Type
public boolean isOutcomeRelation(java.lang.Object relType, java.lang.String suffix)
relType
- A relation Typesuffix
- A String that represents the suffix of the relation
public boolean isOutcomeRelation(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object relType, java.lang.Object bindInfType)
bindContext
- The Binding ContextbindInf
- The Binding information associated to the current conceptrelType
- The relation typebindInfType
- The Binding information associated to relType
public boolean addOutcomeRelation(Relation relation)
relation
- A Relation to add as new outcome relation for the current concept
public void addOutcomeEdge(Edge edge)
addOutcomeEdge
in interface Node
public boolean removeOutcomeRelation(Relation relation)
public void clearOutcomeRelations()
public void removeOutcomeRelations()
public java.util.Enumeration getEdges()
getEdges
in interface Node
public java.util.Enumeration getRelations()
public java.util.ArrayList getAdjacentNodes()
getAdjacentNodes
in interface Node
public int getNbrIncomeRels()
public int getNbrOutcomeRels()
public int getNbrRelations()
public void trimToSize()
public CG toCG()
public java.lang.String toLF(Lexicon lexicon) throws ToStringException
lexicon
- The lexicon to use during the textual formulation of the current concept
ToStringException
- if an error occurs during the textualizationpublic java.lang.String toLF(BindingContext bindContext, java.lang.Object bindInf, Lexicon lexicon) throws ToStringException
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and the current conceptlexicon
- The lexicon in use during the textual formulation of the current concept
ToStringException
- if an error occurs during the textualizationpublic java.lang.String toString(Lexicon lexicon) throws ToStringException
toString
in interface ToString
lexicon
- The lexicon to use during the textual formulation of the current concept
ToStringException
- if an error occurs during the textualizationpublic java.lang.String toString(BindingContext bindContext, java.lang.Object bindInf, Lexicon lexicon) throws ToStringException
toString
in interface AmineObject
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and the current conceptlexicon
- The lexicon to use during the textual formulation of the current concept
ToStringException
- if an error occurs during the textualizationpublic java.lang.String toDisplayString(Lexicon lexicon) throws ToStringException
toDisplayString
in interface Node
ToStringException
public java.lang.String toCGIF(Lexicon lexicon) throws ToStringException
lexicon
- The lexicon to use during the textual formulation of the current concept
ToStringException
- if an error occurs during the textualizationpublic java.lang.String toCGIF(BindingContext bindContext, java.lang.Object bindInf, Lexicon lexicon) throws ToStringException
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and the current conceptlexicon
- The lexicon in use during the textual formulation of the current concept
ToStringException
- if an error occurs during the textualizationpublic static Concept parse(java.lang.String strgConc, Lexicon lexicon) throws ParsingException
strgConc
- The textual formulation of a conceptlexicon
- The lexicon to use during the parsing
java.lang.Exception
- if problems occur during the parsing
ParsingException
public void getVariables(java.util.ArrayList varsIdent)
getVariables
in interface AmineObject
varsIdent
- : an ArrayList of Variable objectspublic boolean eqType(BindingContext bindContext, java.lang.Object bindInfType1, java.lang.Object type2, java.lang.Object bindInfType2)
bindContext
- The Binding contextbindInfType1
- The binding information related to the binding context and to
the current concept typetype2
- The object to test the equality with the current concept typebindInfType2
- The binding information related to the binding context and to type2
public boolean eqDesignator(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object designator2, java.lang.Object bindInfDsgn)
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and to
the current concept designatordesignator2
- The object to test the equality with the current concept designatorbindInfDsgn
- The binding information related to the binding context and to designator2
public java.lang.Object match(byte matchOperation, java.lang.Object obj)
match
in interface Matching
matchOperation
- A byte value that specifies which kind of matching to applyobj
- The object to match with the current object
public java.lang.Object match(byte matchOperation, BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
match
in interface Matching
matchOperation
- A byte value that specifies which kind of matching to applybindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to match with the current objectbindInfObj
- The binding information for the parameter obj
public java.lang.Object match(byte matchOperation, BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj, CGOperations cgOperations)
matchOperation
- A byte value that specifies which kind of matching to applybindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to match with the current objectbindInfObj
- The binding information for the parameter obj
void analogDesignator(BindingContext bindContext, java.lang.Object bindInf, Concept conc2, java.lang.Object bindInf2, CGOperations cgOperations)
boolean matchTypeDesignator(byte matchOperation, BindingContext bindContext, java.lang.Object bindInf1, Concept conc2, java.lang.Object bindInf2, Concept conc3)
boolean matchType(byte matchOperation, BindingContext bindContext, java.lang.Object bindInf, java.lang.Object type2, java.lang.Object bindInf2, Concept conc3)
boolean matchDesignator(byte matchOperation, BindingContext bindContext, java.lang.Object bindInf1, java.lang.Object dsgntr2, java.lang.Object bindInf2, Concept conc3)
boolean matchCoref(byte matchOperation, Concept conc2, Concept conc3, CGOperations cgOperations)
boolean matchDescriptor(byte matchOperation, BindingContext bindContext, java.lang.Object bindInf1, java.lang.Object descr2, java.lang.Object bindInfDescr2, Concept conc3, CGOperations cgOperations)
public boolean equal(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
equal
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to check the equality with the current objectbindInfObj
- The binding information for the parameter obj
public boolean equal(java.lang.Object obj)
equal
in interface Matching
obj
- The object to check the equality with the current object
public boolean unify(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
unify
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to unify with the current objectbindInfObj
- The binding information for the parameter obj
public boolean subsume(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
subsume
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to check its subsumption by the current objectbindInfObj
- The binding information for the parameter obj
public boolean subsume(java.lang.Object obj)
subsume
in interface Matching
obj
- The object to check its subsumption by the current object
public java.lang.Object subsumeWithResult(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
subsumeWithResult
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to check its subsumption by the current objectbindInfObj
- The binding information for the parameter obj
public java.lang.Object subsumeWithResult(java.lang.Object obj)
subsumeWithResult
in interface Matching
obj
- The object to check its subsumption by the current object
public java.lang.Object maximalJoin(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
maximalJoin
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to join with the current objectbindInfObj
- The binding information for the parameter obj
public java.lang.Object maximalJoin(java.lang.Object obj)
maximalJoin
in interface Matching
obj
- The object to join with the current object
public java.lang.Object generalize(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
generalize
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to generalize with the current objectbindInfObj
- The binding information for the parameter obj
public java.lang.Object generalize(java.lang.Object obj)
generalize
in interface Matching
obj
- The object to generalize with the current object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |