openenergysolutions / openfmb.adapters

OpenFMB Adapters
Apache License 2.0
3 stars 1 forks source link

GOOSE quality mappings #62

Closed emgre closed 5 years ago

emgre commented 5 years ago

Closes #57.

gooseStructure:  # GOOSE structure definition
  - bitstring: "A.q"
  - utc_time: "A.t"
  - bitstring: "A.tq"
quality-templates:  # Quality templates
  - template-id: default-quality  # unique id
    validity: ValidityKind_good  # {ValidityKind_good, ValidityKind_invalid, ValidityKind_reserved, ValidityKind_questionable}
    overflow: false
    out_of_range: false
    bad_reference: false
    oscillatory: false
    failure: false
    old_data: false
    inconsistent: false
    inaccurate: false
    source: SourceKind_process  # {SourceKind_process, SourceKind_substituted}
    test: false
    operator_blocked: false
time-quality-templates:  # Time quality templates
  - template-id: default-time-quality  # unique id
    clock_failure: false
    clock_not_synchronized: false
    leap_seconds_known: false
    time_accuracy: TimeAccuracyKind_T0  # {TimeAccuracyKind_UNDEFINED, TimeAccuracyKind_T0, TimeAccuracyKind_T1, TimeAccuracyKind_T2, TimeAccuracyKind_T3, TimeAccuracyKind_T4, TimeAccuracyKind_T5, TimeAccuracyKind_unspecified}

[...]

        A:
          net:
            cVal:
            q:
              quality-field-type: mapped
              name: "A.q"
              quality-mapping-type: copy
              template-id: default-quality
            t:
              timestamp-field-type: mapped
              name: "A.t"

              time-quality-name: "A.tq"
              quality-mapping-type: constant
              template-id: default-time-quality
larrylackey commented 5 years ago

My understanding is TimeAccuracyKind is a 5 bit integer 0..31 for the values below, where for example the enum T0 has the integer value of 7

On Wednesday, August 14, 2019, 11:00:14 AM MDT, Émile Grégoire <notifications@github.com> wrote:  

Closes #57. gooseStructure: # GOOSE structure definition

[...]

    A:
      net:
        cVal:
        q:
          quality-field-type: mapped
          name: "A.q"
          quality-mapping-type: copy
          template-id: default-quality
        t:
          timestamp-field-type: mapped
          name: "A.t"

          time-quality-name: "A.tq"
          quality-mapping-type: constant
          template-id: default-time-quality

You can view, comment on, or merge this pull request online at:

  https://github.com/openenergysolutions/openfmb.adapters/pull/62

Commit Summary

File Changes

Patch Links:

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

emgre commented 5 years ago

Good, I added it.

jadamcrain commented 5 years ago

@emgre Need to rebase. Same thing, need the determinism.

emgre commented 5 years ago

Done.