Exemple #1
0
 public TheMemoryTag(TheThing pThing, IBaseEngine pEngine)
 {
     MyBaseThing            = pThing ?? new TheThing();
     MyBaseEngine           = pEngine;
     MyBaseThing.DeviceType = eVThings.eMemoryTag;
     MyBaseThing.EngineName = pEngine.GetEngineName();
     MyBaseThing.SetIThingObject(this);
 }
Exemple #2
0
 public TheDemoBase(TheThing tBaseThing, ICDEPlugin pPluginBase)
 {
     MyBaseThing            = tBaseThing ?? new TheThing();
     MyBaseEngine           = pPluginBase.GetBaseEngine();
     MyBaseThing.EngineName = MyBaseEngine.GetEngineName();
     MyBaseThing.SetIThingObject(this);
     TheThingRegistry.RegisterThing(this);
 }
 public TheDataVerifier(TheThing pThing, IBaseEngine pEngine)
 {
     MyBaseThing            = pThing ?? new TheThing();
     MyBaseEngine           = pEngine;
     MyBaseThing.DeviceType = eVThings.eDataVerifier;
     MyBaseThing.EngineName = pEngine.GetEngineName();
     MyBaseThing.SetIThingObject(this);
     if (TheThing.GetSafePropertyBool(MyBaseThing, "AutoStart"))
     {
         StartVerifier();
     }
 }
 public TheServiceHealthData(string pEngineName, string pURL)
 {
     MyBaseThing = TheThingRegistry.GetThingByProperty(pEngineName, Guid.Empty, "ID", "PCH@" + TheBaseAssets.MyServiceHostInfo.MyDeviceInfo.DeviceID) ?? new TheThing
     {
         DeviceType = "PC-Health",
         ID         = "PCH@" + TheBaseAssets.MyServiceHostInfo.MyDeviceInfo.DeviceID,
         EngineName = pEngineName
     };
     cdeMID = MyBaseThing.cdeMID;
     cdeA   = MyBaseThing.cdeA;
     MyBaseThing.SetIThingObject(this);
     TheThingRegistry.RegisterThing(this);
 }
Exemple #5
0
 public TheConnectionBase(TheThing pThing, ICDEPlugin pPluginBase)
 {
     if (pThing != null)
     {
         MyBaseThing = pThing;
     }
     else
     {
         MyBaseThing = new TheThing();
     }
     MyBaseEngine = pPluginBase.GetBaseEngine();
     MyBaseThing.SetIThingObject(this);
 }
Exemple #6
0
        public TheNMIEditor(TheThing pThing)
        {
            if (pThing == null)
            {
                MyBaseThing = new TheThing();
            }
            else
            {
                MyBaseThing = pThing;
            }

            MyBaseThing.DeclareNMIProperty("ControlType", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("FormTitle", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("Caption", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("TileLeft", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("TileTop", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("TileWidth", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("TileHeight", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("Flags", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("FldOrder", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("ClassName", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("Style", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("IsAbsolute", ePropertyTypes.TBoolean);
            MyBaseThing.DeclareNMIProperty("IsVertical", ePropertyTypes.TBoolean);
            MyBaseThing.DeclareNMIProperty("IsInverted", ePropertyTypes.TBoolean);
            MyBaseThing.DeclareNMIProperty("MinValue", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("MaxValue", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("SeriesNames", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("Title", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("NoTE", ePropertyTypes.TBoolean);
            MyBaseThing.DeclareNMIProperty("Units", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("Format", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("Options", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("MainBackground", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("Background", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("Foreground", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("ForegroundOpacity", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("Opacity", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("Disabled", ePropertyTypes.TBoolean);
            MyBaseThing.DeclareNMIProperty("Visibility", ePropertyTypes.TBoolean);
            MyBaseThing.DeclareNMIProperty("Speed", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("Delay", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("Throttle", ePropertyTypes.TNumber);
            MyBaseThing.DeclareNMIProperty("Group", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("NUITags", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("Label", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("LabelClassName", ePropertyTypes.TString);
            MyBaseThing.DeclareNMIProperty("LabelForeground", ePropertyTypes.TString);
            MyBaseThing.SetIThingObject(this);
        }
Exemple #7
0
 public TheCPUInfo(string pEngineName, string pURL)
 {
     MyBaseThing = TheThingRegistry.GetThingByProperty(pEngineName, Guid.Empty, "ID", "CPU@" + TheBaseAssets.MyServiceHostInfo.MyDeviceInfo.DeviceID.ToString());
     if (MyBaseThing == null)
     {
         MyBaseThing            = new TheThing();
         MyBaseThing.DeviceType = "CPUInfo";
         MyBaseThing.ID         = "CPU@" + TheBaseAssets.MyServiceHostInfo.MyDeviceInfo.DeviceID.ToString();
         MyBaseThing.EngineName = pEngineName;
     }
     cdeMID = MyBaseThing.cdeMID;
     MyBaseThing.SetIThingObject(this);
     TheThingRegistry.RegisterThing(this);
 }
 public TheDataGenerator(TheThing pThing, IBaseEngine pEngine)
 {
     if (pThing != null)
     {
         MyBaseThing = pThing;
     }
     else
     {
         MyBaseThing = new TheThing();
     }
     MyBaseEngine           = pEngine;
     MyBaseThing.DeviceType = eVThings.eDataGenerator;
     MyBaseThing.EngineName = pEngine.GetEngineName();
     MyBaseThing.SetIThingObject(this);
 }
Exemple #9
0
 public TheRelayAppInfo(TheThing pBaseThing, string pName, ICDEPlugin pBase)
 {
     if (pBaseThing == null)
     {
         pBaseThing = new TheThing
         {
             DeviceType = eWebAppTypes.TheWebApp,
             EngineName = pBase.GetBaseEngine().GetEngineName()
         };
     }
     HostUrl     = TheBaseAssets.MyServiceHostInfo.GetPrimaryStationURL(false);
     MyBaseThing = pBaseThing;
     if (!string.IsNullOrEmpty(pName))
     {
         MyBaseThing.FriendlyName = pName;
     }
     MyBaseThing.SetIThingObject(this);
 }