in this video we're going to be reviewing the CML diagrams we have nine different types of cisl diagrams that you see here as well as some of the other different types of diagrams that are available out of the box with Cameo so Cameo is going to be our software or tool while system L systems modeling language is the language this Mo this video is meant for users who are new to the language and just trying to review different diagrams so we'll first start with the structural diagrams we have four different structural diagrams the block definition
diagram the internal block diagram the package diagram and the parametric diagram the parametric diagram is a special type of internal block diagram what we're actually looking at right now is a bdd or a block definition diagram so this is the diagram frame this top thing is the diagram header bdd is the the Shand for Block definition diagram each of the different diagram types are going to have a shorthand so internal block diagram it's going to be IBD Etc so what we'll look at is the block definition diagram you can read a little bit about it
right here the block is the most modular unit of structure the block definition diagram is how you can either decompose the model or you can create a taxonomy using the generalization relationship so first we'll look at decomposition we got our hot air balloon you can read a little bit about decomposition here and we got the parts of our hot air balloon the burger system the basket and the parachute so this right here is our directed composition relationship so has a Clos ended black diamond on the parent side and then an arrow on the child's side
hot air balloon is the parent burner system is going to be the child now we'll talk about the generalization relationship it's uh it's inher itance so basically a dog is a type of pet uh visible light is a type of light and distance and feet is a type of real number so we've got different elements here block signal value type that we can all see on our block definition diagram but uh this is going to show us how different elements de or uh will classify so visible light and ultraviolet light are going to be a
class underneath light so I can go into to my specification and look and see that its space classifier is going to be light and if I go into light I can see that the specific classifiers are going to be ultraviolet and visible light all right so now we'll jump into the internal block diagram this is a type of structural diagram and it's going to you can read about the internal block diagram here the purpose of the internal block diagram is to show the relationships between the parts so it's going to look similar to an electrical
schematic in a way uh you'll have these lines that the connectors and you've got your ports they can be proxy or full ports and you've got the item flows that are going across the connectors and these are the part properties that you're seeing here so our context is this toaster we have power coming into the toaster and then we've got Heat going out of the toaster to toast the toast or toast the bread so moving on to the next one which is our package diagram so the package diagram is going to show you how the
model is decomposed or how it is laid out while the block definition diagram is talking about how the system of Interest is broken down or uh decomposed so if we look at the package diagram you'll be able to see the package diagram is going to correlate with the containment tree that you see here on the left so and you'll be able to say that this package is able to access specific elements or specific uh packages with the via the access linkage you can also do Imports Etc so the package diagram is not used all that
frequently because the containment tree is so helpful um it's not necessary but we do use the package diagram sometimes as a navigation page so you can jump from uh basically your home navigation page to some of the frequently you know access diagrams that you might want to look at and you can have it in this applet View you can also have it in this uh this view right here which is going to be like a list view these are also clickable so I can click here and it it take me to the glossery table so
now we'll talk about the parametric diagram which is a special type of internal block diagram remember our internal block diagram is talking about the interconnections between Parts parametric is going to be adding math into that equation so we have the the constraint block or the usage of the constraint Block in the parametric diagram so we'll look at that right now you can see it kind of looks the same you can show par properties in the parametric diagram there's nothing wrong with that um this purple rectangle is the usage of the constraint block and we have
a value property which is in pink and another value property which is in pink so you would have your input you say your number of magazines and it would go in and be able to compute the weight time so I'll just run that super quickly so if I have number magazines as six you're going to be waiting 14.2 minutes um and that's that's really about it the the block which you're running in simulation is going to be the doctor's waiting room block and uh yes it's going to be able to evaluate your constraints now jumping
back we're going to go to the behavioral diagrams we have four different types of Behavioral diagrams we have the activity diagram the sequence diagram the state machine diagram and the use case diagram so our activity diagram is going to be our most most versatile diagram type for the behavioral diagrams so if you don't know uh which one to use then you'll probably want to fall back on using the activity diagram and so this is your activity diagram you we have the uh decision node right there we have our merge node right there um we have
nested activities within activities so this little Fork right here is going to allow me to jump over to to this um if I like double click so I'll Zoom back out if I run this you'll see how it works in simulation so it'll ask me a question my low on fuel no is the race complete no and then it'll go in here and run that and then it'll come by again if I'm low on fuel it'll go get fuel no it'll say the race is complete and then it's over so that's some of our basic
logic we also have this fork and join nodes these are going to allow you to do uh parallel flows so there was only one token that you saw there when we ran this the token is that uh um Red Dot that you see jumping around um and so what happens is if you were to go to the join you're going to actually multiply the amount of tokens that you have from having one token to having multiple tokens so um we'll we'll show that right now so your token goes from one token to two tokens and
then the join is going to bring you back from uh two tokens back to one token so I could even add in another action here and maybe that would make it a little bit more clear so there you go all right we'll now look at our sequence diagram the sequence diagram is going to be one trace or one scenario it's not going to allow you to do all of the different scenarios at once like the activity diagram what I mean by that is um the activity diagram is giving you options it's saying you know do
you is the race complete or you or are you low on fuel yes no and it will uh follow that logic and get to the end uh the sequence diagram has only one scenario at a time and so it's going to have these are lifelines that you see on the top time is going on as you go from top to the bottom so the items which occur on the top are going to happen first so one 2 3 4 5 Etc uh we've got just like a time constraint here and uh messages to self there's
different types of messages there's uh asynchronous and synchronous messages the asynchronous message is going to be the open ended arrow that you see here and the synchronous messages are going to be the Clos ended Arrow which uh I guess you would see here but uh let me just go into specification you'll be able to see it so when it's uh open it's asynchronous if I change to synchronous you'll see that the message changes to a solid Arrow Head uh and that means that there's going to be a reply um a reply message is going to
look like this a dotted line and so for every single synchronous message you're going to have a dotted line reply message to show that um that secretest message is complete I'm not really showing that here you don't have to to actually show the reply message in the sequence diagram I do think it's good practice to do that but you don't have to um so that's the sequence diagram the state machine diagram is you can read a little bit about the state machine here make it a little bit bigger and we can run this in simulation
and it's going to ask us questions actually what I'm going to do is run it with context so it's going to run it with the uh Associated State machine diagram block which has this value property of x um you don't have to know all that but it's going to make the simulation work so that the x value iterates accordingly once it iterates accordingly um we can send signals so signal one and it will go over and we can have entry due and exit criteria for each of the different states and we can send different signals
to um change our x value or change States Etc so you've got uh for more details about the sequence diagram watch our sequence diagram video we're not going to go into the details of the sequence diagram at this time time the last one is the use case diagram this is an example of a use case diagram the surveillance system H is the system of interest in this case and we have these are our use cases these uh ovals and they're always going to be a verb noun phrase um you try to keep the amount of
use cases from between about two to about 10 use cases any more than that it gets unwieldly any less than that you need to think a little bit more about the the use of your um system of Interest so and you can jump from you know initialized system into either sequence diagram or an activity diagram uh that is totally appropriate this diagram type is going to uh only be useful at the very beginning of your program when you and your stakeholders are sitting there trying to determine what your system of interest is supposed to do
versus what are the external actors and how is your system of Interest going to uh communicate with those external actors so it's quite um often that you would create an IBD after creating this uh initial use case diagram the internal block diagram would be the surveillance system and then you would have um your actors designated with blocks and then you'd be able to describe the exact item flows that are going out of your system of interest to and from the external actors it will be kind of similar to an ov1 so that is all of
our behavioral diagrams now we'll look at the requirement diagram just like the use case diagram this requirement diagram is only useful at the very beginning of your project when you only have a couple of requirements so you'll have user needs um and it's at the very beginning of your like irad for example and you're going to be talking with the stakeholder and trying to write down uh all of the things that the stakeholder wants and then that will quickly tree out into a whole multitude of requirements that are going to be derived from let's just
say these this set of four requirements um and then once you get to a amount of requirements that like over 15 or 20 it doesn't make sense to have them in a requirements diagram it's often that you would put them in a table so we can talk about tables now that's perfect segue so there's many different types of tables and uh the one that we were just talking about is is the requirement table so the requirement table is a special type of generic table which is a type of table so the requirement table this is
how to tabulate the um requirement diagram that we saw before and this is a much better way to use it uh or look at requirements uh rather than the diagram once you have a bunch of them our example only has four so um our our generic table this is uh if you're just trying to make anything that you'd like um you can put any amount of columns that you can think of you can create custom columns and um you can do a lot of stuff with this generic table pretty much anything any relationship that is
in the model you can show it on these tables and you can scope the uh where you're looking for elements what type of element you're looking for like right now we're just looking for the activity diagram to start with and then we're looking at all of the nodes that are associated with that activity um again you could do anything super flexible the blackbox ICD table and white box ICD table we're going to go back to our toaster example so our black box is going to show us you know what are the items that flow into
and out of the toaster for from a black box perspective and if I go back to our white box this this is going to be all of the items which are going to flow inside of the toaster the context is the toaster and U yeah that's what we have and these two are available out of the box with Cameo and so all you have to do super easy there's no setup you just drag your toaster from your containment tree onto this location right here and you're done so Cameo is making it very easy for you
the next type of table is the glossery table this is a very helpful table because it has this underline feature which is available to you anywhere in the model so if I add a new term such as like frog and then I'll just say animal that jumps and then I can go into any diagram anywhere and type in frog and I will be able to like highlight over it and it will give me the description of that table or of that uh term and I can click right there and it will take me to it
so again very very helpful and it doesn't have to be in text it can be like a block itself it's called frog and uh you'll see it works very very cool so you can do do that I suggest making an acronym table and uh using that so the metrics table this table is it's kind of like the package diagram where the package diagram is talking about how the model it's formed not the system of Interest this metric table is talking about how complete the model is not how not anything about the actual system of Interest
so what it's going to be doing is um taking I've got several different snapshots at different dates and times and it it's going to just do a count of how many elements there were and um if I had filled this out you you can uh just evaluate metrics it will tell you you know what percentage of requirements have been satisfied uh how many requirements are there so it can show you over time you know I've got 20 requ requirements and 15 of them have been satisfied so it would show me 75% over here and then
I would have the verification as well how many uh requirements have been verified it would give me a percentage there and then if you take enough of these snapshots over time you'll be able to make a graph and and show you know how close you are to completing the model and how fast you are modeling and all of those programmatic things that you know you're your lead is going to care about I will caveat this with it's super easy to cheat it so um if if the modeler knows he's being tracked he can easily massage
these numbers to make them look good so just know that uh the instance table is the last type of table that we have to talk about and so instances we haven't talked about them they are essentially snapshots in time um I've kind of used it in this example uh we've got our Domino's different types of pizzas and it's going to allow you to to make um different types of pizzas um because I've I've got the taxonomy in the background and you can I I basically have copied the Domino's Pizza Tracker so you can you know
create your own configuration here um and so this instance is like I said a snap shot in time um you'll have to look at other videos for more definitions on instances but um we're just going to leave it here the instance table is just a way to show your instances all right then we have the dependency Matrix the dependency Matrix there are this abstract one which is um this is kind of similar to the generic table for t for tables um and then we have all these specific ones that are available out of the box
for you uh to use so it's they're easier to use less uh configurable but this Matrix um we've got all the uml types of diagrams on the left and all of the cstl diagrams on the top and we've kind of we've created an association between the two um and this is just kind of to help somebody new um to CML maybe like you understand how the uml diagrams map to the cstl diagrams so in in most cases like you would have um your system of Interest here and the different parts on one side and maybe
the activities on the other and you would allocate them so you would connect the behaviors to the structure via the allocation relationship so you can change the relationship type from Association to any of this any of these from this list um there's a ton of different types of relationships that are available to you you can also create like uh directed composition relationships or generalization relationships just by um changing the dependency to generalization and then just by to create a relationship you just double click here and then you say create and that will create the relationship
so it's very uh good for a gap analysis um you can you can show only the uh columns or just the ones with relations um and or you can show them all so this is very good for like Gap analysis uh we have the derive Rel or requirement Matrix so again this is just a special type of uh you know generic Matrix but um most of these have been filled out for you already um it's going to be derived it has a special like icon that goes with it and then um you know you have
your user needs and then your your more detailed um requirements and you have your derived relationship here so we're not going to go through all the other different types of specific matrices that exist but you can just go here and type in Matrix and you'll see that they each have their own special little icon um and that that's pretty much it so next we have the maps so we have the generic relationship map and so this all I did here was I I'm showing just relationship the generalization relationship and so the Syl diagram it's going
down and there's three different types of specific classifiers to the C cstl diagram so if I go to my specification see specific classifiers got three of them and one two three right there and so that's what I'm doing um with my relation criteria I can change the amount of dep it goes into and um I can show I can show it in all sorts of different ways you can like make it radial instead of the tree I prefer the tree in most cases but um there's a lot of different uh things you can do with
that we also have an instance map which again is just a specific type of map that makes it super easy so all I did was I dragged my instance tables package onto this uh um map and it automatically is showing me all of the different instances that have been created within my containment tree and just like the matrices there's a lot of different other types of maps that are available out of the box but uh I think you understand last lastly we have the simulation configuration diagram and this is an example of what one of
those looks like when you create one of these the whole purpose is to run it in simulation so um we ran the state machine diagram earlier and let's say that we wanted to run it and be able to plot the X variable as it changed over time we also wanted to automatically create a sequence diagram from the um State machine diagram so we've got this Auto sequence diagram uh action and so when we create this simulation configuration it actually puts it up here in the toolbar so if I change this guy's name you'll see that
it changes up here and I can just push play I've I've basically just dragged State machine diagram from the containment tree onto here and I've created my timeline chart um and when I run it you'll see that uh it's doing my x value over time if I put this over to the side it's doing my auto sequence diagram generation uh we'll try to switch back to the state machine diagram that's being run so now I can if I use signal three so I'll go over here to Delta and you see that the user um sends
the signal one it goes to the Delta Echo State and the value of x remains constant at this point so if I go back using signal 3 you see that x = x -1 so I'm going to do that and you see that X went down and uh yeah you can graph things you can show the state in a state chart if you'd like there's a lot of options here with your simulation configuration so with that that is all the different diagrams that are available to you out of the box with Cameo and when I
say Cameo I mean c Cameo Enterprise architecture or Cameo systems modeler that is the software or tool and then are nine different types of systemml diagrams are block definition diagram internal block diagram package diagram parametric diagram requirement diagram activity diagram sequence diagram State machine diagram and use case diagram hope this overview helped