Interface Mapping

    • Field Detail

      • INIT_VALUES_FLAVOR

        static final java.lang.String INIT_VALUES_FLAVOR
        Initial values flavor
        See Also:
        Constant Field Values
      • CTB_FLAVOR

        static final java.lang.String CTB_FLAVOR
        CTB Mapping flavor
        See Also:
        Constant Field Values
      • LABCAR_FLAVOR

        static final java.lang.String LABCAR_FLAVOR
        LabCar flavor
        See Also:
        Constant Field Values
      • LOGGING_FLAVOR

        static final java.lang.String LOGGING_FLAVOR
        Logging flavor
        See Also:
        Constant Field Values
      • MEASUREMENT_FLAVOR

        static final java.lang.String MEASUREMENT_FLAVOR
        Measurement flavor
        See Also:
        Constant Field Values
      • MINMAX_FLAVOR

        static final java.lang.String MINMAX_FLAVOR
        Min/Max flavor
        See Also:
        Constant Field Values
      • OUTPUT_OPERATION_FLAVOR

        static final java.lang.String OUTPUT_OPERATION_FLAVOR
        Output Operation flavor
        See Also:
        Constant Field Values
      • RENAME_FLAVOR

        static final java.lang.String RENAME_FLAVOR
        Rename flavor
        See Also:
        Constant Field Values
      • SIMULINK_MEASUREMENT_FLAVOR

        static final java.lang.String SIMULINK_MEASUREMENT_FLAVOR
        Simulink Measurement flavor
        See Also:
        Constant Field Values
      • SIMULINK_OBJECT_FLAVOR

        static final java.lang.String SIMULINK_OBJECT_FLAVOR
        Simulink Object flavor
        See Also:
        Constant Field Values
      • TARGETLINK_DATA_DICTIONARY_FLAVOR

        static final java.lang.String TARGETLINK_DATA_DICTIONARY_FLAVOR
        TargetLink Data Dictionary flavor
        See Also:
        Constant Field Values
      • TARGETLINK_MEASUREMENT_FLAVOR

        static final java.lang.String TARGETLINK_MEASUREMENT_FLAVOR
        TargetLink Measurement flavor
        See Also:
        Constant Field Values
      • TOLERANCE_FLAVOR

        static final java.lang.String TOLERANCE_FLAVOR
        Tolerance flavor
        See Also:
        Constant Field Values
      • SCALING_FLAVOR

        static final java.lang.String SCALING_FLAVOR
        Scaling flavor
        See Also:
        Constant Field Values
      • TASMO_INPUT_SPECIFICATION_FLAVOR

        static final java.lang.String TASMO_INPUT_SPECIFICATION_FLAVOR
        TASMO Input Specification flavor
        See Also:
        Constant Field Values
      • SOMEIP_FLAVOR

        static final java.lang.String SOMEIP_FLAVOR
        SOME/IP flavor
        See Also:
        Constant Field Values
    • Method Detail

      • getFlavors

        RemoteCollection<java.lang.String> getFlavors()
                                               throws java.rmi.RemoteException
        Returns the list of all Mapping Flavors contained in this mapping.
        Returns:
        A RemoteCollection of Mapping Flavors.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • addFlavor

        void addFlavor​(java.lang.String flavorName)
                throws ApiException,
                       java.rmi.RemoteException
        Add a new flavor to the mapping represented by this object.
        Parameters:
        flavorName - The name of the flavor.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - If flavorName == null or the mapping already contains the flavor or the name of the flavor is unknown to TPT.
      • getMappingFlavorColumnValue

        java.lang.String getMappingFlavorColumnValue​(Declaration decl,
                                                     java.lang.String column,
                                                     boolean allowDefaultValue)
                                              throws ApiException,
                                                     java.rmi.RemoteException
        Get the value of the given mapping flavor column.
        Parameters:
        decl - The Declaration from which you want to get the flavor.
        column - The name of the column of the flavor. Valid column names are all mapping specific column names from the declaration editor, such as Min, Max, Hidden, External_Name etc.
        allowDefaultValue - A flag which allows to get the default value from the flavor in case it is null.
        Returns:
        The String representation of the value from the given mapping flavor column.
        Throws:
        ApiException - If the declaration or the column is null, if the declaration does not exist locally or if the mapping does not have any flavor with the given column.
        java.rmi.RemoteException - remote communication problem
      • getMappingFlavorColumnValue

        java.lang.String getMappingFlavorColumnValue​(Declaration decl,
                                                     java.lang.String subElement,
                                                     java.lang.String column,
                                                     boolean allowDefaultValue)
                                              throws ApiException,
                                                     java.rmi.RemoteException
        Get the value of the given mapping flavor column of structured elements and its members.
        Parameters:
        decl - The Declaration from which you want to get the flavor.
        subElement - The subelement in case of a structured Declaration. Can be left empty or null to get the value for the root element. The sub elements must be separated by '.'. Do NOT add the name of the declaration as first element.
        column - The name of the column of the flavor. Valid column names are all mapping specific column names from the declaration editor, such as Min, Max, Hidden, External_Name etc.
        allowDefaultValue - A flag which allows to get the default value from the flavor in case it is null.
        Returns:
        The String representation of the value from the given mapping flavor column.
        Throws:
        ApiException - If the declaration or the column is null, if the declaration does not exist locally or if the mapping does not have any flavor with the given column.
        java.rmi.RemoteException - remote communication problem
      • setMappingFlavorColumnValue

        void setMappingFlavorColumnValue​(Declaration decl,
                                         java.lang.String column,
                                         java.lang.String value)
                                  throws ApiException,
                                         java.rmi.RemoteException
        Set the value of the given mapping flavor column.
        Parameters:
        decl - The Declaration from which you want to set the flavor.
        column - The name of the column of the flavor. Valid column names are all mapping specific column names from the declaration editor, such as Min, Max, Hidden, External_Name etc.
        value - The value to be set. Setting the value to the default value (getMappingFlavorColumnDefaultValue(Declaration, String)) will let the value be null when the file is saved and loaded again.
        Throws:
        ApiException - If the declaration or the column is null, if the declaration does not exist locally, if the mapping does not have any flavor with the given column or if the value can not be parsed to the column type.
        java.rmi.RemoteException - remote communication problem
      • setMappingFlavorColumnValue

        void setMappingFlavorColumnValue​(Declaration decl,
                                         java.lang.String subElement,
                                         java.lang.String column,
                                         java.lang.String value)
                                  throws ApiException,
                                         java.rmi.RemoteException
        Set the value of the given mapping flavor column.
        Parameters:
        decl - The Declaration from which you want to set the flavor.
        subElement - The subelement in case of a structured Declaration. Can be left empty or null to set the value for the root element. The sub elements must be separated by '.'. Do NOT add the name of the declaration as first element.
        column - The name of the column of the flavor. Valid column names are all mapping specific column names from the declaration editor, such as Min, Max, Hidden, External_Name etc.
        value - The value to be set. Setting the value to the default value (getMappingFlavorColumnDefaultValue(Declaration, String)) will let the value be null when the file is saved and loaded again.
        Throws:
        ApiException - If the declaration or the column is null, if the declaration does not exist locally, if the mapping does not have any flavor with the given column or if the value can not be parsed to the column type.
        java.rmi.RemoteException - remote communication problem
      • getMappingFlavorColumnDefaultValue

        java.lang.String getMappingFlavorColumnDefaultValue​(Declaration decl,
                                                            java.lang.String column)
                                                     throws ApiException,
                                                            java.rmi.RemoteException
        Get the default value of the given mapping flavor column for the given declaration.
        Parameters:
        decl - The Declaration from which you want to get the flavor.
        column - The name of the column of the flavor.
        Returns:
        The String representation of the default value from the flavor
        Throws:
        ApiException - If the declaration or the column is null, if the declaration does not exist locally or if the mapping does not have any flavor with the given column.
        java.rmi.RemoteException - remote communication problem
      • getMappingFlavorColumnDefaultValue

        java.lang.String getMappingFlavorColumnDefaultValue​(Declaration decl,
                                                            java.lang.String subElement,
                                                            java.lang.String column)
                                                     throws ApiException,
                                                            java.rmi.RemoteException
        Get the default value of the given mapping flavor column for the given declaration.
        Parameters:
        decl - The Declaration from which you want to get the flavor.
        subElement - The subelement in case of a structured Declaration. Can be left empty or null to set the value for the root element. The sub elements must be separated by '.'. Do NOT add the name of the declaration as first element.
        column - The name of the column of the flavor.
        Returns:
        The String representation of the default value from the flavor
        Throws:
        ApiException - If the declaration or the column is null, if the declaration does not exist locally or if the mapping does not have any flavor with the given column.
        java.rmi.RemoteException - remote communication problem