| 
 | ||||||||||
| 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 | accessionConcept accession. | 
| private  java.util.Set<Assignment> | assignmentsSet of assignments. | 
| private  java.lang.String | definitionConcept definition. | 
| private  Domain | domainDomain. | 
| private  java.util.Set<Projection> | inProjectionsSet of in projections. | 
| private  java.util.Set<Relation> | inRelationsSet of in relations. | 
| private  java.lang.String | nameConcept name. | 
| private  java.util.Set<Projection> | outProjectionsSet of out projections. | 
| private  java.util.Set<Relation> | outRelationsSet 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 definition| Method Detail | 
|---|
public java.lang.String getName()
Concept
getName in interface ConceptConceptpublic java.lang.String getAccession()
Concept
getAccession in interface ConceptConceptpublic java.lang.String getDefinition()
Concept
getDefinition in interface ConceptConceptpublic int degree()
Concept
degree in interface ConceptConceptpublic java.util.Set<Relation> inRelations()
Concept
inRelations in interface ConceptConceptpublic java.util.Set<Relation> outRelations()
Concept
outRelations in interface ConceptConceptpublic java.util.Set<Relation> getRelations()
Concept
getRelations in interface ConceptConceptpublic java.util.Set<Projection> inProjections()
Concept
inProjections in interface ConceptConceptpublic java.util.Set<Projection> outProjections()
Concept
outProjections in interface ConceptConceptpublic java.util.Set<Projection> getProjections()
Concept
getProjections in interface ConceptConceptpublic java.util.Set<Assignment> getAssignments()
Concept
getAssignments in interface ConceptConceptpublic Domain getDomain()
Concept
getDomain in interface ConceptConceptvoid 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.ObjectObject| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||