modelling interfaces between applications in archimate and visual paradigm - visual-paradigm

I am evaluating VisualParadigm 14.1 currently.
What is the easiest (but semantically correct) way to model the following in VP 14.1
"Application A" sends "Data D" via "Interface I" to "Application B"
using these archimate model elements:
Background: I have that information (applications, interfaces and data) in Excel and want to use VP to draw the diagrams (and eventually host the model). As long as Excel is the primary source for me I have to go for Excel import/export ...
Please note that I am new to Archimate and VP (but not to modelling).
Edit: additional info: I used the proposed connections from the diagram, but I can draw a "usedBy" link between two components. I can call it by the data that flows. But is this semantically correct in archimate ?

You may consider to model in the following way:
Explanation:
"Application A" having a provided interface "Interface I"
Connect "Interface I" to "Application B" using Flow relationship
Connect "Data D" to the flow between "Interface I" and "Application B" using Association
BTW, Visual Paradigm support import models from Excel. You may transform the model in your Excel to fit into VP's format to perform the import. The most easy way to understand VP's Excel format is create several sample models and export it into Excel. You can then follow the format in exported Excel to fill in your model data and import them back. An example of importing SysML requirement models using Excel can be found at https://knowhow.visual-paradigm.com/uncategorized/importing-models-through-excel-file/ and this should give you idea about how it works.

According to specification you should use instead of FLOW connector right SERVES connector.
But I who cares about semantics correct FLOW is better to understand for everyone.

Related

What is different meaning of source and code in programming?

Excerpt From: Robert C. Martin. “Clean Architecture: A Craftsman's Guide to Software Structure and Design (Robert C. Martin Series).”
“Now, what do we mean by the word “module”? The simplest definition is just a source file. Most of the time that definition works fine. Some languages and development environments, though, don’t use source files to contain their code. In those cases a module is just a cohesive set of functions and data structures.”
I got confused about "source" and "code" here. What does him meaning when he wrote "don’t use source files to contain their code"?
Thanks your explains.
"code" can be any statement or expression. "Source code" and "code" can be used interchangeably.
A file system file (ie. helloworld.c) can contain any number of statements. However, some development environments do not use files to store their code. Conceptually it could be just on the web and stored in a database, or the code could be in-memory only, and so not in a file.
In this particular passage, Mr. Martin (also known as Uncle Bob) is trying to illustrate that a module can mean different things depending upon the language or development environment. It is better to concentrate on the last line you quoted: a module is just a cohesive set of functions and data structures. as this is a sufficient definition without getting confused about the storage location of the code.

Step by step developing AUTOSAR's Software Component

I'm a new learner about the AUTOSAR and already understand about summary of AUTOSAR Architecture. I have read AUTOSAR_TR_Methodology.pdf as my starting point to developing AUTOSAR's sofware components (SWC). For another information, I should get the "system extract" from the main organization and I will add my SWC into it. In that document, the task that I have to do to develop SWC described one by one as a whole process, but not in sequence. So my question is, after I got the system extract what the task that required to do to make SWCs? It will be great if the tools is mentioned.
The system extract usually contains software-components, albeit usually in form of so called compositions (in AUTOSAR lingo: CompositionSwComponentType). These compositions come with defined PortPrototypes which in turn are typed by PortInterfaces.
The task of the designer of an application software-component (technically speaking: an ApplicationSwComponentType) is to connect to the PortPrototypes define on the composition level and then specify the internal behavior (SwcInternalBehavior) that formally defines the internal structure of a software-component. On this basis the function of the software-component can be implemented.
A software-component itself consists of the formal specification (serialized in the ARXML format) and the corresponding C code that implements the actual function of the software-component.
There are tons of tools out there to develop AUTOSAR software-components. Most of these are commercial, and require a license. On top of that, the toolchain to be applied for a given project is in many cases predefined and you may not be able to select your tools freely.
If you seriously want to dive into AUTOSAR I'd strongly advise taking a class offered by the various tool vendors, preferably a class held by the tool vendor selected for a given actual ECU project.

Generating SQL from UML models?

How do I properly generate SQL from a UML data model?
Attempt with ArgoUML
I have tried using "ArgoUML"; and the custom version of ArgoUML called "DB_UML".
DB_UML generates SQL files with this content, for example; from: Books.xmi:
Generate source failure. Database factory class {0} cannot be found.
ArgoUML gives me no error, and additionally doesn't produce anything. Maybe you can give me a sample working schema file?
Attempt with Enterprise Architect
Generated okay, but the association class was not generated anywhere.
Happy to use any other software on any platform which supports Oracle; as long as I can get this UML->SQL functionality working.
GenMyModel http://www.genmymodel.com/ is now providing an online UML to SQL generator.

Changing VB.NET code programmatically

I want to open an existing VB class file, add a few properties and close it again.
Simple enough, I thought: Take the CodeDom, a VBCodeProvider, parse the code (using the Parse-method), then identify the location where I want my stuff added (doubtless using some nifty LINQ expressions), add a bit of code and then have it generated and here we go.
Now I see that Microsoft apparently added the Parse method only for the fun of it but never implemented it.
What's the story here? Can I only generate code from scratch? Is it not possible to load existing code?
Does anyone know of any solutions?
You say "class files" and then you say "parse". I think you meant "parse and modify".
Our DMS Software Reengineering Toolkit with its Visual Basic Front End can do what you need on VB.net source code files.
DMS provides general parsing, AST-building, generic analysis and AST transformations, and is able to regenerate source text in compilable form. The Visual Basic Front End enables DMS to process VB.net, VBScript or VB6 and carry out any of these activities.
DMS's Source-to-Source transformations can be used to make changes using "if-you-see-this, replace-it-by-that" patterns.

Integrate JET Templates to an EMF-GMF plugin

I created an plugin that lets me model JSF Applications. I created it using Emfatic, Ecore, EMF, GMF.
So now i have 5 projects in my workspace:
myapp
myapp.diagram
myapp.edit
myapp.editor
myapp.tests
If i run myapp as a Eclipse Application i can draw/design a .myapp_diagram based on the meta-model.
Now I want to know how can i integrate JET Templates with what i have here.
I have the diagram, i know how to build JET Templates, i just want to know how can i feed the diagram as input to the JET temples so that code will be generated.
What i have done until now is convert the "myapp" project to JET Project and wrote the template files. But if i now run "myapp" and draw a diagram, theres nowhere a GENERATE CODE button/option.
Unfortunately none of the Eclipse-based modelling projects provide a "generate code" button. There are a wide range of possible model sources and code generation platforms (JET, OAW, Xpand), so you will have to implement the button and the relevant source code yourself. However, the process is fairly straightforward.
One approach is to implement an org.eclipse.ui.popupMenus extension point, which then calls the Java class necessary to generate the code.
As an example, you can check out the plugin.xml used in the IAML project to generate PHP/Javascript source code, using openArchitectureWare (OAW) templates. The relevant Eclipse Action is GenerateCodeAction - check out the method doExecute(). Hope this helps :)