public final class AccessConstraintHelper extends Object
Modifier and Type | Method and Description |
---|---|
static IServiceProvider |
getConstrainedLinkEnd(ILinkConstraint constraint)
Gets the object at the end of the link to which a specified constraint is applied.
|
static VectorDisplacement |
getDisplacementVectorForLinkConstraint(ILinkConstraint constraint)
Gets the displacement vector for a given link constraint and time observer.
|
public static IServiceProvider getConstrainedLinkEnd(@Nonnull ILinkConstraint constraint)
constraint
- The constraint.ArgumentNullException
- Thrown when constraint
is null
.ServiceNotAvailableException
- Thrown when the ConstrainedLink
(get
/ set
) property of constraint
does not provide ILinkService
.@Nonnull public static VectorDisplacement getDisplacementVectorForLinkConstraint(@Nonnull ILinkConstraint constraint)
constraint
- The link constraint for which to obtain the displacement vector.ArgumentNullException
- Thrown when constraint
is null
.ServiceNotAvailableException
- Thrown when the ConstrainedLink
(get
/ set
) property of constraint
does not provide ILinkService
.