java.lang.Object
com.dassault_systemes.modeler.sysml.model.Actors

@OpenApiAll public class Actors extends Object
Utility methods for identifying actor parameters and actor memberships on requirements, cases, and related types. Actors are represented as PartUsage elements owned through ActorMembership.
  • Constructor Details

    • Actors

      public Actors()
  • Method Details

    • isActor

      public static boolean isActor(Feature feature)
      Returns whether the given feature represents an actor. A feature is considered an actor when it is a PartUsage whose owning membership is an ActorMembership.
      Parameters:
      feature - the feature to test
      Returns:
      true if the feature is an actor
    • isActor

      public static boolean isActor(@CheckForNull FeatureMembership membership)
      Returns whether the given membership is an ActorMembership.
      Parameters:
      membership - the membership to test
      Returns:
      true if the membership represents an actor
    • getActorParameter

      public static List<PartUsage> getActorParameter(Type type)
      Returns the actor parameters of the given type. Actor parameters may be defined on requirements and cases, both usage and definition forms.
      Parameters:
      type - the type whose actor parameters are requested
      Returns:
      a list of actor parameters, or an empty list if none exist
    • getOwnedActorParameter

      public static List<PartUsage> getOwnedActorParameter(Type type)
      Returns the actor parameters owned directly by the given type. Only requirement and case types expose actor parameters through owned feature memberships.
      Parameters:
      type - the type whose owned actor parameters are requested
      Returns:
      a list of owned actor parameters, or an empty list if none exist