Class MM2RelationConstraintHelper

java.lang.Object
de.mid.innovator.srv2api.icw2meta.MM2RelationConstraintHelper

public abstract class MM2RelationConstraintHelper extends Object
This is a utility class for MM2RelationConstraint that provides static methods for creation or other purposes.
See Also:
  • 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 end MMStereotype. An element may be given, to calculate the valid profiles, otherwise all profiles within the ADModel are used. The maximum number of steps is used to restrict the length of each calculated path. Each step contains one relationship and one element MMStereotype. 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 starts
      ohEnd - stereotype, where the path ends
      maxHop - maximum number of steps in a path
      seqType - list to restrict the element types in a path
      Throws:
      InoNetException
      SrvErrorException