/** * \brief create a new data attribute and add it to a parent model node * * The parent model node has to be of type LogicalNode or DataObject * * \param name the name of the data attribute (e.g. "stVal") * \param parent the parent model node * \param type the type of the data attribute (CONSTRUCTED if the type contains sub data attributes) * \param fc the functional constraint (FC) of the data attribte * \param triggerOptions the trigger options (dupd, dchg, qchg) that cause an event notification * \param arrayElements the number of array elements if the data attribute is an array or 0 * \param sAddr an optional short address * * \return the newly create DataAttribute instance */ public DataAttribute(string name, ModelNode parentNode, DataAttributeType type, FunctionalConstraint fc, byte triggerOptions, int arrayElements, uint sAddr) { self = DataAttribute_create(name, parentNode.GetLibraryObject(), (int)type, (int)fc, triggerOptions, arrayElements, sAddr); daType = type; daFc = fc; }
public SettingGroupControlBlock(ModelNode parentNode, byte actSG, byte numOfSGs) { self = SettingGroupControlBlock_create(parentNode.GetLibraryObject(), actSG, numOfSGs); }
public static DataObject CDC_ENG(string dataObjectName, ModelNode parent, CDCOptions options) { return(new DataObject(CDC_ENG_create(dataObjectName, parent.GetLibraryObject(), (uint)options))); }
public static DataObject CDC_SAV(string dataObjectName, ModelNode parent, CDCOptions options, bool isIntegerNotFloat) { return(new DataObject(CDC_SAV_create(dataObjectName, parent.GetLibraryObject(), (uint)options, isIntegerNotFloat))); }
public DataObject(string name, ModelNode parentNode, int arrayElements) { self = DataObject_create(name, parentNode.GetLibraryObject(), arrayElements); }