aminePlatform.kernel.ontology
Class RelationType

java.lang.Object
  extended byaminePlatform.kernel.ontology.CS
      extended byaminePlatform.kernel.ontology.Type
          extended byaminePlatform.kernel.ontology.RelationType
All Implemented Interfaces:
Node, java.io.Serializable, ToString

public class RelationType
extends Type
implements java.io.Serializable

Title: kernel.ontology.RelationType Class

Description: RelationType is a specialization of Type, defined for Relation Type

Copyright: Copyright (c) Adil KABBAJ, 2004-2009

See Also:
Serialized Form

Field Summary
 
Fields inherited from class aminePlatform.kernel.ontology.CS
S_CONTEXT, S_CSRULE, S_SITUATION, S_TYPE
 
Constructor Summary
RelationType()
          Create an 'empty' RelationType CS
RelationType(java.lang.Object definition)
          Create a new Relation Type with the specified definition.
RelationType(java.lang.Object definition, java.lang.Object canon)
          Create a new RelationType with the specified definition and canon.
 
Method Summary
 java.util.Enumeration getIndividuals()
          Override this method since a relation type has no individuals
static boolean isGRD(java.lang.Object rel)
          Check if the specified relation rel corresponds to the grd relation of Synergy
static boolean isRelationType(java.lang.Object obj)
          Check if the specified Object obj is a Type CS
protected  org.jdom.Element toCSKind(java.lang.String key)
          For the current relationtype add the element that specifies its kind to the XML ontology document.
 
Methods inherited from class aminePlatform.kernel.ontology.Type
clear, finalize, getArraySubTypes, getArraySuperTypes, getCanon, getComSubTypes, getComSuperTypes, getDefinition, getDirectSubTypes, getDirectSuperTypes, getMaxComSubType, getMinComSuperType, getSubTypes, getSuperTypes, hasCanon, hasDefinition, isConceptType, isSubType, isSuperType, isType, removeCanon, removeDefinition, setCanon, setDefinition, toContent, toString
 
Methods inherited from class aminePlatform.kernel.ontology.CS
addCSRule, addCSRule, addIncomeEdge, addOutcomeEdge, addSituation, canBeRemoved, copyNode, detach, getAdjacentNodes, getArrayOfChildren, getArrayOfFathers, getChildren, getContent, getCSRuleAt, getCSRules, getCSRulesAntecedent, getCSRulesConcequence, getDescription, getEdges, getFathers, getImmSubTypes, getImmSuperTypes2, getIncomeEdges, getLeftTopPoint, getMetaphors, getNbrChildren, getNbrCSRules, getNbrFathers, getNbrSituations, getNumberofEdges, getOutcomeEdges, getSituationAt, getSituations, getSituationsDescription, hasContentToDisplay, isAntecedent, isChild, isConceptType, isContext, isCS, isCSRule, isDescendant, isFather, isIndexedType, isIndividual, isMetaphor, isRelationType, isSituation, isType, link, removeCSRuleAt, removeDescription, removeLink, removeLink, removeLinkToSituation, removeSituationAt, setChildren, setDescription, setFathers, setIncomeEdges, setLeftTopPoint, setOutcomeEdges, setRectangle, toChildren, toDisplayString, toFathers, toLexicon, toXml
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationType

public RelationType()
Create an 'empty' RelationType CS


RelationType

public RelationType(java.lang.Object definition,
                    java.lang.Object canon)
Create a new RelationType with the specified definition and canon.

Parameters:
definition - The definition of the current relation type. It could be null.
canon - The canon of the current relation type. It could be null.

RelationType

public RelationType(java.lang.Object definition)
Create a new Relation Type with the specified definition.

Parameters:
definition - The definition of the current relation type. It could be null.
Method Detail

isRelationType

public static boolean isRelationType(java.lang.Object obj)
Check if the specified Object obj is a Type CS

Parameters:
obj - An object
Returns:
true if obj is a Type CS

isGRD

public static boolean isGRD(java.lang.Object rel)
Check if the specified relation rel corresponds to the grd relation of Synergy

Parameters:
rel - RelationType
Returns:
boolean

getIndividuals

public java.util.Enumeration getIndividuals()
Override this method since a relation type has no individuals

Overrides:
getIndividuals in class Type
Returns:
null

toCSKind

protected org.jdom.Element toCSKind(java.lang.String key)
For the current relationtype add the element that specifies its kind to the XML ontology document.

Overrides:
toCSKind in class Type
Returns:
content.