<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Md Tawhid Bin Waez, PhD on Medium]]></title>
        <description><![CDATA[Stories by Md Tawhid Bin Waez, PhD on Medium]]></description>
        <link>https://medium.com/@md.waez?source=rss-037331a6e604------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*96C7IVPqq3bynZzNlbJU4g.jpeg</url>
            <title>Stories by Md Tawhid Bin Waez, PhD on Medium</title>
            <link>https://medium.com/@md.waez?source=rss-037331a6e604------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 03:22:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@md.waez/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Occurrences and the 4D model: one rocket, two masses, both correct]]></title>
            <link>https://medium.com/@md.waez/occurrences-and-the-4d-model-one-rocket-two-masses-both-correct-d8238ce881ca?source=rss-037331a6e604------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8238ce881ca</guid>
            <category><![CDATA[system-modeling]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[sysml-v2]]></category>
            <category><![CDATA[mbse]]></category>
            <category><![CDATA[system-architecture]]></category>
            <dc:creator><![CDATA[Md Tawhid Bin Waez, PhD]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 15:31:02 GMT</pubDate>
            <atom:updated>2026-11-25T15:31:02.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*2GRt-aKM9SMYvA3TvkoMJw.png" /></figure><p>What is the mass of a rocket? At ignition, the rocket has one mass. After stage separation, it has a different mass. But it is the same vehicle. It has the same serial number and one continuous existence.</p><p>SysML v1 could record a mass on a Rocket block. SysML v1 also had time concepts, for example TimeConstraint, DurationConstraint and TimeObservation. The problem was that these concepts applied to interactions and behavior. You could also model time as a value property, and connect other values to it with parametric constraints. But structure did not have a standard model element for one moment in the life of one block. Thus, a model could not say “this rocket, at this moment”.</p><p>SysML v2 solves this problem with one decision about the contents of a model. Parts and actions both exist over time. Thus, you can describe each of them at a moment or over an interval. This idea is the base for all of the next few posts.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FC9Vkb5wUsiM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DC9Vkb5wUsiM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FC9Vkb5wUsiM%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1ae4896fba73247c2b44cd1f551919d/href">https://medium.com/media/f1ae4896fba73247c2b44cd1f551919d/href</a></iframe><h3>First, a fair view of v1</h3><p>SysML v1 had more capabilities than many people know. InstanceSpecification could describe individual instances with slots and values. It was standardized, and it worked. Activities had a formal execution model through fUML. Also, UML could constrain the duration of a behavior.</p><p>The gap was that structure and behavior did not have a shared concept of existence. In UML, every behavior is a class, so the two had a common parent. But Class tells what kind of thing something is. It does not tell when a thing starts, how long it lasts, or when it ends.</p><p>You could ask how long an activity took. You could not ask how long a block lasted. You could draw one aircraft with one avionics suite, and later with a different suite. The v1.6 spec itself shows a machine, identified by its serial number, that changes classification over time. But SysML v1 did not have a standard relationship that said these were the same aircraft at different times.</p><h3>The concept: everything that exists, occurs</h3><p>KerML is the kernel under SysML v2. In KerML, Occurrence is the root concept for things that exist. It is the most general class. An occurrence takes up time and space. Data values, for example a mass, are not occurrences. Data values and occurrences are both under the top type of the library, Anything.</p><ul><li>An Occurrence is a thing that has a lifetime.</li><li>An Object is an occurrence that is structure. SysML parts specialize Object.</li><li>A Performance is an occurrence that is behavior. SysML actions specialize Performance.</li><li>individual marks a definition that describes one identifiable thing for all of its life.</li><li>A timeslice is a portion of an occurrence over an interval. A snapshot is a portion at one instant.</li></ul><p>Objects and performances are disjoint. A pump is never a pump operation. But both are occurrences. Thus, both have a start, an end and a duration. The kinds stay separate, but they have the same root.</p><p>Two more parts of the library connect these concepts. The first part is Life. Each occurrence is a portion of a life. A life is the occurrence that takes up all of the time and space of that thing. If you follow portionOf from an occurrence, you always get to one Life.</p><p>An individual definition is a subclass of Life with the multiplicity 0..1. Thus, it has a maximum of one instance. The 0 has a purpose. The spec tells you that it lets you model a counterfactual. A counterfactual is an individual that the model says does not exist.</p><p>The second part is that a kind can apply to only a part of a life. All parts are items, but an item can be a part during some timeslices and not during others. The example in the spec is an engine. On the assembly line, the engine is an item. When it is installed in a car and supplies power, it is a part. In a junkyard, it is an item again.</p><h3>The code: one aircraft, two configurations</h3><p>The code below shows an aircraft type and one specific aircraft of that type.</p><pre>package FleetModel {<br>    private import ISQ::*;<br><br>    part def AvionicsSuite;<br><br>    occurrence def Aircraft {<br>        attribute emptyMass : MassValue;<br>        ref part avionics : AvionicsSuite;<br>    }<br><br>    individual occurrence def Aircraft_N7042 :&gt; Aircraft;<br>}<br><br>package FleetOperations {<br>    private import FleetModel::**;<br><br>    part legacySuite : AvionicsSuite;<br>    part upgradedSuite : AvionicsSuite;<br><br>    occurrence n7042 : Aircraft_N7042 {<br>        timeslice preRefit : Aircraft {<br>            ref part :&gt;&gt; avionics = legacySuite;<br>        }<br><br>        timeslice postRefit : Aircraft {<br>            ref part :&gt;&gt; avionics = upgradedSuite;<br>        }<br><br>        first preRefit then postRefit;<br><br>        snapshot atDelivery;<br>        snapshot at10000Hours;<br>    }<br>}</pre><p>Aircraft is a type. It describes the features that each aircraft of this design has. Aircraft_N7042 adds individual. Thus, it describes one tail number for all of its existence.</p><p>Inside n7042, two timeslices mark intervals of that life. During preRefit, the aircraft carries legacySuite. During postRefit, it carries upgradedSuite. The succession puts the two timeslices in order. The two snapshots mark single moments.</p><p>Thus, one aircraft has two configurations, and both are true. The model does not copy the aircraft to show the change. A copy loses identity. A portion keeps identity.</p><p>Timeslices are not only for individuals. If you declare timeslices in an occurrence definition, they describe a portion of each instance. In the example in the spec, each flight has three phases:</p><pre>occurrence def Flight {<br>timeslice preflight;<br>timeslice inflight;<br>timeslice postflight;<br>}</pre><p>Timeslices can contain other timeslices. Thus, inflight can have its own climb and cruise timeslices. A snapshot inside a snapshot is not useful, because a snapshot has no duration.</p><p>Look again at first preRefit then postRefit. A succession tells you that the first occurrence ends before the second occurrence starts. It does not tell you that the second occurrence starts immediately when the first ends. Thus, there can be time between them for the refit. You can model the refit as a third timeslice. For “no time between”, the library has a different relation, HappensJustBefore.</p><p>Configuration is not the only thing that can change. The features of an attribute do not change over time. But the features of an occurrence can change during its life. If a value must not change, use constant. This example adds constant to the Aircraft definition in FleetModel:</p><pre>occurrence def Aircraft {<br>attribute emptyMass : MassValue;<br>constant attribute msn : ScalarValues::String; // manufacturer serial number<br>ref part avionics : AvionicsSuite;<br>}</pre><p>Now, emptyMass can have a different value at each snapshot. msn must have the same value at each snapshot of a given aircraft. A value can change through a binding, a flow or an explicit assignment. The spec gives this example of an assignment: assign flight.aircraft := newAircraft;.</p><p>Timeslices, snapshots, successions and composite subactions do not change in this way. They apply to the full occurrence.</p><p>n7042 is an individual usage, because its definition is individual. You can also write individual on a usage explicitly. individual applies to all kinds of occurrence definitions. Thus, individual part def is also correct.</p><p>Now, look at the rocket again:</p><pre>package LaunchVehicles {<br>private import ISQ::*;<br>occurrence def LaunchVehicle {<br>attribute totalMass : MassValue;<br>}<br>individual occurrence def Falcon9_B1049 :&gt; LaunchVehicle;<br>occurrence flight : Falcon9_B1049 {<br>snapshot atIgnition : LaunchVehicle {<br>:&gt;&gt; totalMass = 549054 [SI::kg];<br>}<br>snapshot atStageSeparation : LaunchVehicle {<br>:&gt;&gt; totalMass = 115000 [SI::kg];<br>}<br>first atIgnition then firstStageBurn;<br>first firstStageBurn then atStageSeparation;<br>timeslice firstStageBurn;<br>}<br>}</pre><p>Both masses are correct. One mass does not replace the other mass, because each mass belongs to a named moment of the same vehicle. Also, the masses are typed quantities with units. They are the same quantities as in the attributes post.</p><p>This is the difference between a model of a design and a model of the life of a system. A digital twin must describe one specific unit as it is today. It must also connect that description to the unit at commissioning. Individuals, snapshots and timeslices give the language the words for that.</p><p>The spec gives two more details that a twin needs. First, the lifetime of an individual and its timeslices can be actual or projected. The example in the spec is a used car. The car has an actual life until the purchase. Then a mechanic measures the tire tread and estimates how much longer the tires can last.</p><p>Second, the spec separates two things. The condition of an individual at a point in time is the set of its attribute values. The discrete states are the states that you model with state definitions. You can specify both at different points in the life of the individual.</p><h3>Deep dive: three topics that become clear</h3><h3>Every occurrence has a start and an end</h3><p>Each occurrence starts and ends at a snapshot. In the library, these snapshots are startShot and endShot. Actions rename them start and done. This is not a time mechanism that is added to behavior. Each occurrence has it, and this includes parts.</p><p>Thus, the question “When did this pump start to exist?” now has a place in the model: pump.startShot. Later posts constrain the duration of actions. They use the same temporal extent that each occurrence already has.</p><p>The library also gives these details. A snapshot is a timeslice that takes no time. The first snapshot is startShot, and the last snapshot is endShot. All other snapshots occur during the middleTimeSlice. If the start and the end of an occurrence are the same snapshot, the occurrence takes no time, as a snapshot does. Each occurrence is also a timeslice of itself and a portion of itself.</p><p>Duration comes from a library function, not from a special property. DurationOf is in the KerML Clocks library. It gives the duration of an occurrence relative to a clock. The duration is the time of the end snapshot minus the time of the start snapshot.</p><p>Space has a similar concept. The KerML Occurrences library defines space slices. A space slice is a portion that keeps all of the time, but only a part of the space. SysML does not have a keyword for space slices.</p><h3>A state is a kind of action</h3><p>In v1, StateMachine and Activity were separate metaclasses. Both were behaviors. A state could invoke activities as its entry, do and exit behaviors. But the state itself was a vertex in a state machine, not a behavior.</p><p>In v2, StateDefinition specializes ActionDefinition. In the library, StateAction specializes Action. Action specializes Performance, and Performance specializes Occurrence.</p><p>A system is in a state for an interval of time. V2 says this directly.</p><p>The library also contains the behavior. StateAction has the features entryAction, doAction and exitAction. These features are the entry, do and exit actions of the state. Thus, a state can include an action that continues while the state lasts.</p><h3>Composition is about lifetime</h3><p>The composite vs. reference post told you about lifetime in composition. A composite part cannot exist after the end of the life of the whole that owns it. This rule is valid only because parts are occurrences. The language can represent the statement “The engine exists within the life of the vehicle”, because both things have lives.</p><p>SysML v1 composition had a similar rule. In UML, when you delete a composite, you also delete the parts that it contains at that moment. Also, a part belongs to a maximum of one composite at a time. In v2, the rule uses occurrences and their lifetimes. A composite value cannot exist after the end of its whole. It also cannot be a value of a different composite feature, except on the same whole.</p><p>This rule has two results. First, removal is important. If a wheel is attached to the car when the car is destroyed, the wheel is also destroyed. If you remove the wheel first, the wheel can continue to exist.</p><p>Second, composition does not tell when a part starts to exist. Thus, an engine can exist before the car exists. If you need a stronger statement, the Occurrences library has the necessary relations: HappensDuring for time, InsideOf for space, and Within for both.</p><h3>💡 V1 vs. v2 occurrences cheat sheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYyiAk3jY_dMfb0mWF9z0w.png" /></figure><p>Next lesson: action definitions. When occurrences are in place, behavior is simpler than you expect. Actions become blueprints with typed inputs and outputs. Their start, end and duration are not special. All occurrences have them.</p><p>You may visit <a href="http://www.sysmodeler.ai/">SysModeler.ai</a> for more resources.</p><p>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #DigitalTwin #SysML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8238ce881ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Packages, namespaces and imports: dependencies you can actually see]]></title>
            <link>https://medium.com/@md.waez/packages-namespaces-and-imports-dependencies-you-can-actually-see-8bb92f8bdce3?source=rss-037331a6e604------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bb92f8bdce3</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[sysml-v2]]></category>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[system-modeling]]></category>
            <category><![CDATA[mbse]]></category>
            <dc:creator><![CDATA[Md Tawhid Bin Waez, PhD]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 15:01:02 GMT</pubDate>
            <atom:updated>2026-11-13T15:01:02.985Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*rE8upeLcdSw9pVZU3DQ2qw.png" /></figure><p>SysML v1 packages were not just folders. They were real UML namespaces. You could import a whole package or a single element, mark an import public or private, rename what you imported, and use qualified names. OMG’s v1-to-v2 transformation spec maps each of those straight across to v2. Nothing was missing.</p><p>Most teams just didn’t use them. In a graphical tool, an import was a dialog box and a dashed arrow on a package diagram someone had to draw and keep current. Dragging the element you needed into the model tree was easier.</p><p>SysML v2 puts every import at the top of the file. The team can read it, review it in a pull request and see it change in a diff. Same idea as v1, much better odds that anyone maintains it. That matters on a program with a shared physics library, a domain library and a model-year project, where one import decision either keeps those layers apart or quietly ties them together.</p><h3>The concept: who can see what?</h3><p>A package is a namespace. Imports decide which names from other packages are visible inside it, and to whom.</p><ul><li>private import makes names visible inside this package only.</li><li>public import makes them visible here and re-exports them to anyone who imports this package.</li><li>::* imports the direct members of a package. ::** imports the package and everything nested inside it.</li><li>alias X for Y; gives an element a second name in this package.</li><li>library package marks a package as a reusable library, a real declaration and not a comment.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4m9JAIH8ZU8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4m9JAIH8ZU8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4m9JAIH8ZU8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2733c8d592c5abf4d622e0efb016e63f/href">https://medium.com/media/2733c8d592c5abf4d622e0efb016e63f/href</a></iframe><h3>The code: a three-tier vehicle model</h3><p>Here is a physics library, an automotive library built on it, and a project built on that.</p><pre>library package PhysicsLib {<br>attribute def Stiffness :&gt; ISQ::ForceValue;<br>part def Spring {<br>attribute rate : Stiffness;<br>}<br>}<br>package AutomotiveLib {<br>private import PhysicsLib::*;<br>part def Suspension {<br>part spring : Spring;<br>}<br>}<br>package ModelYear2027 {<br>private import AutomotiveLib::*;<br>part def Vehicle {<br>part frontSuspension : Suspension;<br>}<br>}</pre><p>Stiffness is simplified to a force value here to keep the example short.</p><p>ISQ::ForceValue resolves without any import at all. Every model sits inside one global namespace, which always contains the KerML and SysML model libraries, plus any domain libraries your tool provides. ISQ comes from the Quantities and Units domain library. When it’s available, its top-level packages can be named from anywhere by qualified name.</p><p>AutomotiveLib imports PhysicsLib privately. That lets Suspension use Spring, but it doesn’t pass Spring on to anyone who imports AutomotiveLib.</p><p>So ModelYear2027 sees Suspension, the concept the automotive library means to offer. It doesn’t see Spring. If the project really needs the physics definition, it imports PhysicsLib itself, and that extra line makes the dependency visible.</p><p>Now change one word in AutomotiveLib:</p><pre>public import PhysicsLib::*;</pre><p>The automotive library now re-exports everything it imported. ModelYear2027 can use Spring, Stiffness and every other public PhysicsLib member without ever asking for them.</p><p>Here’s why that matters. Two years in, the program swaps PhysicsLib for a supplier library. With a private import, only AutomotiveLib changes, and Suspension stays the same for everyone downstream. With a public import, any project that quietly came to depend on Spring breaks, and you find out which ones by breaking them.</p><p>There’s a middle path between re-exporting everything and re-exporting nothing. Import single elements, and make public only the ones downstream projects are meant to use:</p><pre>package AutomotiveLib {<br>private import PhysicsLib::Spring;<br>public import PhysicsLib::Stiffness;<br>part def Suspension {<br>part spring : Spring;<br>}<br>}</pre><p>A public membership import re-exports exactly one name. ModelYear2027 can now type an attribute with Stiffness, but it still can’t see Spring. An alias does the same job under a name you choose. alias SpringRate for PhysicsLib::Stiffness; is public by default, so importers of AutomotiveLib see SpringRate. The library’s public surface is now something you wrote down on purpose.</p><p>You can still write PhysicsLib::Spring if you need it. A private import doesn’t hide a top-level package. The difference is that the dependency is now a line in your file that a reviewer can question.</p><p>Member visibility is a separate lever. Declare private attribute def DampingTable; inside PhysicsLib, and no qualified name from outside reaches it. PhysicsLib::DampingTable simply doesn’t resolve, because qualified names only see public members.</p><p>There is one escape hatch, import all, which imports memberships regardless of their declared visibility. It’s in the grammar, but use it knowingly. It undoes exactly the encapsulation described above.</p><p>Write private or public on every import. The grammar requires a visibility keyword, and the standard libraries spell it out every time.</p><p>One more visibility rule is worth knowing. Inside a definition or usage there’s a third option, protected. A protected import is private to the outside world, but every specialization inherits it:</p><pre>part def Suspension {<br>protected import PhysicsLib::*;<br>part spring : Spring;<br>}<br>part def SportSuspension :&gt; Suspension {<br>attribute stiffRate : Stiffness;<br>}</pre><p>SportSuspension can use Stiffness without importing PhysicsLib itself. Code that only uses Suspension from outside sees none of those names. In a package, protected means the same as private.</p><h3>Deep dive: four things worth knowing</h3><h3>A local name silently beats an imported one</h3><p>Say a team imports a standard Temperature with a wildcard, then someone defines a local Temperature for sensor data. Which one does Temperature mean?</p><p>The language has a defined answer, and it’s the local one. KerML says an imported name that clashes with an owned name is hidden. It isn’t an error, and nothing gets reported. A sensor reading you meant to type with the standard quantity ends up typed by a homemade structure holding a Real. Your unit checks stop applying, and nothing tells you.</p><p>The fix is at the import line. Drop the wildcard import, and add an alias if you want a readable name for the standard type:</p><pre>package Standards {<br>attribute def Temperature :&gt; ISQ::TemperatureValue;<br>}<br>package SensorPackage {<br>private import ScalarValues::*;<br>// no wildcard import of Standards - that is what would create the collision<br>attribute def Temperature {<br>attribute celsius : Real;<br>attribute sensorId : String;<br>}<br>alias StdTemperature for Standards::Temperature;<br>part def Sensor {<br>attribute reading : StdTemperature;<br>}<br>}</pre><p>Here Temperature means the local sensor-data definition, and StdTemperature names the standard one. Nothing is hidden, and a reader can see which is which.</p><p>Two imports can collide as well. KerML hides an imported name if it clashes with an owned name, or with a visible name from another import. So if two wildcard imports both bring in a Temperature, the rule hides both. That isn’t an error either. An unqualified Temperature then resolves in an enclosing namespace, if one has it, or fails to resolve. Either way, the wildcards made the decision, not you.</p><p>Definitions add one more layer. Inside a part def, an inherited feature hides an imported name in the same way an owned member does.</p><h3>::*, ::** and ::*::**</h3><p>::* imports only the direct members of a package. ::** imports the package itself plus everything nested inside it. ::*::** is also recursive but leaves out the package itself.</p><p>UML had no recursive import, so you imported package by package. The recursive forms are what make whole-model filters practical, as the last post showed. For ordinary dependencies they’re usually too broad. Import what you need.</p><p>Recursion follows ownership, not imports. ::** descends into the packages and other namespaces that the imported package owns. It doesn’t follow into a package that one of them merely imports, and it skips memberships inherited through implicit specialization.</p><h3>library package is a real declaration</h3><p>The library keyword tells tools that everything inside the package, at any depth, is a library element. The ISQ and SI packages use the stricter form, standard library package, which marks them as part of the standard. Your own libraries use library package.</p><p>SysML v1 had the «ModelLibrary» stereotype for the same purpose. In v2 it’s part of the declaration, so it can’t be forgotten or detached.</p><h3>Package structure decides who can work at once</h3><p>Many teams keep one package per file. That’s a convention, not a language rule, but it pays off. Two engineers editing two package files rarely conflict. Two engineers editing the same file might.</p><p>So draw package boundaries along the lines your teams actually own, such as subsystem, discipline or supplier. Put a whole vehicle in one package and you’ve rebuilt the check-out queue you were trying to escape.</p><p>When an outside system hands you awkward identifiers, use unrestricted names. In part def &lt;’FT-100&#39;&gt; ‘Fuel Tank Assembly’;, the short name is the stable ID your PLM tool knows, and the quoted name is what engineers read.</p><p>The short name is a real name for resolution, not just a label. A reference can use either one: ‘FT-100’ and ‘Fuel Tank Assembly’ resolve to the same element.</p><h3>💡 V1 vs. v2 packages and imports cheat sheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZJGP0rnuhq0efaRirDwNZg.png" /></figure><p><strong>Next lesson:</strong> occurrences and the 4D model. Parts, actions and states turn out to be the same kind of thing underneath, something that exists in space and time. That idea explains why a state can be an action and why an action has a duration you can constrain.</p><p>You may visit <a href="http://www.sysmodeler.ai/">SysModeler.ai</a> for more resources.</p><p>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #SysML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bb92f8bdce3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Semantic metadata, keywords and filter: your model starts answering questions]]></title>
            <link>https://medium.com/@md.waez/semantic-metadata-keywords-and-filter-your-model-starts-answering-questions-063abcb7bea4?source=rss-037331a6e604------2</link>
            <guid isPermaLink="false">https://medium.com/p/063abcb7bea4</guid>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[sysml-v2]]></category>
            <category><![CDATA[system-modeling]]></category>
            <category><![CDATA[mbse]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[Md Tawhid Bin Waez, PhD]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 15:01:04 GMT</pubDate>
            <atom:updated>2026-11-10T15:01:04.989Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*JvA0Aqanbk3e8VQO9M_W9w.png" /></figure><p>SysML v1 stereotypes were capable. They could carry properties, constraints and inheritance. The trouble was that one profile mechanism had to cover both simple labels and real domain concepts. And finding tagged elements across a model usually meant writing OCL or a tool-specific script.</p><p>SysML v2 splits those jobs. Plain metadata records a fact about an element. Semantic metadata gives a tag a modeling consequence, so the tagged element becomes a kind of something. A filter then builds a package from whatever the model holds right now.</p><p>Picture a launch-control model. The flight director needs commands like abort and hold to stand apart from every other part. Those commands need their own properties. And the safety team needs a list of critical items that nobody has to keep up to date by hand. This post covers all three.</p><h3>The concept: how does a tag become a type?</h3><p>Semantic metadata is metadata with a base type. Anything you tag with it specializes that base type.</p><ul><li>SemanticMetadata is the library definition you specialize to make semantic metadata.</li><li>baseType names what every tagged element should specialize.</li><li>A short name like &lt;cmd&gt; turns the metadata into a user keyword, #cmd.</li><li>annotatedElement limits where the keyword is legal, as in the last post.</li><li>filter gives a package a Boolean condition. Only imported members that pass it get in.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FHeINyiSZL5I%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHeINyiSZL5I&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHeINyiSZL5I%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1e745e83611c999e4b8813bc89789fa/href">https://medium.com/media/f1e745e83611c999e4b8813bc89789fa/href</a></iframe><h3>The code: a small command language</h3><p>Here is a command language for the launch-control model, and two commands written in it.</p><pre>package CommandDSL {<br>private import ScalarValues::*;<br>private import Metaobjects::SemanticMetadata;<br>part def Command {<br>attribute issuedBy : String;<br>attribute priority : Integer;<br>}<br>part commands : Command[*] nonunique;<br>metadata def &lt;cmd&gt; CommandMetadata :&gt; SemanticMetadata {<br>:&gt; annotatedElement : SysML::PartUsage;<br>:&gt;&gt; baseType = commands meta SysML::Usage;<br>}<br>}<br>package MissionControl {<br>private import CommandDSL::*;<br>#cmd part abortSequence {<br>:&gt;&gt; issuedBy = &quot;Flight Director&quot;;<br>:&gt;&gt; priority = 1;<br>}<br>#cmd part holdCountdown {<br>:&gt;&gt; issuedBy = &quot;Launch Conductor&quot;;<br>:&gt;&gt; priority = 3;<br>}<br>}</pre><p>Command defines what every command has, an issuer and a priority. commands is a usage typed by Command, so it carries both.</p><p>CommandMetadata specializes SemanticMetadata. Its short name, cmd, creates the #cmd keyword. The annotatedElement line makes the keyword legal only on part usages. Change it to SysML::ActionUsage and #cmd becomes a keyword for actions instead.</p><p>The baseType line is the one everyone squints at. meta SysML::Usage is a cast. It turns the commands usage into the kind of value baseType expects. That’s all it does.</p><p>Here is the payoff. #cmd part abortSequence doesn’t just label the part as a command. Because both are usages, abortSequence subsets commands. It inherits issuedBy and priority. Try to redefine an attribute that Command doesn’t have, and the tool rejects it.</p><p>What baseType implies depends on what you tag. The specification spells out the cases:</p><ul><li>Tag a usage, with a usage as baseType, and the tagged usage subsets it. That’s abortSequence and commands.</li><li>Tag a definition, with a usage as baseType, and the tagged definition subclassifies the definitions of that usage. Here, that means Command.</li><li>Tag a definition, with a definition as baseType, and the tagged definition subclassifies it directly.</li><li>Any other combination adds no implicit specialization.</li></ul><p>Right now #cmd only works on part usages, so it can’t mark a whole family of commands. annotatedElement can be subset more than once, and an element is legal if it matches any one of them. So allow part definitions as well:</p><pre>metadata def &lt;cmd&gt; CommandMetadata :&gt; SemanticMetadata {<br>:&gt; annotatedElement : SysML::PartDefinition;<br>:&gt; annotatedElement : SysML::PartUsage;<br>:&gt;&gt; baseType = commands meta SysML::Usage;<br>}<br>// Subclassifies Command, so it has issuedBy and priority<br>#cmd part def EmergencyCommand;</pre><p>It’s the same keyword with a different relationship, picked by the rules above. abortSequence subsets commands. EmergencyCommand subclassifies Command.</p><p>A declaration can also carry more than one keyword, and a keyword can be a qualified name. Plain and semantic metadata mix freely:</p><pre>package VehicleModel {<br>private import Metaobjects::SemanticMetadata;<br>part def Check;<br>part checks : Check[*] nonunique;<br>metadata def Verified :&gt; SemanticMetadata {<br>:&gt; annotatedElement : SysML::PartDefinition;<br>:&gt; annotatedElement : SysML::PartUsage;<br>:&gt;&gt; baseType = checks meta SysML::Usage;<br>}<br>}<br>#VehicleModel::Verified #cmd part abortSequence {<br>:&gt;&gt; issuedBy = &quot;Flight Director&quot;;<br>:&gt;&gt; priority = 1;<br>}</pre><p>The # form has no body, so it can’t fill in attribute values. It suits flags like Verified, and keywords like #cmd whose baseType is already bound in the definition.</p><p>One more form comes from the specification’s own examples. A semantic keyword can replace the language keyword entirely, so #situation def Failure; declares a definition that subclassifies Situation. That form declares a generic definition or usage, not a part. So #cmd as written would reject #cmd abortSequence. If you want the short form, leave annotatedElement unrestricted or allow SysML::Usage.</p><p>You just built a small domain-specific language. There’s no profile and no metamodel extension, just a package your team imports. After that, they write #cmd as if it shipped with SysML.</p><p>This isn’t a side feature. In the Requirement Derivation library, #derivation marks a connection as a derivation, and #original and #derive mark its ends. #causation in the Cause and Effect library works the same way. Here’s the derivation example from the specification:</p><pre>private import RequirementDerivation::*;<br>#derivation connection {<br>end #original ::&gt; vehicleSpecification.vehicleMassRequirement;<br>end #derive ::&gt; engineSpecification.engineMassRequirement;<br>}</pre><p>Your #cmd is built exactly like those.</p><h3>Packages that fill themselves</h3><p>Now the safety team wants every safety-critical element in the vehicle model, in one place.</p><pre>package SafetyCriticalItems {<br>private import VehicleModel::**;<br>filter @VehicleModel::SafetyCritical;<br>}</pre><p>The import pulls in the whole model. The filter keeps only the members tagged SafetyCritical. When an engineer tags a new part, it shows up in the package. When someone removes the tag, it drops out. Nobody maintains a list.</p><p>A filter is a Boolean expression, so it can combine conditions:</p><pre>package UnverifiedCriticalItems {<br>private import VehicleModel::**;<br>filter @VehicleModel::SafetyCritical and not @VehicleModel::Verified;<br>}</pre><p>This package answers a real question. Which critical items haven’t been verified yet? The answer lives in the model, not in a report that goes stale after the next change.</p><p>A filter can also test the values a tag holds, not just whether the tag is there. If your safety metadata records a severity, one filter can pick out only the catastrophic items. Write the rule once, and every package that uses it agrees.</p><p>Here’s what that looks like. Give the metadata an attribute, set it where you tag, and read it in the filter:</p><pre>package VehicleModel {<br>enum def Severity { catastrophic; hazardous; major; minor; }<br>metadata def SafetyCritical {<br>attribute severity : Severity;<br>}<br>part brakeController {<br>@SafetyCritical { severity = Severity::catastrophic; }<br>}<br>}<br>package CatastrophicItems {<br>private import VehicleModel::**;<br>filter @VehicleModel::SafetyCritical and<br>VehicleModel::SafetyCritical::severity == VehicleModel::Severity::catastrophic;<br>}</pre><p>The first condition checks that the tag is there. The second reads the value that tag holds on each candidate element. The specification uses the same pattern to select designs approved above a given level.</p><p>A filter can also test what kind of element it’s looking at. Any element can be tested against its SysML abstract-syntax metaclass, as if it carried that as metadata:</p><pre>package CriticalParts {<br>    private import VehicleModel::**;<br>    filter @SysML::PartUsage and @VehicleModel::SafetyCritical;<br>}</pre><p>Critical parts get in. Critical requirements, ports and actions don’t.</p><p>There’s a limit on what a filter can say. It must be a model-level evaluable expression: literals, feature references and a fixed set of library functions, such as the comparisons, and, or, not, @ and meta. It can’t range over instances with all, and it can’t call arbitrary functions. The restriction exists so the expression can be evaluated on the model itself.</p><p>The same filter keyword works in views. Put the condition on a view definition, and every view of that kind applies it to whatever it exposes:</p><pre>view def SafetyView {<br>    filter @VehicleModel::SafetyCritical;<br>}<br><br>view criticalItems : SafetyView {<br>    expose VehicleModel::**;<br>}</pre><p>The package gives you a named subset of the model. The view gives you something to render from it.</p><p>There’s a bigger idea underneath. A filter is a query that lives in the model. The Systems Modeling API, the standard that ships with SysML v2, exposes model queries over HTTP. So the same question can feed a dashboard, a CI check or generated safety evidence. We’ll build that out in a later post.</p><h3>Deep dive: three things worth getting right</h3><h3>Filters apply to imports, not owned members</h3><p>A filter decides what an import brings in. It doesn’t remove anything the package owns directly. So keep filtered packages thin. They should own an import and a filter, not a second copy of the model.</p><p>A package filter also applies to every import in that package. That’s why the examples write VehicleModel::SafetyCritical in full. A short name brought in by its own import would have to pass the same filter, and it wouldn’t.</p><h3>::*, ::** and ::*::** bring in different things</h3><p>Take a small package with one level of nesting:</p><pre>package VehicleModel {<br>    part def Vehicle;<br>    package Braking {<br>        part brakeController;<br>    }<br>}</pre><p><strong>import VehicleModel::*</strong>; brings in only the direct members, Vehicle and Braking. brakeController sits inside Braking, so it doesn’t come across.</p><p><strong>import VehicleModel::**</strong>; is recursive. It brings in VehicleModel itself, plus Vehicle, Braking and brakeController.</p><p><strong>import VehicleModel::*::**</strong>; is also recursive, but it leaves out the package itself. You get Vehicle, Braking and brakeController.</p><p>That’s why the filter examples use ::**. With a single star, a safety-critical part inside Braking never reaches the filter, and the package quietly misses it. Plenty of people have wondered why their safety package found only four elements. This is usually why.</p><h3>Semantic and plain metadata do different jobs</h3><p>Use semantic metadata when the tag should create a domain category, with a shared type and shared properties. A command is a kind of thing in the launch-control domain. It earns a Command definition and a keyword.</p><p>Use plain metadata when you’re recording a fact, such as a review state or an export designation. SafetyCritical says something about an element. It doesn’t turn the element into a different kind of part.</p><p>A quick test helps. If the tagged elements should inherit features from a common parent, use semantic metadata. If you only want to label them and find them later, use plain metadata. A filter can find both.</p><h3>💡 V1 vs. v2 semantic metadata cheat sheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Gngr3H7uljHhLoIuU4zUA.png" /></figure><p><strong>Next lesson:</strong> packages, namespaces and imports. We’ve been importing things for three posts and taking it for granted. Next we look at public versus private imports, aliases, and how package structure decides whether two engineers can work on the same model at once.</p><p>You may visit <a href="http://www.sysmodeler.ai/">SysModeler.ai</a> for more resources.</p><p>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #SysML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=063abcb7bea4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metadata, the new stereotypes: five steps of ceremony, replaced by one symbol]]></title>
            <link>https://medium.com/@md.waez/metadata-the-new-stereotypes-five-steps-of-ceremony-replaced-by-one-symbol-1761ddb0f909?source=rss-037331a6e604------2</link>
            <guid isPermaLink="false">https://medium.com/p/1761ddb0f909</guid>
            <category><![CDATA[mbse]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[sysml-v2]]></category>
            <category><![CDATA[system-modeling]]></category>
            <dc:creator><![CDATA[Md Tawhid Bin Waez, PhD]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 15:01:04 GMT</pubDate>
            <atom:updated>2026-10-25T15:01:04.317Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*vFr3-nB4A3PJHsPp_q_hOw.png" /></figure><p>Say you are in SysML v1 and want to mark a requirement as safety-critical. You create a package and designate it as a «profile». You define a «stereotype». You draw an Extension line to a UML metaclass (knowing that a SysML Requirement is built on UML::Class). You apply the profile to your package, locate the requirement, and apply the stereotype. That is a multi-step ceremony just to attach an adjective.</p><p>SysML v2 eliminates UML profiles. Instead, it introduces metadata def — an ordinary definition declared in an ordinary package. You import it like any other model element and apply it using @.</p><p>The deeper architectural gain is AST unification. In SysML v1, querying tagged values often required specialized OCL scripts or vendor-specific queries. In SysML v2, metadata annotations are features of the model AST. Standard View definitions (`ViewDefinition`) can filter, aggregate, and report on metadata tags natively.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdTQO166hoq4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdTQO166hoq4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FdTQO166hoq4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a973388fe5bf71c149cbe1d274099125/href">https://medium.com/media/a973388fe5bf71c149cbe1d274099125/href</a></iframe><h3>The concept: How do I annotate an element?</h3><p>You define the metadata structure once and apply it wherever needed:</p><ul><li>metadata def: Defines the metadata classifier (replaces the SysML v1 stereotype).</li><li>Attributes inside it hold the tag’s data. They replace v1 tagged values.</li><li>@Name applies the metadata annotation to an element and populates its attributes.</li><li>annotatedElement: Restricts which model elements the metadata can annotate by subsetting reflective metaclasses (e.g., :&gt; annotatedElement : SysML::RequirementDefinition;).</li><li>:&gt; allows metadata definitions to inherit features from parent metadata definitions.</li></ul><h3>The code: tagging a key performance parameter</h3><p>We define a KPP tag — the kind a defense program uses for its must-meet requirements — and apply it directly to a requirement definition:</p><pre>package JCIDS {<br>    metadata def KPP {<br>        attribute threshold : String;<br>        attribute &#39;objective&#39; : String; // Single quotes escape the reserved keyword &#39;objective&#39;<br>        attribute rationale : String;<br>    }<br>}</pre><p>KPP is an ordinary metadata def with three standard attributes. JCIDS isn’t a complex UML profile — it’s just an ordinary package.</p><p>Applying the tag is just as direct:</p><pre>package MissionSpecs {<br>    private import JCIDS::*;<br>    requirement def &lt;&#39;REQ-001&#39;&gt; SortieGenerationRate {<br>        @KPP {<br>            threshold = &quot;4 sorties per day&quot;;<br>            &#39;objective&#39; = &quot;6 sorties per day&quot;;<br>            rationale = &quot;CONOPS 2031, para 4.2&quot;;<br>        }<br>        doc /* The air vehicle shall sustain the specified<br>               sortie generation rate over 30 days. */<br>    }<br>}</pre><p>The import makes KPP visible inside MissionSpecs. @KPP attaches the three values to the requirement. There’s no separate step to apply a profile.</p><h3>Deep dive: three things worth getting right</h3><p>Metadata definitions inherit like everything else</p><pre>metadata def SafetyCritical {<br>    attribute severity : SeverityLevel;<br>}<br>metadata def ISO26262 :&gt; SafetyCritical {<br>    attribute asil : ASILRating;<br>}<br>metadata def DO178C :&gt; SafetyCritical {<br>    attribute dal : DesignAssuranceLevel;<br>}</pre><p>Tag an element with @ISO26262 and it becomes an annotated element of ISO26262. Because ISO26262 specializes SafetyCritical, a query filtering for @SafetyCritical matches it automatically. You don’t learn a separate inheritance mechanism for metadata — it uses the exact same subclassification operator (:&gt;) used for parts, actions, and requirements.</p><p>SysML v1 did let one stereotype specialize another. But the hierarchy lived at the meta level, while SysML v2 integrates metadata inheritance directly into the core AST.</p><h3>You control where a tag can go</h3><p>Every metadata definition inherits a feature called annotatedElement. Subset it to say which kinds of element the tag is allowed to annotate:</p><pre>metadata def KPP {<br>    // This tag applies to Requirement Usages and nothing else<br>    :&gt; annotatedElement : SysML::RequirementUsage;<br>    attribute threshold : String;<br>}</pre><p>Now KPP fits requirements and nothing else. Put @KPP on a part and the tool reports an error.</p><h3>How this compares to SysML v1</h3><p>In SysML v1, SysML was not a standalone language built from scratch — it was a UML Profile. That means every SysML element was created by taking an existing UML Metaclass and adding a stereotype to it:</p><ol><li>A Requirement in SysML v1 was actually a standard UML::Class with the «requirement» stereotype applied to it.</li><li>A Block (a physical hardware component) in SysML v1 was also a standard UML::Class with the «block» stereotype applied to it.</li></ol><p>To the underlying UML engine, both a Requirement and a Block were fundamentally the exact same thing: a UML::Class.</p><p>When you wanted to create a custom tag — for example, a «SafetyCritical» tag intended only for Requirements — UML required you to attach (extend) your stereotype to a base UML metaclass. Now picture an engineer modeling in a SysML v1 software tool:</p><ol><li>The engineer creates a physical hardware block, say EngineBlock.</li><li>Under the hood, EngineBlock is an instance of UML::Class.</li><li>The engineer right-clicks EngineBlock and looks at the list of available tags/stereotypes to apply.</li><li>The tool checks the definition of «SafetyCritical»: “Can this tag be applied to a UML::Class?”</li><li>The answer is YES, because «SafetyCritical» extends UML::Class!</li></ol><p>Because the tool’s metamodel only sees that both the Requirement and the EngineBlock are UML::Class objects, the tool has no built-in way to know that «SafetyCritical» was meant only for Requirements and not for Blocks.</p><p>As a result, the user could tag the physical EngineBlock with a Requirement tag, and the tool would accept it without throwing any error. Preventing that misuse required writing and executing external OCL (Object Constraint Language) validation scripts.</p><p>SysML v2 replaces broad UML base types with explicit, fine-grained AST metaclasses (such as RequirementUsage vs. PartUsage). Restricting a tag strictly to requirements takes a single, readable line inside the metadata definition.</p><h3>Tags can hold real physics, not just primitive strings</h3><p>Attributes inside a metadata definition are ordinary AttributeUsages. You can type them with any data type, including physical quantity types from the normative ISQ library:</p><pre>metadata def ThermalLimit {<br>    attribute maxOperating : ISQ::TemperatureValue;<br>    attribute qualifiedBy : ScalarValues::String;<br>}<br><br>part def Avionics {<br>    @ThermalLimit {<br>        maxOperating = 71 [SI::&#39;°C&#39;];<br>        qualifiedBy = &quot;MIL-STD-810H&quot;;<br>    }<br>}</pre><p>That temperature is a real quantity with a unit. A constraint can use it. Nobody has to parse it out of a string.</p><h3>Metadata is model data</h3><p>In SysML v1, stereotype applications sat in a profile extension layer on top of UML base metaclasses. Extracting tagged values in automated scripts typically required writing OCL queries or relying on vendor-specific tool APIs.</p><p>In SysML v2, a metadata usage (MetadataUsage) is a first-class element inside the model Abstract Syntax Tree (AST) — just like a part, action, or requirement. You can navigate it, specialize it, and query it directly using standard language constructs.</p><p>That changes how tags get used: they stop being passive documentation notes and start driving automated modeling workflows. Safety review scopes, export-control boundaries, and KPP reports all become dynamic model queries.</p><h3>💡 V1 vs. v2 metadata cheat sheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m8Z43OyWYlb3xy9f" /><figcaption>v1 vs v2 Cheat Sheet</figcaption></figure><p>Next lesson: A tag can do more than label — when a metadata def specializes SemanticMetadata, it can introduce custom # keywords (like #SafetyCritical or #Command) that add implicit specialization directly into textual code. We will also see how a View query can collect every safety-critical element across a large system model without writing external scripts.</p><p>You may visit <a href="http://www.sysmodeler.ai/">SysModeler.ai</a> for more resources.</p><p>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #SysML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1761ddb0f909" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Composite vs. reference: one word that can double your mass budget]]></title>
            <link>https://medium.com/@md.waez/composite-vs-reference-one-word-that-can-double-your-mass-budget-d391e1285383?source=rss-037331a6e604------2</link>
            <guid isPermaLink="false">https://medium.com/p/d391e1285383</guid>
            <category><![CDATA[mbse]]></category>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[sysml-v2]]></category>
            <category><![CDATA[system-modeling]]></category>
            <dc:creator><![CDATA[Md Tawhid Bin Waez, PhD]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 13:01:02 GMT</pubDate>
            <atom:updated>2026-10-25T13:01:02.988Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*499cQrBE89PvuihKrBvwuA.png" /></figure><p>SysML v1 drew whole-part relationships using diamond arrowheads . A filled black diamond denoted composite aggregation (ownership) . A hollow white diamond denoted “shared aggregation” — which the SysML v1.6 specification explicitly noted “defines no specific semantics or constraints” . Because the language left shared aggregation undefined, different teams and tool vendors interpreted the symbol in conflicting ways .</p><p>SysML v2 replaces that ambiguity with a single, mathematically rigorous distinction: Composite Usages vs. Reference Usages.</p><p>This distinction matters directly in real hardware design: ownership is a statement about physical containment . Get it wrong in a subsystem template by using composite part instead of ref part, and automated mass rollups will count parts that don’t physically exist in that assembly.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FV8FrlAFTBew%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DV8FrlAFTBew&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FV8FrlAFTBew%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d943100f66d96b36b7d2d4fd171ed436/href">https://medium.com/media/d943100f66d96b36b7d2d4fd171ed436/href</a></iframe><h3>The concept: who owns this?</h3><p>A nested part is composite unless you say otherwise.</p><ul><li>A nested part is composite by default (part): The whole owns the part instance . The part exists only while the whole exists, and no other whole can compositely own that same instance .</li><li>Adding ref makes it referential (ref part): The whole points to a part whose ownership and lifetime are managed elsewhere .</li></ul><pre>part def Spacecraft {<br>    part thruster : Thruster;               // Composite — the Spacecraft OWNS this instance<br>    ref part groundStation : GroundStation; // Reference — the Spacecraft POINTS TO this instance<br>}</pre><h3>The code: a satellite with one power bus</h3><p>Our satellite has one power bus. Communications and thermal control both use it. Here is the version most people write first:</p><pre>package SatelliteSystem {<br>    part def PowerBus;<br>    // Standard subsystem templates<br>    part def CommsSubsystem {<br>        part commsBus: PowerBus;       // A composite bus by default<br>    }<br>    part def ThermalSubsystem {<br>        part thermalBus: PowerBus;       // A composite bus by default<br>    }<br>    part def Satellite {<br>        // 1. DECOMPOSITION BY DEFAULT (Composite)<br>        // The one real physical power bus owned by the satellite<br>        part powerBus : PowerBus;<br>        // 2. THE MULTIPLICATION TRAP<br>        // Instantiating these subsystems as-is creates nested composite buses.<br>        part comms : CommsSubsystem;    // Instantiates a 2nd composite bus instance<br>        part thermal : ThermalSubsystem; // Instantiates a 3rd composite bus instance<br>    }<br>}<br>view def &#39;Part Structure View&#39; {<br>    private import Views::*;<br>    filter @SysML::PartDefinition or @SysML::PartUsage;<br>    render asTreeDiagram;<br>}<br>view &#39;satellite structure view&#39; : &#39;Part Structure View&#39; {<br>    expose SatelliteSystem::**;<br>}</pre><p>Count the buses: there is powerBus, then comms.bus, then thermal.bus. That’s three physical buses. The model describes a completely different satellite from the one you intended to build, and an automated mass rollup will count two buses that don’t physically exist.</p><p>The fix is to turn each subsystem’s bus into a reference and point it at the real one:</p><pre>package SatelliteSystem {<br>    part def PowerBus;<br>    part def CommsSubsystem {<br>        ref part commsBus: PowerBus;<br>    }<br>    part def ThermalSubsystem {<br>        ref part thermalBus: PowerBus;<br>    }<br>    part def Satellite {<br>        // The single real bus owned by the satellite<br>        part powerBus : PowerBus;<br>        // Instantiate the subsystems, overriding their internal buses<br>        part comms : CommsSubsystem {<br>            // Redefines the inherited &#39;bus&#39; and binds it to the sibling &#39;powerBus&#39;<br>            ref part :&gt;&gt; commsBus = powerBus;<br>        }<br>        part thermal : ThermalSubsystem {<br>            // Redefines the inherited &#39;bus&#39; and binds it to the sibling &#39;powerBus&#39;<br>            ref part :&gt;&gt; thermalBus = powerBus;<br>        }<br>    }<br>}<br>view def &#39;Part Structure View&#39; {<br>    private import Views::*;<br>    filter @SysML::PartDefinition or @SysML::PartUsage;<br>    render asTreeDiagram;<br>}<br>view &#39;satellite structure view&#39; : &#39;Part Structure View&#39; {<br>    expose SatelliteSystem::**;<br>}</pre><p>Read the fix one piece at a time. :&gt;&gt; bus replaces the inherited bus inside this subsystem. ref part makes it a reference. = powerBus ties it to the bus the satellite owns.</p><p>Now there’s one bus, used by two subsystems, so it counts once in the mass budget. The subsystem definitions stay reusable, and the sharing is stated where the satellite is put together. I like that last part most. The decision lives where it belongs.</p><h3>Deep dive: three things worth getting right</h3><h3>ref matters for occurrences, not attributes</h3><p>Ownership applies to things that exist over time, which SysML v2 calls occurrences. Parts, items, actions, connections and ports are all occurrences. Nested ones are owned by default, so write ref when something is owned elsewhere.</p><pre>ref part station : GroundStation; // A physical part owned elsewhere<br>ref item fuel : Fuel;             // A physical item you do not own</pre><p>Attributes are different. They hold immutable Data Values (like numbers or physical quantities), not entities with an independent lifecycle. Attribute usages are always references, so ref attribute is legal but adds nothing.</p><pre>attribute limit : MassValue;      // Inherently referential; no &#39;ref&#39; needed</pre><h3>Ownership is a claim about lifetime</h3><p>An owned part exists strictly within the lifetime of its whole. If the whole is destroyed, the composite part goes with it.</p><p>So ownership is wrong for anything the system borrows, shares or meets in its environment. A satellite doesn’t compositely own its ground station, its orbit or its operator.</p><p>When you’re unsure, ask one question: If the parent stopped existing, would this element stop existing too? If yes, use part. If no, use ref part.</p><h3>A binding means equal, not assign</h3><p>In most programming languages, = means “work out the right side and copy it into the left”. A SysML binding has no direction. It says both sides are the same value. If one side is known, so is the other side.</p><p><em>// Declarative binding connector (bidirectional equality)</em></p><p><em>bind comms.powerIn = powerBus.powerOut;</em></p><p><em>// Inline binding shorthand on a feature</em></p><p><em>attribute actualMass : MassValue = calculatedMass;</em></p><p>SysML v1 supported this concept via the BindingConnector element, but it was largely confined to Parametric Diagrams and IBD value properties. In SysML v2, binding is a universal construct (bind / =) that applies uniformly across parts, ports, items, actions, and attributes anywhere in the model AST.</p><h3>💡 V1 vs. v2 composite and reference cheat sheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iGvh-tZACqtXVHke" /><figcaption>v1 vs v2 Cheat Sheet</figcaption></figure><p>Next lesson: metadata, the new stereotypes. In SysML v1, tagging a requirement as safety-critical meant building a profile first. SysML v2 does it with metadata def.</p><p>You may visit <a href="http://www.sysmodeler.ai/">SysModeler.ai</a> for more resources.</p><p>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #SysML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d391e1285383" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Attributes and the ISQ library: physics, not just numbers]]></title>
            <link>https://medium.com/@md.waez/attributes-and-the-isq-library-physics-not-just-numbers-06487d5bd168?source=rss-037331a6e604------2</link>
            <guid isPermaLink="false">https://medium.com/p/06487d5bd168</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[system-modeling]]></category>
            <category><![CDATA[mbse]]></category>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[sysml-v2]]></category>
            <dc:creator><![CDATA[Md Tawhid Bin Waez, PhD]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 15:01:02 GMT</pubDate>
            <atom:updated>2026-10-24T15:01:02.474Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*RRX4ud0AFPKUpBAMpz-eZA.png" /></figure><p>In 1999 NASA lost the Mars Climate Orbiter. One team sent impulse data in pound-force seconds. The software that received it expected newton-seconds. Both numbers were valid. Neither one carried its unit.</p><p>SysML v1 had an answer to this. A value type could carry a unit and a quantity kind, and SysML v1.6 shipped a units library called QUDV, plus ISO 80000 definitions, to back them. But that library sat in a non-normative annex. Tool support varied, and many teams built their own lightweight types instead.</p><p>SysML v2 puts quantities and units into the standard itself. A spacecraft’s dry mass is typed by MassValue. Its payload mass can be expressed directly in grams (g) or kilograms (kg). Its power is typed by PowerValue. Every conforming tool ships the exact same library (ISQ and SI), allowing models to enforce dimensional consistency and unit compatibility natively.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Frr_6x1_SYqY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Drr_6x1_SYqY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Frr_6x1_SYqY%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0327d6fcc70f5212a50dd13b48fbff0b/href">https://medium.com/media/0327d6fcc70f5212a50dd13b48fbff0b/href</a></iframe><h3>The concept: what does this number mean?</h3><p>An attribute links a structural component to a value. In SysML v2 that value can be a physical quantity with a unit, not a bare number.</p><ul><li>attribute def defines a data type, such as MassValue. It replaces the v1 ValueType.</li><li>attribute uses that type on a part, such as dryMass: MassValue. It replaces the v1 value property.</li><li>The ISQ library defines standard international quantities like mass, length and power. It follows ISO/IEC 80000.</li><li>The SI library defines standard units like kg, g and W, and their mathematical conversion factors.</li><li>1500 [kg] — An expression constructed using the bracket operator ([…]). It binds a numerical magnitude (1500) and a measurement reference (kg) into a single expression.</li></ul><h3>The code: a spacecraft that can’t lie about its mass</h3><p>We give a spacecraft a mass budget and a power figure. Then we state the rules they must obey.</p><pre>package SpaceSystems {<br><br>    // Import the physics. This is the whole point.<br>    import ISQ::*;<br>    import SI::*;<br><br>    part def Spacecraft {<br><br>        // 1. TYPED BY QUANTITY, NOT BY NUMBER<br>        // MassValue is a distinct physical type. It is not a primitive Real.<br>        attribute dryMass : MassValue = 1500 [kg];<br><br>        // 2. MIXED UNITS, SAME DIMENSION<br>        // Declared in grams, but still a MassValue.<br>        // A conforming tool resolves the conversion automatically under the hood.<br>        attribute payloadMass : MassValue = 500000 [g];<br><br>        attribute totalMass : MassValue = 2000 [kg];<br>        attribute maxPower : PowerValue = 444 [W];<br><br>        // 3. AN ASSERTED RELATIONSHIP<br>        // &#39;assert constraint&#39; guarantees that this equation must hold true at all times.<br>        assert constraint massRollup {<br>            totalMass == dryMass + payloadMass<br>        }<br><br>        assert constraint powerFloor {<br>            maxPower &gt; 0 [W]<br>        }<br>    }<br>}</pre><p>The two imports bring in MassValue, PowerValue, kg, g and W.</p><p>dryMass and payloadMass are both masses. One is in kilograms and one is in grams. The library knows how grams relate to kilograms, so the rollup works. maxPower is a power. You can’t swap it for a mass.</p><p>Now try this:</p><pre>assert constraint nonsense {<br>    totalMass == dryMass + maxPower<br>}</pre><p>Every value here has a known dimension. Mass plus power is not a mass. A tool that checks dimensions can flag this type mismatch.</p><h3>Deep dive: three things worth getting right</h3><h3>A value type and a quantity are different things</h3><p>MassValue is an attribute definition. It describes what a mass value looks like, a number plus a unit.</p><p>ISQ::mass is an attribute in the library. It is the standard ISQ quantity called mass, and its type is MassValue.</p><p>Most of the time, type your attribute with the value type:</p><pre>attribute dryMass : MassValue = 1500 [kg];</pre><p>Sometimes an analysis or a library constraint needs the ISQ quantity itself. Then subset it instead:</p><pre>attribute dryMass :&gt; ISQ::mass = 1500 [kg];</pre><p>Both work. Pick one style per project and stick to it. A model that mixes them at random leaves reviewers guessing whether the difference means something.</p><h3>constraint describes, assert constraint enforces</h3><p>A plain constraint describes a relationship. It is true or false depending on the values, and that’s all.</p><pre>constraint { totalMass == dryMass + payloadMass }</pre><p>An assert constraint turns it into a rule the model must obey. If it comes out false, the model is inconsistent, and a tool can report it.</p><pre>assert constraint { totalMass == dryMass + payloadMass }</pre><p>If you want a wrong mass rollup to fail validation, use assert. This trips up a lot of people who wonder why their solver never complains.</p><h3>The square brackets are syntax</h3><p>In 1500 [kg], the brackets are not a label for humans. They are part of the value. The number and the unit kg become one quantity.</p><p>The SI library defines kg as the kilo prefix applied to g. That is why 1500 [kg] and 500000 [g] can sit in the same equation. The conversion lives in the model, not in someone’s head.</p><h3>💡 V1 vs. v2 attributes and units cheat sheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vq2MHftMOgBz-Ot2" /></figure><p>V1 vs V2 Cheat Sheet</p><p>Next lesson: composite vs. reference with ref part. The numbers are honest now. Next comes structure, and one keyword that decides whether a shared power unit counts once in your mass budget or twice.</p><p>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #SysML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06487d5bd168" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiplicity & Cardinality: The Power of Brackets [ ]]]></title>
            <link>https://medium.com/@md.waez/multiplicity-cardinality-the-power-of-brackets-c058c7783892?source=rss-037331a6e604------2</link>
            <guid isPermaLink="false">https://medium.com/p/c058c7783892</guid>
            <category><![CDATA[mbse]]></category>
            <category><![CDATA[sysml-v2]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[system-modeling]]></category>
            <category><![CDATA[system-architecture]]></category>
            <dc:creator><![CDATA[Md Tawhid Bin Waez, PhD]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 10:01:02 GMT</pubDate>
            <atom:updated>2026-10-24T10:01:02.991Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*V72GG0vk5AByArkHZEAY-g.png" /></figure><p>In SysML v1, multiplicities were represented either visually on association ends or textually inside block compartments as property strings.</p><p>SysML v2 makes that cardinality part of the textual declaration. A model can state that a truck has at least four wheels, between two and four doors, an optional sunroof, and any number of cargo boxes.</p><p>That makes the design intent readable where the feature is defined. It also gives a specialized model a clear rule for how it may narrow a general model’s allowed counts.</p><h3>The Concept: How Many?</h3><p>In SysML v2, every Feature (Part, Port, Attribute, Item) has a multiplicity. It constrains the allowable cardinality of that feature.</p><ul><li>Exact Count: [4] means exactly 4.</li><li>Range: [2..4] means between 2 and 4 inclusive.</li><li>Optional: [0..1] means it might not exist.</li><li>Unlimited: [*] (shorthand) or [0..*] (explicit lower bound) means zero to infinity.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-4UUs9zGsSI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-4UUs9zGsSI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-4UUs9zGsSI%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/49889e0e03eb30f99eae98d930e86879/href">https://medium.com/media/49889e0e03eb30f99eae98d930e86879/href</a></iframe><h3>The Code: Designing a Modular Truck</h3><p>Let’s build a truck where we define exactly how many wheels, doors, and trailers it can have. Crucially, we will define a generic truck first, then specialize it into a specific configuration.</p><pre>package AutomotiveDesign {<br>    <br>    part def Truck {<br>        // 1. Range [Min..Max] or [Min..*]<br>        // A generic truck has at least 4 wheels.<br>        // We define a wide range here so subclasses can narrow it.<br>        part wheels[4..*] : Wheel;<br>        // 2. Range [2..4]<br>        // It can have 2, 3, or 4 doors, depending on configuration.<br>        part doors[2..4] : Door;<br>        // 3. Optional [0..1]<br>        // The Sunroof is optional. 0 means it doesn&#39;t exist; 1 means it does.<br>        part sunroof[0..1] : Sunroof;<br>        // 4. Unlimited [*]<br>        // We can carry any number of cargo boxes.<br>        // We can also add keywords like &#39;ordered&#39; or &#39;nonunique&#39;.<br>        part cargo[*] ordered : CargoBox;<br>        <br>        // 5. Trailers (Optional Component)<br>        part trailers[0..1] : Trailer;<br>    }<br>    // 6. Redefining Multiplicity in a Subclass<br>    part def HeavyHauler :&gt; Truck {<br>        // We redefine wheels to lock the count to exactly 18.<br>        // This is valid because 18 is within the parent&#39;s range of [4..*].<br>        part :&gt;&gt; wheels[18]; <br>    }<br>}</pre><h3>Deep Dive: Under the Hood of the Brackets</h3><h3>Default Multiplicity</h3><p>When a multiplicity is omitted from a text declaration, a default multiplicity range is determined:</p><pre>Does the usage subset or redefine a parent?<br>                                   │<br>                  ┌────────────────┴────────────────┐<br>                 YES                                NO<br>                  │                                 │<br>     Inherits parent multiplicity         Is it an Attribute, Port,<br>                                      or Item (including Part) usage?<br>                                                    │<br>                                      ┌─────────────┴─────────────┐<br>                                     YES                          NO<br>                                      │                           │<br>                               Is it owned by a           Defaults       to [0..*]<br>                            Classifier (not a package)?  <br>                                      │<br>                        ┌─────────────┴─────────────┐<br>                       YES                          NO<br>                        │                           │<br>                 Does it lack explicit     Defaults to [0..*]<br>               subsetting or redefinition?  <br>                        │<br>          ┌─────────────┴─────────────┐<br>         YES                          NO<br>          │                           │<br>  Defaults to [1..1]         Defaults to [0..*]</pre><p>This means that — for attribute, item, part, and port usages owned by a definition or usage, the usual implicit multiplicity is [1..1] when there is no explicit multiplicity, subsetting, or redefinition. In other situations, the effective default can be [0..*]. And if your feature subsets or redefines an existing feature, it automatically inherits the multiplicity of that parent feature. The practical lesson is to write brackets whenever the count is meaningful to the design, especially for ranges, optionality, and redefinitions.</p><h3>Expression-Based (Parametric) Multiplicities</h3><p>Multiplicity bounds do not have to be hardcoded integers. SysML v2 allows the lower and upper bounds of a multiplicity range to be parameterized by expressions (such as attributes or calculations) defined within the same context.</p><p>This is incredibly useful for modeling physical systems where the number of sub-components scales dynamically based on structural parameters:</p><pre>package BatterySystemArchitecture {<br>    private import ISQ::*;<br>    private import ScalarValues::*;<br>    part def BatteryCell;<br>    part def SmartBattery {<br>        // Parametric multiplier attribute<br>        attribute expectedModuleCount : Integer;<br>        // The upper bound is bound to the value of an attribute<br>        part cellModules[0..expectedModuleCount] : BatteryCell;<br>    }<br>}</pre><h3>Multiplicity on Successions &amp; Control Flows</h3><p>Multiplicities can also be applied directly to Succession Ends to constrain behavioral execution loops and model conditional branching.</p><p>In this pattern, a multiplicity on a succession end limits how many times the target performance can occur relative to the source performance:</p><pre>package CameraControl {<br>    action def Focus;<br>    action def Shoot;<br>    part def DSLR_Camera {<br>        action focus[*] : Focus;<br>        action shoot[*] : Shoot;<br>        // Succession Multiplicity Constraint:<br>        // on focus means focus MUST perform first.<br>        // [0..1] on shoot means shooting is optional and occurs at most once per focus performance.<br>        succession shootingSequence<br>            first focus then [0..1] shoot;<br>    }<br>}</pre><h3>Collection Semantics: Uniqueness vs. Ordering</h3><p>When a feature has a multiplicity greater than 1, it represents a collection of references. You can append keywords to explicitly declare the algebraic structure of this collection:</p><ul><li>unique (Default): The collection cannot contain duplicate object references.</li><li>nonunique: Duplicate references are permitted (e.g., repeating the same sensor reading value).</li><li>unordered (Default): Elements have no chronological or index-based order.</li><li>ordered: Elements form a sequence indexed from 1 to the cardinality of the collection.</li></ul><p>💡 V1 vs. V2 Multiplicity Cheat Sheet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/0*GfvEbYOTLuWsz0Sm" /></figure><p>Next Lesson: We will look at Attributes &amp; The ISQ Library. We’ve been using Real and Integer, but real engineering requires physics. We will learn how to use ISQ::Mass and ISQ::Power to make our models physically aware.</p><p>You may visit <a href="http://www.sysmodeler.ai/">SysModeler.ai</a> for more resources.</p><p>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #SysML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c058c7783892" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Specialization vs. Redefinition (The Colon Wars)]]></title>
            <link>https://medium.com/@md.waez/specialization-vs-redefinition-the-colon-wars-fc98acf3b049?source=rss-037331a6e604------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc98acf3b049</guid>
            <category><![CDATA[system-modeling]]></category>
            <category><![CDATA[sysml-v2]]></category>
            <category><![CDATA[mbse]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[system-architecture]]></category>
            <dc:creator><![CDATA[Md Tawhid Bin Waez, PhD]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 06:01:01 GMT</pubDate>
            <atom:updated>2026-10-24T06:01:01.741Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vh5hX1wSeaa9Zk8GfBXgGA.png" /></figure><p>In SysML v1, a Generalization relationship could establish that one Block inherited from another. To make a local change to an inherited property, modelers used UML property strings like {redefines engine} or {subsets engine}. While effective, these were textual tags appended to UML properties.</p><p>SysML v2 streamlines this by elevating these concepts to primary mathematical operators, rather than relying on UML profile string tags. By mastering how to say ‘an element is typed by a definition (:)’, ‘specializes a definition (:&gt;)’, or ‘redefines an inherited feature (:&gt;&gt;)’, we can accurately capture the exact engineering intent.</p><h3>The Concept: Type (:) vs. Inherit (:&gt;) vs. Replace (:&gt;&gt;)</h3><ol><li>: (Defined By): “I am defined by X.” This establishes Feature Typing. It is used to type a usage element by a definition (e.g., part myEngine : Engine).</li><li>:&gt; (Specializes/Subsets): “I am a specific kind of X.” This symbol covers Subclassification (for Definitions) and Subsetting (for Usages). The specific element inherits features and constraints from the general element.</li><li>:&gt;&gt; (Redefines): “I am replacing and narrowing the inherited feature X.” This is Redefinition. It allows a feature to replace an inherited one, narrowing its multiplicity or type within the new context.</li></ol><h3>The Code: Evolution of the Engine</h3><p>Let’s define a generic engine, then evolve it into a high-performance V8 using these operators.</p><pre>package AutomotiveDesign {<br>    private import ISQ::*; // Standard Units<br>    private import ScalarValues::*; // Base datatypes (Integer)<br>    private import SI::*; // Base measurement units (W, kW)<br><br>    // 1. The Base Definition<br>    part def Engine {<br>        // A generic engine has unspecified horsepower and cylinder count<br>        attribute horsepower : PowerValue;<br>        attribute cylinderCount : Integer;<br><br>        // A constraint definition usage serving as a structural invariant.<br>        // We declare a constraint stating that power must be positive.<br>        constraint validPower { horsepower &gt; 0[W] }<br>    }<br><br>    // 2. Specialization (:&gt;)<br>    // V8_Engine INHERITS everything from Engine.<br>    // Note: &#39;:&gt;&#39; is used between Definitions (Classifiers).<br><br>    part def V8_Engine :&gt; Engine {<br>        // 3. Redefinition (:&gt;&gt;)<br>        // We don&#39;t create a random new attribute named cylinderCount.<br>        // We REDEFINE the one we inherited to lock it to 8.<br>        attribute :&gt;&gt; cylinderCount = 8;<br>        // We add a new constraint specific to this subclass.<br>        constraint highPerformance { horsepower &gt;= 300 [kW] } // (using SI units for precision)<br>    }<br>}</pre><p>Graphical Notation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/0*_BdhgqLr8-5lv4Gs" /></figure><h3>Deep Dive: Redefinition Semantics (:&gt;&gt;)</h3><ol><li>Local Modification, Global Integrity: When you write attribute :&gt;&gt; cylinderCount, you are creating a redefining feature usage within V8_Engine. Crucially, this does not mutate the parent Engine definition globally. The generic Engine remains unchanged; the restriction only exists within the scope of the V8_Engine.</li><li>Specialization (:&gt;) vs. Subsetting (subsets): It is vital to distinguish how this symbol behaves in different contexts:</li><li>Consistency Required: Redefinition requires the new definition to be consistent with the parent (e.g., narrowing the range of values). You cannot redefine cylinderCount to be a String if the parent defined it as an Integer; that would violate the underlying typing rules of KerML.</li></ol><h3>Recursive Parts Tree Subsetting &amp; Reuse</h3><p>One of the most powerful and unique features of SysML v2 is that nested usages can be recursively redefined. This enables us to clone and modify complex parts-tree assemblies without constantly declaring entirely new decomposition trees from scratch.</p><p>Suppose we have a baseline system definition called Vehicle which instantiates a composite gearbox of type Transmission.</p><p>We can declare a specialized system definition, SportUtilityVehicle :&gt; Vehicle. By specializing the parent definition, SportUtilityVehicle automatically inherits the entire physical decomposition tree of the base Vehicle (including the inherited gearbox and the curbWeight attribute).</p><p>Instead of accepting the baseline powertrain as is, we can recursively reach into the inherited structure to redefine nested components. We do this by declaring part :&gt;&gt; gearbox : DualClutchTransmission, which overrides the baseline gearbox with a specialized transmission type. Inside this nested scope, we further refine inherited parameters — such as binding the maximum torque limit directly to 450.0 [‘N*m’].</p><p>This multi-level chain of specialization and redefinition provides an incredibly robust, type-safe mechanism for modeling complex product variant configurations.</p><pre>package DrivetrainProductLine {<br>    private import ISQ::*;<br>    private import SI::*;<br>    private import ScalarValues::*;<br>    part def GearSet {<br>        attribute mass : MassValue;<br>        attribute gearRatio : Real[1..*];<br>    }<br>    part def Transmission {<br>        attribute dryMass : MassValue;<br>        attribute maxTorqueRating : TorqueValue;<br>        // Baseline composite feature<br>        part internalGears : GearSet;<br>    }<br>    // DualClutchTransmission subclasses and inherits from Transmission<br>    part def DualClutchTransmission :&gt; Transmission {<br>        attribute clutchPlateCount : Integer = 2;<br>        // Redefining the inherited &#39;internalGears&#39; to restrict its type and parameters<br>        part :&gt;&gt; internalGears : DualClutchGearSet {<br>            // Constraining the inherited gear ratio array size to exactly 7<br>            attribute :&gt;&gt; gearRatio : Real[7];<br>        }<br>    }<br>    // Specialized GearSet subclassing the baseline GearSet<br>    part def DualClutchGearSet :&gt; GearSet {<br>        attribute dualShaftSyncTime : TimeValue = 0.015 [&#39;s&#39;];<br>    }<br>    part def Vehicle {<br>        attribute curbWeight : MassValue;<br>        // Base vehicle instantiates a standard transmission<br>        part gearbox : Transmission;<br>    }<br>    // Specialized vehicle definition subclassing Vehicle<br>    part def SportUtilityVehicle :&gt; Vehicle {<br>        // Redefining the inherited gearbox usage to utilize the DualClutchTransmission definition<br>        part :&gt;&gt; gearbox : DualClutchTransmission {<br>            // Locally binding and refining the inherited torque ratings<br>            attribute :&gt;&gt; maxTorqueRating = 450.0 [N*m];<br>        }<br>    }<br>}</pre><p>💡 V1 vs. V2 Cheat Sheet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2HJEKLiiDFQkrREU" /></figure><p>The main lesson is simple: : (Feature Typing) binds a usage to a definition, giving it its type. :&gt; (Specialization/Subsetting) says a definition specializes another definition, or a usage subsets another usage. :&gt;&gt; (Redefinition) says an inherited feature is being redefined in a compatible, more specific context.</p><p>Next Lesson: We will tackle Multiplicity &amp; Cardinality. How do we handle arrays (e.g., wheels) and optional components (e.g., driver[0..1]) directly in the text string?</p><p>You may visit <a href="http://www.sysmodeler.ai/">SysModeler.ai</a> for more resources.</p><p>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #SysML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc98acf3b049" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Item Definitions (The Metamodel of the “Stuff” That Flows)]]></title>
            <link>https://medium.com/@md.waez/item-definitions-the-metamodel-of-the-stuff-that-flows-4833938866d7?source=rss-037331a6e604------2</link>
            <guid isPermaLink="false">https://medium.com/p/4833938866d7</guid>
            <category><![CDATA[sysml-v2]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[system-modeling]]></category>
            <category><![CDATA[mbse]]></category>
            <dc:creator><![CDATA[Md Tawhid Bin Waez, PhD]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 15:01:03 GMT</pubDate>
            <atom:updated>2026-10-23T15:01:03.172Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pGZZISaOZRgDl5N3rdcccQ.png" /></figure><p>In SysML v1, engineers modeled the things that flow through a system by typing a FlowProperty or an ItemFlow with a standard Block, ValueType, or Signal. While this successfully gave the payload structural properties — allowing you to specify the density or octane level of “Fuel” rather than just an anonymous flow rate — it meant using the exact same generic Block construct for a passive payload as you used for an active system component.</p><p>SysML v2 introduces greater semantic precision by providing the item def. According to the SysML v2 abstract syntax, an item definition is a specific kind of occurrence definition used for things that exist in space and time and can be acted upon, but which do not necessarily perform actions themselves.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fl5NP-i_iQ6w%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dl5NP-i_iQ6w&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fl5NP-i_iQ6w%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cdd15fea9a0e353ebaef8a6e4c9787c9/href">https://medium.com/media/cdd15fea9a0e353ebaef8a6e4c9787c9/href</a></iframe><h3>The Concept: What is an Item</h3><p>To understand items, we must observe their position in the SysML v2 Metamodel Hierarchy (which extends KerML):</p><pre>[OccurrenceDefinition]  ◄─── (Base spatial-temporal classifier)<br>         ▲<br>         │<br> [ItemDefinition]        ◄─── (Specializes Systems Library &#39;Items::Item&#39;)<br>         ▲<br>         │<br> [PartDefinition]        ◄─── (Specializes Systems Library &#39;Parts::Part&#39;)</pre><p>In the abstract syntax:</p><p>● ItemDefinition is a specialized subclass of OccurrenceDefinition. Because it inherits from occurrences, <em>every item has temporal and spatial extent</em>. It is not just a passive data type; it exists in physical space and time, possesses a distinct lifetime, and can be tracked as it is stored, consumed, or flowing.</p><p>● The Structural Distinction (Item vs Part): A PartDefinition is a specialized subclass of ItemDefinition. Thus, all parts are items, but not all items are parts.</p><p>○ Parts (PartDefinition) represent modular, active structural units (e.g., an ECU, a pump, or an actuator) designed to perform actions and exhibit states within a system.</p><p>○ Items (ItemDefinition) represent things that are <em>acted upon, stored, or processed</em> by those parts, but do not necessarily perform system actions themselves (e.g., point-cloud telemetry, hydraulic oil, or electrical energy).</p><h3>The Code: Intelligent Fuel &amp; Data</h3><p>Here is a package that defines physical fuel and digital payment data, then uses the fuel definition in a nozzle port.</p><pre>  package MaterialDefinitions {<br>    private import ISQ::*;          // Standard Quantities (Mass, Time, etc.)<br>    private import SI::*;           // Measurement units (kg, m, s, etc.)<br>    private import Time::*;         // Clock model and DateTime types<br>    private import ScalarValues::*; // Standard datatypes (Real, String, Boolean)<br><br>    // 1. Physical Matter (Fuel)<br>    // An item can have physical properties and internal structure.<br>    item def Fuel {<br>        attribute octaneLevel : Real;<br>        attribute density : MassDensityValue;<br>        <br>        // Items can even have constraints!<br>        // We ensure density is above a threshold.<br>        // SysML v2 enforces dimensional consistency, so we must specify the unit.<br>        constraint { density &gt; 700[kg/m^3] }<br>    }<br><br>    // 2. Information (Data)<br>    // An item can be digital.<br>    item def PaymentData {<br>        attribute encryptionKey : String;<br>        attribute timestamp : DateTime;<br>    }<br><br>    // 3. Using the Item in a Port (Recap from Lesson 9)<br>    port def NozzlePort {<br>        // We flow the &#39;Fuel&#39; item defined above.<br>        // It&#39;s not just a number; it&#39;s an object with density and octane.<br>        out item superUnleaded : Fuel;<br>    }<br>}</pre><h3>Graphical Notation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/0*tdILN5f47gL8BHlc" /></figure><p>Additionally, SysML v2 supports both discrete and continuous domains using the exact same ItemDefinition metaclass:</p><p>● Discrete Items: Represent countable, individual objects that pass through or interact with a system (e.g., a Person, a specific cargo container, or a discrete CAN bus frame). They are modeled with discrete multiplicities (e.g., item trackingPacket : SensorTelemetry [0..*];).</p><p>● Continuous Items: Represent continuous flows or materials that are stored in tanks or are streamed between ports (e.g., liquid fuel, thermal energy, or electrical current). These are modeled as continuous substances by embedding quantitative attributes inside the item.</p><h3>Ports, Interfaces &amp; Directed Items</h3><p>How do items actually travel? They are declared as Directed Features inside Port Definitions (port def), which are then wired via Interface Connections (interface def):</p><pre>package CommunicationArchitecture {<br>    private import MaterialDefinitions::*;<br>    private import Time::*;         // Clock model and DateTime types<br>    private import ScalarValues::*; // Standard datatypes (Real, String, Boolean)<br><br>    // 1. Structured Data Payload Item Definition<br>    item def SensorTelemetry {<br>        attribute packetID : Integer;<br>        attribute payloadTimestamp : TimeValue;<br>        attribute sensorDataPoints : Real[1..*];<br>    }<br><br>    // 2. Port Definition utilizing the Item Payload<br>    port def TelemetryPort {<br>        // Declaring the item as a directed OUT feature<br>        out item telemetryData : SensorTelemetry;<br>    }<br><br>    // 3. Dual Part Architectures using Port Conjugation (tilde &#39;~&#39;)<br>    part def SensorUnit {<br>        port telemetryOut : TelemetryPort;<br>    }<br><br>    part def FusionECU {<br>        // Conjugation &#39;~&#39; automatically flips &#39;out item&#39; to &#39;in item&#39;<br>        port telemetryIn : ~TelemetryPort;<br>    }<br><br>    // 4. Logical Interface Contract routing the Item payload<br>    interface def TelemetryInterface {<br>        end sourcePort : TelemetryPort;<br>        end targetPort : ~TelemetryPort;<br><br>        // Declarative flow stating exactly WHAT item flows across the line<br>        flow of SensorTelemetry from sourcePort.telemetryData to targetPort.telemetryData;<br>    }<br>}</pre><h3>Graphical Notation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*6BKcKCZlClrBynlg" /></figure><h3>💡 V1 vs. V2 Cheat Sheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*We_xMG6a68tadE-T" /></figure><p>The key idea is that SysML v2 separates the thing being exchanged from the values that describe it. Fuel is the item. Its density and octane level are attributes. That separation lets the model preserve both the payload’s identity and the engineering data needed to reason about it.</p><p>Next Lesson: We shift gears to Language Architecture. Before we dive into behavior, we need to understand the “Layer Cake” of SysML v2. We will look at KerML, the engine under the hood that makes all this rigorous definition possible.</p><p>You may visit <a href="http://www.sysmodeler.ai/">SysModeler.ai</a> for more resources.</p><p>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #SysML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4833938866d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explicit Connections (Wiring the Topology)]]></title>
            <link>https://medium.com/@md.waez/explicit-connections-wiring-the-topology-2ffc9d61b0bb?source=rss-037331a6e604------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ffc9d61b0bb</guid>
            <category><![CDATA[system-modeling]]></category>
            <category><![CDATA[sysml-v2]]></category>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[mbse]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[Md Tawhid Bin Waez, PhD]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 10:01:03 GMT</pubDate>
            <atom:updated>2026-10-23T10:01:03.840Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sX1BSFg6UyNH1wCRRsPMIQ.png" /></figure><p>In SysML v1, the Internal Block Diagram (IBD) captures the internal structure of a block in terms of properties and the connectors between them. Connectors link parts or ports to specify interactions.</p><p>SysML v2 preserves the core engineering intent of connectors but drastically changes their underlying abstract syntax by grounding them in the Kernel Modeling Language (KerML). Instead of relying on specific diagrams to give connectors context, SysML v2 formalizes them directly in the textual and structural semantics. This makes the system architecture readable, diff-able, and searchable without ever opening a diagram.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FFZY8Aj625QA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DFZY8Aj625QA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FFZY8Aj625QA%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1f995699a7e7804d5eaad5f363f715a/href">https://medium.com/media/f1f995699a7e7804d5eaad5f363f715a/href</a></iframe><h3>The Concept: Topology as Code</h3><p>We have the Parts (Lesson 6), the Ports (Lesson 8/9), and the Interface Definition (Lesson 10). Now, we instantiate the “wire” that links them. We have two primary ways to do this:</p><ol><li>The Shorthand Connect Statement (Option A): A simple declarative statement (e.g., connect A to B) asserting that two endpoints are linked. By default, this creates a generic binary connection. However, the connect keyword can also be used to instantiate specific connection definitions that carry properties.</li><li>Typed Connections and Interfaces (Option B): We instantiate a connection def or interface def to create a specific connection entity. This enforces strict typing and allows the connection to carry properties (like resistance). An interface is a specific kind of connection where the endpoints must be Ports.</li></ol><h3>Textual Code: Plugging the Car in</h3><p>Let’s bring together the SuperCharger, the ElectricVehicle, and the ChargingCable.</p><pre>package ChargingSystemContext {<br>    import ChargingSystem::*;    // From Lesson 9 (Ports)<br>    import ChargingInterfaces::*; // From Lesson 10 (Cable)<br><br>    // A context to hold the connected parts (e.g., a Charging Station)<br>    part def ChargingStation {<br><br>        // 1. Define the Parts (The Usage)<br>        part charger : SuperCharger;<br>        part myTesla : ElectricVehicle;<br><br>        // 2. The Connection (The Usage)<br>        // We establish the link between the specific ports of these parts.<br><br>        // OPTION A: Simple Connection (Generic)<br>        // This asserts simple connectivity (a generic link) without<br>        // instantiating the specific &#39;ChargingCable&#39; definition.<br>        connect charger.plug to myTesla.socket;<br><br>        // OPTION B1: Typed Interface (Explicit Mapping)<br>        // Here we create a specific usage of &#39;ChargingCable&#39;.<br>        // This enforces properties (like resistance) and strict typing.<br>        interface chargingSession : ChargingCable {<br>            // Use reference subsetting (::&gt;) to map the ends.<br>            // This says: &quot;charger.plug&quot; plays the role of &quot;chargerSide&quot; here.<br>            end chargerSide ::&gt; charger.plug;<br>            end carSide ::&gt; myTesla.socket;<br>        }<br><br>        // OPTION B2: Typed Interface (Shorthand)<br>        // This achieves the exact same result as B1 but in one line.<br>        interface chargingSessionShort : ChargingCable connect charger.plug to myTesla.socket;<br>    }<br>} </pre><h3>Graphical Notation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/0*c5vHhIZHxsBn__Pj" /></figure><h3>Deep Dive: The Semantics of Connection</h3><ol><li>Interface Usage: The code interface chargingSession : ChargingCable creates an Interface Usage (an instance of the definition). It is not just a generic link; it is a structural entity that can have its own internal state exactly as defined in the interface def.</li><li>Dot Notation Navigation: Notice charger.plug. We rely on feature chains (dot notation) to drill down from the parent part (charger) to its port (plug). This allows you to wire up deeply nested subsystems without creating complex “delegation ports” at every single level of the hierarchy.</li><li>Validation: If you try to connect charger.plug to charger.plug, compliant tools may flag a warning/error based on end typing. Why? Because ChargingCable (from Lesson 10)</li><li>Next Lesson: We will look at Item Definitions (Data Flow). We have connected the ports, but what actually flows through the pipe? In v2, we replace “Flow Specifications” with first-class item defs to model fuel, data, and electricity.</li><li>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #SysMLrequires one end to be ~ (conjugated). Two plugs are both unconjugated, so they don’t fit the definition.</li></ol><h3>V1 vs. V2 Cheat Sheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/0*5xg6e67DCYpKQwZ9" /></figure><p>Next Lesson: We will look at Item Definitions (Data Flow). We have connected the ports, but what actually flows through the pipe? In v2, we replace “Flow Specifications” with first-class item defs to model fuel, data, and electricity.</p><p>You may visit <a href="http://www.sysmodeler.ai/">SysModeler.ai</a> for more resources.</p><p>#MBSE #SysMLv2 #SystemsArchitecture #ModelBasedSystemsEngineering #DigitalThread #SysML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ffc9d61b0bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>