AX#

Search Results for

    Show / Hide Table of Contents

    Interface ITwinObject

    Basic contract for any complex object that is product of build process.

    Inherited Members
    ITwinElement.Symbol
    ITwinElement.AttributeName
    ITwinElement.GetAttributeName(CultureInfo)
    ITwinElement.GetHumanReadable(CultureInfo)
    ITwinElement.HumanReadable
    ITwinElement.GetParent()
    ITwinElement.GetSymbolTail()
    ITwinElement.Poll()
    ITwinElement.Interpreter
    Namespace: AXSharp.Connector
    Assembly: AXSharp.Connector.dll
    Syntax
    public interface ITwinObject : ITwinElement

    Methods

    | Edit this page View Source

    AddChild(ITwinObject)

    Adds child object to the list of children of this object. GetChildren()

    note

    This method is used by the objects built in building process. Not to be used by framework consumers.

    Declaration
    void AddChild(ITwinObject twinObject)
    Parameters
    Type Name Description
    ITwinObject twinObject

    Child ITwinObject

    | Edit this page View Source

    AddKid(ITwinElement)

    Adds kid object to the list of kids of this object.

    note

    This method is used by the objects built in building process. Not to be used by framework consumers.

    Declaration
    void AddKid(ITwinElement kid)
    Parameters
    Type Name Description
    ITwinElement kid

    Child ITwinElement

    | Edit this page View Source

    AddValueTag(ITwinPrimitive)

    Adds child value tag to the list of value tags of this object. GetValueTags()

    note

    This method is used by the objects built in building process. Not to be used by framework consumers.

    Declaration
    void AddValueTag(ITwinPrimitive twinPrimitive)
    Parameters
    Type Name Description
    ITwinPrimitive twinPrimitive

    Child ITwinPrimitive

    | Edit this page View Source

    AnyChangeAsync<T>(T)

    Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. [!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed.

    Declaration
    Task<bool> AnyChangeAsync<T>(T plain)
    Parameters
    Type Name Description
    T plain
    Returns
    Type Description
    Task<bool>
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    GetChildren()

    Gets all complex object that are created by this instance.

    Declaration
    IEnumerable<ITwinObject> GetChildren()
    Returns
    Type Description
    IEnumerable<ITwinObject>
    | Edit this page View Source

    GetConnector()

    Gets the instance of the Connector class to which this ITwinObject belongs.

    Declaration
    Connector GetConnector()
    Returns
    Type Description
    Connector

    Connector

    | Edit this page View Source

    GetKids()

    Gets kids of this instance.

    Declaration
    IEnumerable<ITwinElement> GetKids()
    Returns
    Type Description
    IEnumerable<ITwinElement>
    | Edit this page View Source

    GetValueTags()

    Get all base type objects (tags) that are created by this instance.

    Declaration
    IEnumerable<ITwinPrimitive> GetValueTags()
    Returns
    Type Description
    IEnumerable<ITwinPrimitive>
    | Edit this page View Source

    OnlineToPlain<T>()

    Reads online data and retrieved POCO object populated with actual online data.

    Declaration
    Task<T> OnlineToPlain<T>()
    Returns
    Type Description
    Task<T>

    POCO with online data of this object

    Type Parameters
    Name Description
    T
    | Edit this page View Source

    PlainToOnline<T>(T)

    Writes data from POCO object to online data (PLC)

    Declaration
    Task PlainToOnline<T>(T plain)
    Parameters
    Type Name Description
    T plain

    POCO object to be written to the controller.

    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    PlainToShadow<T>(T)

    Writes data from POCO object to shadow data of this object.

    Declaration
    Task PlainToShadow<T>(T plain)
    Parameters
    Type Name Description
    T plain

    POCO object to be written to the shadows of this object.

    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    ShadowToPlain<T>()

    Read data from shadows of this object to a new instance of a POCO object.

    Declaration
    Task<T> ShadowToPlain<T>()
    Returns
    Type Description
    Task<T>

    POCO object populated by data from the shadows of this object.

    Type Parameters
    Name Description
    T

    Extension Methods

    TranslatorExtension.Translate(ITwinElement, string, CultureInfo)
    TwinObjectExtensions.HasAttribute<T>(ITwinElement)
    TwinObjectExtensions.StartPolling(ITwinElement, int, object)
    TwinObjectExtensions.StopPolling(ITwinElement, object)
    TwinPrimitiveExtensions.GetAttribute<T>(ITwinElement)
    TwinPrimitiveExtensions.GetPropertyInfoViaSymbol(ITwinElement)
    TwinObjectExtensions.CreatePoco(ITwinObject)
    TwinObjectExtensions.MakeReadOnce(ITwinObject)
    TwinObjectExtensions.MakeReadOnly(ITwinObject)
    TwinObjectExtensions.OnlineToShadowAsync(ITwinObject)
    TwinObjectExtensions.ReadAsync(ITwinObject)
    TwinObjectExtensions.ReadAsync<T>(ITwinObject)
    TwinObjectExtensions.RetrievePrimitives(ITwinObject, List<ITwinPrimitive>)
    TwinObjectExtensions.ShadowToOnlineAsync(ITwinObject)
    TwinObjectExtensions.SubscribeEditValueChange(ITwinObject, OnlinerBase.ValueChangeDelegate)
    TwinObjectExtensions.SubscribeShadowValueChange(ITwinObject, OnlinerBase.ValueChangeDelegate)
    TwinObjectExtensions.UnSubscribeEditValueChange(ITwinObject)
    TwinObjectExtensions.UnSubscribeShadowValueChange(ITwinObject)
    TwinObjectExtensions.WriteAsync(ITwinObject)
    TwinObjectExtensions.WriteAsync<T>(ITwinObject)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFx. © MTS spol. s r.o., MTS spol. s r.o., and awesome contributors