|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.vocabulary.simple.SimpleRelation
public class SimpleRelation
Simple implementation of the Relation interface.
| Field Summary | |
|---|---|
private Domain |
domain
Domain. |
private java.lang.String |
name
Relation name. |
private SimpleConcept |
source
Source concept. |
private SimpleConcept |
target
Target concept. |
| Constructor Summary | |
|---|---|
SimpleRelation(Domain domain,
java.lang.String name,
SimpleConcept source,
SimpleConcept target)
Create a new relation in the specified domain between concepts source and
target with the specified name. |
|
| Method Summary | |
|---|---|
Domain |
getDomain()
Return the domain of this relation. |
java.lang.String |
getName()
Return the name of this relation. |
Concept |
getSource()
Return the source concept of this relation. |
Concept |
getTarget()
Return the target concept of this relation. |
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 SimpleConcept source
private final SimpleConcept target
private final Domain domain
| Constructor Detail |
|---|
SimpleRelation(Domain domain,
java.lang.String name,
SimpleConcept source,
SimpleConcept target)
source and
target with the specified name. All of
domain, source, and target
must not be null.
domain - domainname - relation namesource - source concepttarget - target concept| Method Detail |
|---|
public java.lang.String getName()
Relation
getName in interface RelationRelationpublic Concept getSource()
Relation
getSource in interface RelationRelationpublic Concept getTarget()
Relation
getTarget in interface RelationRelationpublic Domain getDomain()
Relation
getDomain in interface RelationRelationpublic 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 | |||||||||