list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

Sorting Requirements

Requirements can be sorted by ID using the suboption 'reqSortID' and Statement by using the suboption 'reqSortStat'.

The default is to sort by ID when no suboption is provided.


Additionally there is also a suboption 'reqHideNotImpl' to filter out the not implemented requirements.


Example Showing Sorting by ID

// This is an example to use reqSortID to sort requirements by thier ID.
suboption "reqSortID";
req A01 {    
  b requirement.
 }
req Z01 {    
  a requirement.
 }
implementsReq Z01;
class Example { 
  implementsReq A01; 
  var1;
 } 

      

Load the above code into UmpleOnline

 

Example Showing Sorting by Statement

// This is an example to use reqSortID to sort requirements by thier Statement.
suboption "reqSortStat";
req A01 {    
  b requirement.
}
req Z01 {    
  a requirement.
}
implementsReq Z01;
class Example { 
  implementsReq A01; 
  var1;
 } 

      

Load the above code into UmpleOnline

 

Example Showing Filtering of not implemented requirements

// This is an example to show how not implemented requirements can be hidden
suboption "reqHideNotImpl";
req B01 {      
  b is a requirement.
}    
req A02 {    
  a is a requirement.
}  
class Example1 {  
  implementsReq A02;
  var1;
 }  
     

      

Load the above code into UmpleOnline