Package cz.vutbr.fit.layout.impl
Class DefaultRelation
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.DefaultRelation
-
-
Constructor Summary
Constructors Constructor Description DefaultRelation(String name)
-
Method Summary
All Methods Instance Methods Concrete 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?Relation
setInverse(Relation inverse)
void
setName(String name)
Relation
setSymmetric(boolean symmetric)
-
-
-
Constructor Detail
-
DefaultRelation
public DefaultRelation(String name)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Relation
Gets the name of the relation.
-
setName
public void setName(String name)
-
isSymmetric
public boolean isSymmetric()
Description copied from interface:Relation
Is this relation symmetric? i.e. xRy => yRx- Specified by:
isSymmetric
in interfaceRelation
- Returns:
- true when the relation is symmetric
-
getInverse
public Relation getInverse()
Description copied from interface:Relation
The inverse relation to the given relation (if applicable).- Specified by:
getInverse
in interfaceRelation
- Returns:
- the inverse relation or
null
-
setSymmetric
public Relation setSymmetric(boolean symmetric)
-
-