webgme / cyphy

[NOT MAINTAINED] CyPhy customization of WebGME
Other
3 stars 12 forks source link

AdmComparer #2

Open pmeijer opened 10 years ago

pmeijer commented 10 years ago

Purpose

In WebCyPhy it will be important to identify changes in a design-space (can be described using the adm-format) when storing configurations and results.

Attributes and Containment

Containers

Starting from the RootContainer, all Containers must have the same Name and xsi:type (Compound, Alternative or Optional). Further they must have matching Containers, ComponentInstances, Properties, Connectors and Formulas.

Attributes:

Containment:

Attributes:

Containment:

Attributes:

More details on the Values will come..

Connectors

Attributes:

Containment:

The attribute xsi:type determines if the formula is a SimpleFormula or CustomFormula.

SimpleFormulas

Attributes:

It probably will suffice to compare the Expression. Attributes:

Containment:

For now make sure they are the same number. ValueExpressions will come..

ConnectorInstances

For now make sure they are the same number. ConnectorComposition will come..

Roles

Roles correspond to DomainConnectors inside Connectors.

The attribute xmlns:q1 determines if the port is a modelica- or cad-port. (A perhaps better way to check the category is to see if the Role has the attribute Class.)

Modelica

Attributes:

Attributes: