Requirement

open class Requirement(val name: String? = null, val description: String? = null, val asil: ASIL? = null, val issues: List<IssueReference> = emptyList(), val element: Element, var allocatedTo: List<Element> = emptyList(), var derivedFrom: List<Requirement> = emptyList(), val verificationCriteria: String? = null, val sources: List<URLReference> = emptyList()) : MetamodelEntity

Requirement node.

Requirements can be chained via derivedFrom to capture refinement/derivation. Each requirement has a subject element — the thing the requirement is about — and may additionally be allocated to one or more direct children of that element via allocatedTo, expressing which sub-elements actually realise the requirement.

Constructors

Link copied to clipboard
constructor(name: String? = null, description: String? = null, asil: ASIL? = null, issues: List<IssueReference> = emptyList(), element: Element, allocatedTo: List<Element> = emptyList(), derivedFrom: List<Requirement> = emptyList(), verificationCriteria: String? = null, sources: List<URLReference> = emptyList())

Properties

Link copied to clipboard

Sub-elements that this requirement is allocated to. Each entry must be a direct child of element (the subject) — i.e. entry.parent === element. Empty by default; populated when a requirement that lives at the level of element is realised by specific child elements (e.g. an activity-level requirement allocated to one or more of its components).

Link copied to clipboard
open override val asil: ASIL?
Link copied to clipboard

Identity of the authored Kotlin declaration, independent of its receiving model instance. Inherited declarations retain this provenance while id distinguishes each owning instance.

Link copied to clipboard

Fully-qualified name of the declaring context. Prefers declaringClassNameOverride (set explicitly by source materializers or canonical-ID binding) over declaringClass's captured name; falls back to null if neither is available.

Link copied to clipboard

Parent requirements this requirement derives from (traceability chain).

Link copied to clipboard
open override val description: String?
Link copied to clipboard

Subject of the requirement — the Element the requirement is about.

Link copied to clipboard
val id: String

Fully-qualified unique identifier of this model instance. A member follows its actual owning instance, so two instances of the same user class have distinct member IDs. declarationId retains the common source declaration for navigation and naming rules.

Link copied to clipboard
open override val issues: List<IssueReference>
Link copied to clipboard
open override val name: String?
Link copied to clipboard

The Requirements that declares this requirement as one of its properties.

Link copied to clipboard

Kotlin val name that holds this entity, scoped to its declaring context. Populated reflectively by WireModel.wireAll in the compiled path, or set directly via bindToSource in the source-materialized path. null until either runs.

Link copied to clipboard
open override val sources: List<URLReference>
Link copied to clipboard

Qualitative or quantitative acceptance criteria for this requirement, including the relevant conditions, observable outcome, and necessary limits. Precise references may reuse authoritative definitions. This is neither a test plan nor a verification result.

Functions

Link copied to clipboard

Binds an authored field or constructor-owned value without replacing its source declaration provenance.

Link copied to clipboard

Registers a child entity declared inside a source-materialized parent.

Link copied to clipboard

Records source-declared uses without changing the target's declaration or owner.

Link copied to clipboard

Binds an entity to an already computed canonical MetamodelEntity.id.

Link copied to clipboard
fun MetamodelEntity.bindToSource(referenceName: String, declaringClassName: String)

Sets the canonical identifiers for an entity that was materialized from source (as opposed to being instantiated from compiled bytecode). Intended for use by PSI / source materializers such as the IDEA plugin.

Link copied to clipboard

Interface-point analyses in declaration order, including analyses nested beneath ports or service groups.

Link copied to clipboard

Structural children, including explicit metamodel containment. Relation targets retain their own declaration.

Link copied to clipboard
Generated with STIG