Welcome, Guest
Username: Password: Remember me

TOPIC: XML format description

XML format description 9 years 1 day ago #111

  • dhvy
  • dhvy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Dear all,

I want to import a Simulink model into Amalthea as its system model, I believe XML catalog is the way to go but I was unable to get the format description. Where can I find the format of the XML file in which I need to describe my model, can anybody help me point to it?

Thank you in advance
The administrator has disabled public write access.

XML format description 8 years 11 months ago #114

  • hama
  • hama's Avatar
  • OFFLINE
  • AMALTHEA Developer
  • Posts: 15
  • Thank you received: 6
  • Karma: 1
The XSDs are includes in the Eclipse help (as zip archive)
see:
 > AMALTHEA Documentation
    > Developer Guide
      > AMALTHEA Model XSD Schema

I also attached the current definition (Model version 1.3.0) ...

Best regards,
Harald
Attachments:
The administrator has disabled public write access.
The following user(s) said Thank You: dhvy

XML format description 8 years 11 months ago #115

  • dkunz
  • dkunz's Avatar
  • OFFLINE
  • AMALTHEA Developer
  • Posts: 5
  • Thank you received: 3
  • Karma: 0
Hi,
to transform a Simulink model to an AMALTHEA model you can use a model2model transformation if you rely on Java. There are several frameworks available to do this, like Xtend2 or QVTo or ATL.
Then you can use the provided EMF API if you want.
As an alternative you can use the provided XSD Schema.

Regards
Daniel
The administrator has disabled public write access.
The following user(s) said Thank You: dhvy

XML format description 8 years 11 months ago #116

  • dhvy
  • dhvy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi Harald,

Thank you for the quick reply :)
Is this definition specific to Amalthea or its a universal definition?

Best Regards,
Dhvinay
The administrator has disabled public write access.

XML format description 8 years 11 months ago #117

  • dhvy
  • dhvy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi Daniel,

Thank you for the info on available frameworks which I was not aware of and would help I guess :)

Best Regards,
Dhvinay
The administrator has disabled public write access.

XML format description 8 years 11 months ago #118

  • hama
  • hama's Avatar
  • OFFLINE
  • AMALTHEA Developer
  • Posts: 15
  • Thank you received: 6
  • Karma: 1
Hi Dhvinay,

the definition is specific to Amalthea.
It is automatically generated based on the Amalthea Ecore model.

E.g. see the following definition of an enumeration and the included documentation:
  <xsd:simpleType name="SemaphoreAccessEnum">
    <xsd:annotation>
      <xsd:documentation>
	request: requests access to semaphore
	release: release accessed semaphore
	exclusive: gets access to requested semaphore
	only when there is no other user accessing it
      </xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:NCName">
      <xsd:enumeration value="_undefined_"/>
      <xsd:enumeration value="request"/>
      <xsd:enumeration value="exclusive"/>
      <xsd:enumeration value="release"/>
    </xsd:restriction>
  </xsd:simpleType>

Best regards,
Harald
The administrator has disabled public write access.
The following user(s) said Thank You: dhvy

XML format description 8 years 11 months ago #119

  • dhvy
  • dhvy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi Harald,

Is there any other alternative universal standard XML formats that I can import in Amalthea?

Best Regards,
Dhvinay
The administrator has disabled public write access.

XML format description 8 years 11 months ago #124

  • dkunz
  • dkunz's Avatar
  • OFFLINE
  • AMALTHEA Developer
  • Posts: 5
  • Thank you received: 3
  • Karma: 0
Hi,
currently no.
As AMALTHEA is based on Eclipse, you can work in Eclipse with all supported formats corresponding to the Plugins you have installed.
Also you can write custom importers or transformations if you want as I already wrote.

Regards
Daniel
The administrator has disabled public write access.
Time to create page: 0.076 seconds