Skip to content

Commit

Permalink
Added example about using a subject in a requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Weilkiti committed Jan 16, 2025
1 parent 6d947c5 commit 47aa0e9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Functions/Integration/ExampleRequirementSubject.sysml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

package VacuumCleanerSystem {
package BaseArchitecture {
part def Battery {
attribute capacity;
}

part def VacuumCleaner {
part battery : Battery;
}
}

package Requirements {
requirement <REQ1> operationTime {
subject vc : BaseArchitecture::Battery;
require constraint {
vc.capacity >= 42
}
}
}

package ProductArchitecture {

part def RoboticVacuumCleaner :> BaseArchitecture::VacuumCleaner {
part chassis;
part :>> battery {
attribute :>> capacity = 50;
}
}

satisfy Requirements::REQ1 by RoboticVacuumCleaner::battery;
}
}

0 comments on commit 47aa0e9

Please sign in to comment.