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 RelationgetInverse()The inverse relation to the given relation (if applicable).StringgetName()Gets the name of the relation.booleanisSymmetric()Is this relation symmetric?RelationsetInverse(Relation inverse)voidsetName(String name)RelationsetSymmetric(boolean symmetric)
-
-
-
Constructor Detail
-
DefaultRelation
public DefaultRelation(String name)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:RelationGets the name of the relation.
-
setName
public void setName(String name)
-
isSymmetric
public boolean isSymmetric()
Description copied from interface:RelationIs this relation symmetric? i.e. xRy => yRx- Specified by:
isSymmetricin interfaceRelation- Returns:
- true when the relation is symmetric
-
getInverse
public Relation getInverse()
Description copied from interface:RelationThe inverse relation to the given relation (if applicable).- Specified by:
getInversein interfaceRelation- Returns:
- the inverse relation or
null
-
setSymmetric
public Relation setSymmetric(boolean symmetric)
-
-