Class MethodParameter


  • public final class MethodParameter
    extends CosemResourceDescriptor
    Collection of data needed for a single remote ACTION call.
    • Constructor Detail

      • MethodParameter

        public MethodParameter​(int classId,
                               ObisCode instanceId,
                               int methodId)
        Creates an action parameter for that particular method with no data container.
        Parameters:
        classId - Class of the object to change
        instanceId - Identifier of the remote object to change
        methodId - Method of the object that shall be called
      • MethodParameter

        public MethodParameter​(int classId,
                               java.lang.String instanceId,
                               int methodId)
        Creates an action parameter for that particular method with no data container.
        Parameters:
        classId - Class of the object to change.
        instanceId - Identifier of the remote object to change.
        methodId - Method of the object that shall be called.
      • MethodParameter

        public MethodParameter​(int classId,
                               ObisCode instanceId,
                               int methodId,
                               DataObject methodParameter)
        Creates an action parameter for that particular method with a copy of the given data container.
        Parameters:
        classId - Class of the object to change.
        instanceId - Identifier of the remote object to change.
        methodId - Method of the object that is to change.
        methodParameter - Container of this parameter
      • MethodParameter

        public MethodParameter​(int classId,
                               java.lang.String instanceId,
                               int methodId,
                               DataObject methodParameter)
      • MethodParameter

        @Deprecated
        public MethodParameter​(MethodClass methodClass,
                               java.lang.String instanceId,
                               DataObject methodParameter)
        Deprecated.
        since 1.5.1. Use the none enum initializer of MethodParameter.
        Creates an action parameter for that particular method with a copy of the given data container.
        Parameters:
        methodClass - the method of a specific class.
        instanceId - Identifier of the remote object to change.
        methodParameter - Container of this parameter.
      • MethodParameter

        @Deprecated
        public MethodParameter​(MethodClass methodClass,
                               ObisCode instanceId,
                               DataObject methodParameter)
        Deprecated.
        since 1.5.1. Use the none enum initializer of MethodParameter.
        Creates an action parameter for that particular method with a copy of the given data container.
        Parameters:
        methodClass - the method of a specific class.
        instanceId - Identifier of the remote object to change.
        methodParameter - Container of this parameter.
    • Method Detail

      • getParameter

        public DataObject getParameter()
        Get the method parameter.
        Returns:
        the method parameter.