instanceenterprise-architectsysml

SysML instance vs. class


I'm a bit confused about the concept of blocks in SysML.

From UML I understand that there is a distinction between classes and instances/objects like in OOP.

However, I'm not sure how this is implemented in SysML. My questions:

Thank you for your hints.


Solution

  • There is no difference between SysML and UML instances. In both cases an instance is shown with and underlined name. So what you see as blocks in SysML are simple stereotyped classes in UML. If you instantiate a block (in EA ctrl-drag it onto a diagram and select Instance) you get a concrete block. E.g. a block Car being instantiated becomes MyMercedes:Car (on the diagram showing with underlined text).

    If you want to show real card readers, you create multiple instances. If you have different types of card readers you create different blocks which e.g. inherit from a basic card reader (there are different ways here).

    Your last bullet point is too broad. Read the manual and look into Sparx' forum if you run into trouble (or ask here).