Package cz.vutbr.fit.layout.model
Interface Relation
-
- All Known Implementing Classes:
DefaultRelation
public interface RelationA basic relation interface.- Author:
- burgetr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RelationgetInverse()The inverse relation to the given relation (if applicable).StringgetName()Gets the name of the relation.booleanisSymmetric()Is this relation symmetric?
-
-
-
Method Detail
-
getName
String getName()
Gets the name of the relation.- Returns:
- the relation name
-
isSymmetric
boolean isSymmetric()
Is this relation symmetric? i.e. xRy => yRx- Returns:
- true when the relation is symmetric
-
getInverse
Relation getInverse()
The inverse relation to the given relation (if applicable).- Returns:
- the inverse relation or
null
-
-