riseclipse / riseclipse-validator-scl2003

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

Incorrect error of NSD validation with presence condition "AllOnlyOneGroup" #149

Closed ADehouck closed 5 months ago

ADehouck commented 5 months ago

This file, raises these errors : NSD_example.zip

ERROR: [NSD/Validation/DataObject] group 1 has neither none nor all elements in LNodeType with LNClass DVAR in namespace "IEC 61850-7-420:2019A" (expected members: "VArTgtSpt" "VVArCrv") at line 65
ERROR: [NSD/Validation/DataObject] no group in LNodeType with LNClass "DVAR" has all elements in namespace "IEC 61850-7-420:2019A" at line 65
ERROR: [NSD/Validation/DataObject] no group in LNodeType with LNClass "DVVR" has all elements in namespace "IEC 61850-7-420:2019A" at line 49

whereas the NSD file of -7-420 does not define this:

`

    <LNClass name="DVVR" titleID="IEC61850_7_420.ReactivePowerLNs::DVVR.cl.title" base="ReactivePowerLN">
        <DataObject name="VRefEsp" type="MV" descID="IEC61850_7_420.ReactivePowerLNs::DVVR.VRefEsp.desc" presCond="M" dsPresCond="O"/>
        <DataObject name="VRefSpt" type="APC" descID="IEC61850_7_420.ReactivePowerLNs::DVVR.VRefSpt.desc" presCond="O" dsPresCond="O"/>
        <DataObject name="VVArCrv" type="CSG" descID="IEC61850_7_420.ReactivePowerLNs::DVVR.VVArCrv.desc" presCond="AllOnlyOneGroup" presCondArgs="1" dsPresCond="F"/>
        <DataObject name="VRefAdjEna" type="SPG" descID="IEC61850_7_420.ReactivePowerLNs::DVVR.VRefAdjEna.desc" presCond="O" dsPresCond="F"/>
        <DataObject name="VRefTmms" type="ING" descID="IEC61850_7_420.ReactivePowerLNs::DVVR.VRefTmms.desc" presCond="O" dsPresCond="F"/>
        <DataObject name="VRefOfs" type="ASG" descID="IEC61850_7_420.ReactivePowerLNs::DVVR.VRefOfs.desc" presCond="O" dsPresCond="F"/>
        <DataObject name="VVArCrvDel" type="CSG" descID="IEC61850_7_420.ReactivePowerLNs::DVVR.VVArCrvDel.desc" presCond="AllOnlyOneGroup" presCondArgs="2" dsPresCond="F"/>
        <DataObject name="VRefPct" type="ASG" descID="IEC61850_7_420.ReactivePowerLNs::DVVR.VRefPct.desc" presCond="O" dsPresCond="F"/>
    </LNClass>

    <AbstractLNClass name="ReactivePowerLN" titleID="IEC61850_7_420.AbstractLNs7_420GridCodeModes::ReactivePowerLN.cl.title" base="RampRatesLN">
        <DataObject name="ReqVAr" type="MV" descID="IEC61850_7_420.AbstractLNs7_420GridCodeModes::ReactivePowerLN.ReqVAr.desc" presCond="M" dsPresCond="O"/>
        <DataObject name="VArTgtSpt" type="APC" descID="IEC61850_7_420.AbstractLNs7_420GridCodeModes::ReactivePowerLN.VArTgtSpt.desc" presCond="AllOnlyOneGroup" presCondArgs="1" dsPresCond="O"/>
        <DataObject name="VArTgtSptPct" type="APC" descID="IEC61850_7_420.AbstractLNs7_420GridCodeModes::ReactivePowerLN.VArTgtSptPct.desc" presCond="AllOnlyOneGroup" presCondArgs="2" dsPresCond="O"/>
        <DataObject name="VArSptRef" type="ENG" underlyingType="ReactivePowerRefParamKind" descID="IEC61850_7_420.AbstractLNs7_420GridCodeModes::ReactivePowerLN.VArSptRef.desc" presCond="O" dsPresCond="F"/>
        <DataObject name="VArAct" type="SPG" descID="IEC61850_7_420.AbstractLNs7_420GridCodeModes::ReactivePowerLN.VArAct.desc" presCond="O" dsPresCond="F"/>
    </AbstractLNClass>

`

create-issue-branch[bot] commented 5 months ago

Branch issue-149-Incorrect_error_of_NSD_validation_with_presence_condition_AllOnlyOneGroup created!