|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dishevelled.vocabulary.simple.SimpleConcept
public class SimpleConcept
Simple implementation of the Concept interface.
Field Summary | |
---|---|
private java.lang.String |
accession
Concept accession. |
private java.util.Set<Assignment> |
assignments
Set of assignments. |
private java.lang.String |
definition
Concept definition. |
private Domain |
domain
Domain. |
private java.util.Set<Projection> |
inProjections
Set of in projections. |
private java.util.Set<Relation> |
inRelations
Set of in relations. |
private java.lang.String |
name
Concept name. |
private java.util.Set<Projection> |
outProjections
Set of out projections. |
private java.util.Set<Relation> |
outRelations
Set of out relations. |
Constructor Summary | |
---|---|
SimpleConcept(Domain domain,
java.lang.String name,
java.lang.String accession,
java.lang.String definition)
Create a new concept with the specified name, accession, and definition in the specified domain. |
Method Summary | |
---|---|
(package private) void |
addAssignment(SimpleAssignment assignment)
Add the specified assignment. |
(package private) void |
addInProjection(SimpleProjection projection)
Add the specified in projection. |
(package private) void |
addInRelation(SimpleRelation relation)
Add the specified in relation. |
(package private) void |
addOutProjection(SimpleProjection projection)
Add the specified out projection. |
(package private) void |
addOutRelation(SimpleRelation relation)
Add the specified out relation. |
int |
degree()
Return the degree of this concept, that is the total number of relations, projections, and assignments linked to this concept. |
java.lang.String |
getAccession()
Return the accession (an unique identifier) of this concept. |
java.util.Set<Assignment> |
getAssignments()
Return the set of assignments for this concept. |
java.lang.String |
getDefinition()
Return the definition of this concept. |
Domain |
getDomain()
Return the domain of this concept. |
java.lang.String |
getName()
Return the name of this concept. |
java.util.Set<Projection> |
getProjections()
Return the set of all projections for this concept. |
java.util.Set<Relation> |
getRelations()
Return the set of all relations for this concept. |
java.util.Set<Projection> |
inProjections()
Return the set of in projections for this concept, that is those projections that have this concept as the target. |
java.util.Set<Relation> |
inRelations()
Return the set of in relations for this concept, that is those relations that have this concept as the target. |
java.util.Set<Projection> |
outProjections()
Return the set of out projections for this concept, that is those projections that have this concept as the source. |
java.util.Set<Relation> |
outRelations()
Return the set of out relations for this concept, that is those relations that have this concept as the source. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.lang.String name
private final java.lang.String accession
private final java.lang.String definition
private final java.util.Set<Relation> inRelations
private final java.util.Set<Relation> outRelations
private final java.util.Set<Projection> inProjections
private final java.util.Set<Projection> outProjections
private final java.util.Set<Assignment> assignments
private final Domain domain
Constructor Detail |
---|
SimpleConcept(Domain domain, java.lang.String name, java.lang.String accession, java.lang.String definition)
domain
and accession
must not be null.
domain
- domainname
- concept nameaccession
- concept accessiondefinition
- concept definitionMethod Detail |
---|
public java.lang.String getName()
Concept
getName
in interface Concept
Concept
public java.lang.String getAccession()
Concept
getAccession
in interface Concept
Concept
public java.lang.String getDefinition()
Concept
getDefinition
in interface Concept
Concept
public int degree()
Concept
degree
in interface Concept
Concept
public java.util.Set<Relation> inRelations()
Concept
inRelations
in interface Concept
Concept
public java.util.Set<Relation> outRelations()
Concept
outRelations
in interface Concept
Concept
public java.util.Set<Relation> getRelations()
Concept
getRelations
in interface Concept
Concept
public java.util.Set<Projection> inProjections()
Concept
inProjections
in interface Concept
Concept
public java.util.Set<Projection> outProjections()
Concept
outProjections
in interface Concept
Concept
public java.util.Set<Projection> getProjections()
Concept
getProjections
in interface Concept
Concept
public java.util.Set<Assignment> getAssignments()
Concept
getAssignments
in interface Concept
Concept
public Domain getDomain()
Concept
getDomain
in interface Concept
Concept
void addInRelation(SimpleRelation relation)
relation
- in relation to addvoid addOutRelation(SimpleRelation relation)
relation
- out relation to addvoid addInProjection(SimpleProjection projection)
projection
- in projection to addvoid addOutProjection(SimpleProjection projection)
projection
- out projection to addvoid addAssignment(SimpleAssignment assignment)
assignment
- assignment to addpublic java.lang.String toString()
toString
in class java.lang.Object
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |