Class Actors
java.lang.Object
com.dassault_systemes.modeler.sysml.model.Actors
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActorParameter(Type type) Returns the actor parameters of the given type.getOwnedActorParameter(Type type) Returns the actor parameters owned directly by the given type.static booleanReturns whether the given feature represents an actor.static booleanisActor(FeatureMembership membership) Returns whether the given membership is anActorMembership.
-
Constructor Details
-
Actors
public Actors()
-
-
Method Details
-
isActor
Returns whether the given feature represents an actor. A feature is considered an actor when it is aPartUsagewhose owning membership is anActorMembership.- Parameters:
feature- the feature to test- Returns:
trueif the feature is an actor
-
isActor
Returns whether the given membership is anActorMembership.- Parameters:
membership- the membership to test- Returns:
trueif the membership represents an actor
-
getActorParameter
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
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
-