Class Requirements
java.lang.Object
com.dassault_systemes.modeler.sysml.model.Requirements
Utility class to work with
RequirementUsage or RequirementDefinition-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RequirementUsageReturns the actual requirement usage represented by the given constraint usage.static List<ConstraintUsage> getAssumedConstraint(Type type) Returns all assumed constraints of the given type.static List<ConcernUsage> getFramedConcern(Type type) Returns all framed concerns of the given type.static List<ConstraintUsage> Returns the assumed constraints owned directly by the type.static List<ConcernUsage> getOwnedFramedConcern(Type type) Returns the framed concerns owned directly by the type.static List<ConstraintUsage> Returns the required constraints owned directly by the type.Returns the stakeholder parameters owned directly by the type.static StringReturns the requirement ID of the given type, if any.static List<ConstraintUsage> getRequiredConstraint(Type type) Returns all required constraints of the given type.getStakeholderParameter(Type type) Returns the stakeholder parameters of the given type.static booleanisAssumedConstraint(FeatureMembership membership) Checks whether the membership represents an assumed requirement constraint.static booleanisFramedConcern(Feature feature) Checks whether the feature is a framed concern.static booleanisFramedConcern(FeatureMembership membership) Checks whether the membership represents a framed concern membership.static booleanisOwningTypeRequirementUsageOrDefinition(RequirementUsage requirementUsage) Checks whether the owning type of the requirement usage is itself a requirement usage or definition.static booleanisRequiredConstraint(FeatureMembership membership) Checks whether the membership represents a required requirement constraint.static booleanisRequirementParameter(Feature feature) Checks whether the feature is a requirement parameter.static booleanisRequirementUsageOrDefinition(Element element) Checks whether the element is a requirement usage or definition.static booleanisRequirementUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents a requirement usage or definition.static booleanisStakeholder(Feature feature) Checks whether the feature is a stakeholder parameter.static booleanisStakeholder(FeatureMembership membership) Checks whether the membership represents a stakeholder membership.static booleanisVerify(FeatureMembership membership) Checks whether the membership represents a requirement verification.
-
Constructor Details
-
Requirements
public Requirements()
-
-
Method Details
-
isVerify
Checks whether the membership represents a requirement verification.- Parameters:
membership- the membership- Returns:
- true if the membership is a
RequirementVerificationMembership
-
isStakeholder
Checks whether the feature is a stakeholder parameter.- Parameters:
feature- the feature- Returns:
- true if the feature is a stakeholder parameter
-
isStakeholder
Checks whether the membership represents a stakeholder membership.- Parameters:
membership- the membership- Returns:
- true if stakeholder membership
-
isFramedConcern
Checks whether the feature is a framed concern.- Parameters:
feature- the feature- Returns:
- true if the feature is a framed concern
-
isFramedConcern
Checks whether the membership represents a framed concern membership.- Parameters:
membership- the membership- Returns:
- true if framed concern membership
-
isRequirementParameter
Checks whether the feature is a requirement parameter. Requirement parameters include:- actors
- stakeholders
- subjects
- Parameters:
feature- the feature- Returns:
- true if requirement parameter
-
isAssumedConstraint
Checks whether the membership represents an assumed requirement constraint.- Parameters:
membership- the membership- Returns:
- true if assumed constraint
-
isRequiredConstraint
Checks whether the membership represents a required requirement constraint.- Parameters:
membership- the membership- Returns:
- true if required constraint
-
isRequirementUsageOrDefinition
Checks whether the element is a requirement usage or definition.- Parameters:
element- the element- Returns:
- true if requirement usage or definition
-
isRequirementUsageOrDefinition
public static boolean isRequirementUsageOrDefinition(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents a requirement usage or definition.- Parameters:
eClass- the class- Returns:
- true if requirement usage or definition
-
isOwningTypeRequirementUsageOrDefinition
Checks whether the owning type of the requirement usage is itself a requirement usage or definition.- Parameters:
requirementUsage- the requirement usage- Returns:
- true if owning type is requirement usage or definition
-
getActualRequirementUsage
Returns the actual requirement usage represented by the given constraint usage. For satisfy requirement usages, this returns the satisfied requirement.- Parameters:
usage- the constraint usage- Returns:
- requirement usage, or null if none applies
-
getRequiredConstraint
Returns all required constraints of the given type.- Parameters:
type- the type- Returns:
- list of required constraints
-
getOwnedRequiredConstraint
Returns the required constraints owned directly by the type.- Parameters:
type- the type- Returns:
- list of owned required constraints
-
getAssumedConstraint
Returns all assumed constraints of the given type.- Parameters:
type- the type- Returns:
- list of assumed constraints
-
getOwnedAssumedConstraint
Returns the assumed constraints owned directly by the type.- Parameters:
type- the type- Returns:
- list of owned assumed constraints
-
getFramedConcern
Returns all framed concerns of the given type.- Parameters:
type- the type- Returns:
- list of framed concerns
-
getOwnedFramedConcern
Returns the framed concerns owned directly by the type.- Parameters:
type- the type- Returns:
- list of owned framed concerns
-
getReqId
Returns the requirement ID of the given type, if any.- Parameters:
type- the type- Returns:
- requirement ID, or null if none exists
-
getStakeholderParameter
Returns the stakeholder parameters of the given type.- Parameters:
type- the type- Returns:
- list of stakeholder parameters
-
getOwnedStakeholderParameter
Returns the stakeholder parameters owned directly by the type.- Parameters:
type- the type- Returns:
- list of owned stakeholder parameters
-