Package com.solibri.smc.api.model
Interface Relation
public interface Relation
Represents a relation between components.
- Since:
- 9.10.2
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Relation.Direction
Specifies the direction of a relation.static class
Relation.Type
Represents the types of supported relations. -
Method Summary
Modifier and Type Method Description Relation.Direction
getDirection()
Returns the direction of this relation.Relation.Type
getType()
Returns the type of this relation.static Relation
of(Relation.Type type, Relation.Direction direction)
Returns a relation with the given type and direction.
-
Method Details
-
of
Returns a relation with the given type and direction.- Parameters:
type
- the type of the relationdirection
- the direction of the relation- Returns:
- a relation with the given type and direction
-
getType
Relation.Type getType()Returns the type of this relation.- Returns:
- the type of this relation
- Since:
- 9.10.2
-
getDirection
Relation.Direction getDirection()Returns the direction of this relation.- Returns:
- the direction of this relation
- Since:
- 9.10.2
-