[Contents] [TitleIndex] [WordIndex

Weekly report, 11 June 2010

During past week I have:

  1. Extended capabilities of compatibility patterns:

Added realParameterType (state, dstate, odstate, rpar, etc):

<xsd:complexType name="RealParameters">
    <xsd:element name="parMap" type="IntegerValueMap" minOccurs="1" maxOccurs="unbounded"/>
    <xsd:attribute name="sim" type="xsd:string" use="optional"/>
    <xsd:attribute name="xcos" type="xsd:string" use="required"/>
    <xsd:attribute name="description" type="xsd:string" use="optional"/>

<xsd:complexType name="RealValueMap">
    <xsd:attribute name="simName" type="xsd:string" use="required"/>
    <xsd:attribute name="xcosIndex" type="xsd:integer" use="required"/>

/!\ ClementDavid: maybe "map" can be used instead of "parMap", "name" instead of "simName" and "index" instead of "xcosIndex". /!\ ClementDavid: maybe prefer a matrix index notation for indexes ; "1,1" for example.

Example usage for CLSS block:

<real xcos="rpar">
        <parMap simName="A" xcosVal="1"/>
        <parMap simName="B" xcosVal="2"/>
        <parMap simName="C" xcosVal="3"/>
        <parMap simName="D" xcosVal="4"/>

this will fill rpar in following way: rpar = [A;B;C;D]

<real xcos="state">
        <parMap simName="InitialState" xcosVal="1"/>

this will fill state in following way: state = InitialState 

Adding similar type for integer and object parameters sounds like a good plan (ipar, opar) This will make easier to translate all above mentioned parameters.

  1. Rethought and rewritten patternElement initialization. Now patternElement is initialized for each particular block. That should speed up translation process.
  2. Added handling for nzcross, blocktype, FunctionType, FunctionName parameters translation

  3. Added diagram creation for imported SimulinkModel (still isn't quite working, I have had less time during weekend then I thought)

I get following errors, when I'm trying to add blocks with default parameters values: {{{ Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SVGOMDocument }}}

for more details about error try to import:
CLSS.mdl, with state space block only.

Next week goals are:

  1. Add and test state, dstate, odstate, rpar ipar, opar decode functions in PatternElement

  2. Maybe this week it will be possible to translate first diagram?
  3. Correct all previous unmerged commits

/!\ ClementDavid: correct previous commits may be the 1st priority

2022-09-08 09:26