예제 #1
0
 /**
  * \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;
 }
예제 #2
0
 public SettingGroupControlBlock(ModelNode parentNode, byte actSG, byte numOfSGs)
 {
     self = SettingGroupControlBlock_create(parentNode.GetLibraryObject(), actSG, numOfSGs);
 }
예제 #3
0
 public static DataObject CDC_ENG(string dataObjectName, ModelNode parent, CDCOptions options)
 {
     return(new DataObject(CDC_ENG_create(dataObjectName, parent.GetLibraryObject(), (uint)options)));
 }
예제 #4
0
 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)));
 }
예제 #5
0
 public DataObject(string name, ModelNode parentNode, int arrayElements)
 {
     self = DataObject_create(name, parentNode.GetLibraryObject(), arrayElements);
 }