Fledge
An open source edge computing platform for industrial users
LALookup Class Reference

Linked Asset Information class. More...

#include <linkedlookup.h>

Public Member Functions

bool assetState (const std::string &tagName)
 
bool linkState (const std::string &tagName)
 
bool containerState (const std::string &tagName)
 
bool afLinkState ()
 
void setBaseType (const std::string &baseType)
 Set the base type by passing the string of the base type.
 
OMFBaseType getBaseType ()
 
std::string getBaseTypeString ()
 Get a string representation of the base type that was sent.
 
void assetSent (const std::string &tagName)
 
void linkSent (const std::string &tagName)
 
void afLinkSent ()
 
void containerSent (const std::string &tagName, const std::string &baseType)
 The container has been sent with the specific base type. More...
 
void containerSent (const std::string &tagName, OMFBaseType baseType)
 The container has been sent with the specific base type. More...
 

Detailed Description

Linked Asset Information class.

This is the data stored for each asset and asset datapoint pair that is being sent to PI using the linked container mechanism. We use the class so we can combine all the information we need in a single lookup table, this not only saves space but allows to build and retain the table before we start building the payloads. This hopefully will help prevent to much memory fragmentation, which was an issue with the old, separate lookup mechanism we had.

Member Function Documentation

◆ containerSent() [1/2]

void LALookup::containerSent ( const std::string &  tagName,
const std::string &  baseType 
)

The container has been sent with the specific base type.

Parameters
tagNameThe name of the tag we are using
baseTypeThe baseType we resolve to

◆ containerSent() [2/2]

void LALookup::containerSent ( const std::string &  tagName,
OMFBaseType  baseType 
)

The container has been sent with the specific base type.

Parameters
tagNameThe name of the tag we are using
baseTypeThe baseType we resolve to

The documentation for this class was generated from the following files: