|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.client.common.DTSObject com.apelon.dts.client.attribute.PropertiedObject com.apelon.dts.client.concept.DTSConcept com.apelon.dts.client.concept.OntylogConcept
public class OntylogConcept
An Ontylog concept extends a DTS concept by adding Ontylog hierarchy and role
information. In addition to the normal inferred view that DTS presents, an
Ontylog concept may also have a defined view consisting of a
primitive/defined flag, a Kind
, and defining (super)concepts and
roles. The inferred view is what the TDE classifier infers from the
collection of concept definitions in an Ontylog Namespace
, or
the DTS modular classifier determines from an Ontylog Namespace
combined with an Ontylog Extension Namespace
.
Copyright: Copyright (c) 2007
Company: Apelon, Inc.
Constructor Summary | |
---|---|
OntylogConcept(String name,
int id,
String code,
int namespaceId)
Constructs a basic Ontylog concept object and initializes it in a particular namespace. |
Method Summary | |
---|---|
boolean |
addDefiningConcept(OntylogConcept definingConcept)
Adds the specified element as a defining concept for this concept. |
boolean |
addDefiningRole(DTSRole definingRole)
Adds the specified element as a defining role for this concept. |
boolean |
addInverseRole(DTSRole invRole)
Adds the specified element as inverse role for this concept. |
boolean |
addRole(DTSRole role)
Adds the specified element as role for this concept. |
boolean |
containsDefiningConcept(OntylogConcept definingConcept)
Tests if this concept already has the specified defining concept. |
boolean |
containsDefiningRole(DTSRole definingRole)
Tests if this concept already has the specified defining role. |
boolean |
containsInverseRole(DTSRole invRole)
Tests if this concept already has the specified inverse role. |
boolean |
containsRole(DTSRole role)
Tests if this concept already has the specified role. |
boolean |
deleteDefiningConcept(OntylogConcept definingConcept)
Deletes the specified element as a defining concept for this concept. |
boolean |
deleteDefiningRole(DTSRole definingRole)
Deletes the specified element as a defining role for this concept. |
boolean |
deleteInverseRole(DTSRole invRole)
Deletes the specified element as inverse role for this concept. |
boolean |
deleteRole(DTSRole role)
Deletes the specified element as role for this concept. |
RoleGroup[] |
getDefiningRoleGroups()
This is a convenience that returns the role groups containing the defining roles for this concept, if the defined view attributes (which include the defining roles) have been retrieved. |
OntylogConcept[] |
getFetchedDefiningConcepts()
If the defined view attributes have been retrieved, gets the defining concepts of this concept. |
DTSRole[] |
getFetchedDefiningRoles()
If the defined view attributes have been retrieved, gets the defining roles of this concept. |
boolean |
getFetchedHasSubs()
Tests if the concept has subconcepts. |
boolean |
getFetchedHasSups()
Tests if the concept has superconcepts. |
DTSRole[] |
getFetchedInverseRoles()
Gets the inverse roles which have been retrieved for this concept, that is, the roles of other concepts which have this concept as a value. |
Kind |
getFetchedKind()
Gets the Kind of this concept if the defined view attributes
have been retrieved. |
boolean |
getFetchedPrimitive()
If the defined view attributes have been retrieved, indicates if this Ontylog concept is primitive or defined. |
DTSRole[] |
getFetchedRoles()
Gets the (inferred) roles which have been retrieved for this concept. |
OntylogConcept[] |
getFetchedSubconcepts()
Gets the direct subconcepts which have been retrieved for this concept. |
OntylogConcept[] |
getFetchedSuperconcepts()
Gets the direct superconcepts which have been retrieved for this concept. |
int |
getNumberOfSpecifiedInverseRoles()
Get the number of inverse roles that are available of the types specified in the ConceptAttributeSetDescriptor used to obtain this
OntylogConcept . |
int |
getNumberOfSpecifiedRoles()
Get the number of roles that are available of the types specified in the ConceptAttributeSetDescriptor used to obtain this
OntylogConcept . |
RoleGroup[] |
getRoleGroups()
This is a convenience method that returns the role groups containing the roles for this concept, if the roles have been retrieved for this concept. |
void |
setFetchedHasSubs(boolean fetchedHasSubs)
Sets indicator of whether the concept has subconcepts. |
void |
setFetchedHasSups(boolean fetchedHasSups)
Sets indicator of whether the concept has superconcepts. |
void |
setFetchedKind(Kind kind)
Sets the Kind of this concept. |
void |
setFetchedPrimitive(boolean primitive)
Sets whether this Ontylog concept is to be primitive or defined. |
void |
setFetchedSubconcepts(OntylogConcept[] subconcepts)
Sets the direct subconcepts for this concept. |
void |
setFetchedSuperconcepts(OntylogConcept[] superconcepts)
Sets the direct superconcepts for this concept. |
void |
setNumberOfSpecifiedInverseRoles(int count)
Get the number of inverse roles that are available of the types specified in the ConceptAttributeSetDescriptor used to obtain this
OntylogConcept . |
void |
setNumberOfSpecifiedRoles(int count)
Set the number of roles that are available of the types specified in the ConceptAttributeSetDescriptor used to obtain this
OntylogConcept . |
Methods inherited from class com.apelon.dts.client.attribute.PropertiedObject |
---|
addProperty, containsProperty, deleteProperty, getFetchedProperties, getNumberOfSpecifiedProperties, getProperties, setProperties |
Methods inherited from class com.apelon.dts.client.common.DTSObject |
---|
getCode, getId, getName, getNamespaceId, hashCode, setCode, setId, setName, setNamespaceId, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OntylogConcept(String name, int id, String code, int namespaceId)
name
- the name of the conceptid
- the ID of the conceptcode
- the code of the conceptnamespaceId
- the namespace ID of the conceptMethod Detail |
---|
public OntylogConcept[] getFetchedSuperconcepts()
public void setFetchedSuperconcepts(OntylogConcept[] superconcepts)
superconcepts
- the direct superconceptspublic OntylogConcept[] getFetchedSubconcepts()
public void setFetchedSubconcepts(OntylogConcept[] subconcepts)
subconcepts
- the direct subconceptspublic DTSRole[] getFetchedRoles()
public RoleGroup[] getRoleGroups()
public int getNumberOfSpecifiedRoles()
ConceptAttributeSetDescriptor
used to obtain this
OntylogConcept
.
public void setNumberOfSpecifiedRoles(int count)
ConceptAttributeSetDescriptor
used to obtain this
OntylogConcept
.
public DTSRole[] getFetchedInverseRoles()
public int getNumberOfSpecifiedInverseRoles()
ConceptAttributeSetDescriptor
used to obtain this
OntylogConcept
.
public void setNumberOfSpecifiedInverseRoles(int count)
ConceptAttributeSetDescriptor
used to obtain this
OntylogConcept
.
public boolean getFetchedHasSubs()
true
.
Otherwise, return false
.public void setFetchedHasSubs(boolean fetchedHasSubs)
fetchedHasSubs
- true
if the concept has subconcepts;
false
otherwise.public boolean getFetchedHasSups()
true
.
Otherwise, return false
.public void setFetchedHasSups(boolean fetchedHasSups)
fetchedHasSups
- true
if the concept has superconcepts;
false
otherwise.public boolean addRole(DTSRole role)
role
- DTSRole to add
false
if the concept already had the role;
true
if the role was addedpublic boolean containsRole(DTSRole role)
role
- the DTSRole
to test
true
if this concept contains the
role argument; otherwise false
public boolean deleteRole(DTSRole role)
role
- DTSRole to delete
true
if removed successfully; otherwise
false
public boolean addInverseRole(DTSRole invRole)
invRole
- inverse DTSRole to add
false
if the concept already had the inverse role;
true
if the inverse role was addedpublic boolean containsInverseRole(DTSRole invRole)
invRole
- the inverse DTSRole
to test
true
if this concept contains the inverse concept
association argument; otherwise false
public boolean deleteInverseRole(DTSRole invRole)
invRole
- inverse DTSRole to delete
true
if removed successfully; otherwise
false
public boolean getFetchedPrimitive()
true
if this concept is primitive;
false
if it is defined.public void setFetchedPrimitive(boolean primitive)
primitive
- set to true
to make this concept
primitive, false
to make it
defined.public Kind getFetchedKind()
Kind
of this concept if the defined view attributes
have been retrieved.
Kind
of this concept.public void setFetchedKind(Kind kind)
Kind
of this concept. The Kind
determines what roles this concept is allowed to have.
kind
- the Kind
of this concept.public OntylogConcept[] getFetchedDefiningConcepts()
public boolean addDefiningConcept(OntylogConcept definingConcept)
definingConcept
- defining concept to add
false
if the concept already had the defining role;
true
if the role was added.public boolean containsDefiningConcept(OntylogConcept definingConcept)
definingConcept
- defining concept to test
true
if this concept contains the defining
concept argument; otherwise false
.public boolean deleteDefiningConcept(OntylogConcept definingConcept)
definingConcept
- defining concept to delete
true
if removed successfully; otherwise
false
.public DTSRole[] getFetchedDefiningRoles()
public RoleGroup[] getDefiningRoleGroups()
public boolean addDefiningRole(DTSRole definingRole)
definingRole
- defining DTSRole
to add
false
if the concept already had the defining role;
true
if the role was added.public boolean containsDefiningRole(DTSRole definingRole)
definingRole
- defining DTSRole
to test
true
if this concept contains the defining
role argument; otherwise false
.public boolean deleteDefiningRole(DTSRole definingRole)
definingRole
- defining DTSRole
to delete
true
if removed successfully; otherwise
false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |