Package cz.vutbr.fit.layout.model
Interface Relation
-
- All Known Implementing Classes:
DefaultRelation
public interface Relation
A basic relation interface.- Author:
- burgetr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Relation
getInverse()
The inverse relation to the given relation (if applicable).String
getName()
Gets the name of the relation.boolean
isSymmetric()
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
-
-