riseclipse / riseclipse-validator-scl2003

https://riseclipse.github.io
Eclipse Public License 2.0
1 stars 1 forks source link

New NSD check : "count" attribute in DOType.SDO or DOType.DA is only allowed if it is an ARRAY type (isArray="true" in NSD) #153

Closed ADehouck closed 2 months ago

ADehouck commented 5 months ago

Some SubDataObjects or Data attributes can be "arrays"

The NSD validation could check that DOType.SDO or DOType.DA have a "count" attribute, only for SDO or DA that are allowed to be arrays, as defined in NSD 61850-7-3:

image

image

Example of array and "count" attribute in DataTypeTemplate:

image

ADehouck commented 2 months ago

This check should be updated,

because "count=0" is equivalent to "count" attribute absent,

The NSD validation could check that DOType.SDO or DOType.DA have a "count" attribute different of zero, only for SDO or DA that are allowed to be arrays, as defined in NSD 61850-7-3