Class Assembly.DynamicData

    • Constructor Detail

      • DynamicData

        public DynamicData()
    • Method Detail

      • resetWrapped

        public void resetWrapped()
      • getData

        public BaseDataType<?> getData()
        Description copied from interface: DataWrapper
        Many CIP objects wrap a CIP data type. This interface allows the member resolver to access fragments of complex wrapped data in a uniform way.
        Specified by:
        getData in interface DataWrapper
        Overrides:
        getData in class CipAttribute
        Returns:
      • setParent

        public CipObject setParent​(CipTree parent)
        Description copied from class: CipTree
        Set or remove the parent of this CipTree, possibly removing this object from a previous parent before assigning to the new parent. Override this method if additional housekeeping is required when assigning or removing parents.
        Overrides:
        setParent in class CipObject
        Parameters:
        parent - The new parent of this object.
        Returns:
        The object replaced by this object in the parent, if any.
      • connect

        public AppConsumer connect​(AppOwner owner,
                                   ConxClass.CxParams params,
                                   byte dirtrigcls)
        Description copied from interface: Connectable
        This method requests that the given connection be assigned as the owner of this object and an appropriate AppConsumer shim be created to handle the incoming data. Application Consumer objects handle data flow from connections to application objects. The provided AppOwner instance includes appropriate buffer handling, including removal/use of CIP short sequence numbers and originator idle/run mode indicators. This class's shutdown() method is used to disconnect.
        Specified by:
        connect in interface Connectable
        Overrides:
        connect in class ConnectableAttr
        dirtrigcls - Direction/Trigger/Class combination to use.
        Returns:
      • set

        public void set​(java.nio.ByteBuffer source)
        Overrides:
        set in class CipAttribute
      • put

        public void put​(java.nio.ByteBuffer dest)
        Overrides:
        put in class CipAttribute
      • service

        public void service​(CipObject appContext,
                            CipRequest request,
                            int nesting)
        Description copied from class: CipObject

        Execute a CIP service on the object, using the request supplied. Supply a reply to the request and/or throw an appropriate CipException. Replies are not required before this routine returns.

        Direct service() calls MUST NOT BLOCK. Any operation that will take any significant time must be delegated to an executor. "Significant" may vary by application, but typically would be in the fractional millisecond range.

        Overrides:
        service in class CipAttribute
        Parameters:
        appContext - Root object for application path lookups. Generally a Mirrored Device from a port context.
        request - What to do and where to reply. Services to be handled by child objects are to be passed to their service() method with nesting+1.
        nesting - How many leading path segments items to skip when processing this request. Avoids copying the balance of an application path into a new request when passing a request to a child object.