Subject: [eman] Framework psudo code

From: Brad Schoening <[email-masked]>
Date: Mon, 28 Oct 2013 02:47:46 +0000

Dear all,

I'm wondering if the pseudo code in the framework could be more clearly represented using a tabular format similar to what the IEC, DMTF and Ecma-400 use for their CIM objects.  Consider an example:

Our pseudo code:

        CLASS Measurement {
              multiplier: enum { -24..24}
              caliber   : enum { actual, estimated, static }
              accuracy  : enum { 0..10000} // hundreds of percent
        }

Re-written in a tabular format:

1.0 Measurement Class
Properties

Description

Type

Get/Set

Requirement

Multiplier

Base 10 exponent

Enum

G

Mandatory

Caliber

Actual, estimate, or static

Enum

G

Optional

Accuracy

Hundredths of percent

Enum

G

Optional

Below is a sample class definition taken from IEC-61850.  Also, note the use of object-oriented class inheritance in the IEC model representation and use of attribute protocols for 'descriptions', 'controls' and 'settings':