Class MM2RelationConstraintHelper
java.lang.Object
de.mid.innovator.srv2api.icw2meta.MM2RelationConstraintHelper
This is a utility class for MM2RelationConstraint that provides static methods for creation or other purposes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ARG_PossiblePathsgetPossiblePaths(SrvContext srvCtx, MMStereotype ohStart, MMStereotype ohEnd, int maxHop, List<Class<? extends ELObject>> seqType) Calculates all possible paths between the given start and endMMStereotype.
-
Method Details
-
getPossiblePaths
public static ARG_PossiblePaths getPossiblePaths(SrvContext srvCtx, MMStereotype ohStart, MMStereotype ohEnd, int maxHop, List<Class<? extends ELObject>> seqType) throws InoNetException, SrvErrorException Calculates all possible paths between the given start and endMMStereotype. An element may be given, to calculate the valid profiles, otherwise all profiles within theADModelare used. The maximum number of steps is used to restrict the length of each calculated path. Each step contains one relationship and one elementMMStereotype. The evaluated element types may be restricted by a list of valid element types. The element types are not restricted, if the list of valid element types is empty.- Parameters:
srvCtx- The context of the related innovator server.ohStart- stereotype, where the path startsohEnd- stereotype, where the path endsmaxHop- maximum number of steps in a pathseqType- list to restrict the element types in a path- Throws:
InoNetExceptionSrvErrorException
-