Package com.piketec.tpt.api
Interface Mapping
-
- All Superinterfaces:
IdentifiableRemote
,NamedObject
,java.rmi.Remote
,TptRemote
public interface Mapping extends IdentifiableRemote, NamedObject
This object provides an interface to a mapping in TPT. The mapping consists of a number of mapping flavors.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
A2L_FLAVOR
static java.lang.String
ADTF_FLAVOR
static java.lang.String
CTB_FLAVOR
static java.lang.String
INIT_VALUES_FLAVOR
static java.lang.String
LABCAR_FLAVOR
static java.lang.String
LOGGING_FLAVOR
static java.lang.String
MEASUREMENT_FLAVOR
static java.lang.String
MINMAX_FLAVOR
static java.lang.String
OUTPUT_OPERATION_FLAVOR
static java.lang.String
RENAME_FLAVOR
static java.lang.String
SCALING_FLAVOR
static java.lang.String
SIMULINK_MEASUREMENT_FLAVOR
static java.lang.String
SIMULINK_OBJECT_FLAVOR
static java.lang.String
SOMEIP_FLAVOR
static java.lang.String
TARGETLINK_DATA_DICTIONARY_FLAVOR
static java.lang.String
TARGETLINK_MEASUREMENT_FLAVOR
static java.lang.String
TASMO_INPUT_SPECIFICATION_FLAVOR
static java.lang.String
TOLERANCE_FLAVOR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFlavor(java.lang.String flavorName)
Add a new flavor to the mapping represented by this object.RemoteCollection<java.lang.String>
getFlavors()
Returns the list of all Mapping Flavors contained in this mapping.java.lang.String
getMappingFlavorColumnDefaultValue(Declaration decl, java.lang.String column)
Get the default value of the given mapping flavor column for the given declaration.java.lang.String
getMappingFlavorColumnValue(Declaration decl, java.lang.String column, boolean allowDefaultValue)
Get the value of the given mapping flavor column.void
setMappingFlavorColumnValue(Declaration decl, java.lang.String column, java.lang.String value)
Set the value of the given mapping flavor column.-
Methods inherited from interface com.piketec.tpt.api.IdentifiableRemote
getIdentifier
-
Methods inherited from interface com.piketec.tpt.api.NamedObject
getName, setName
-
-
-
-
Field Detail
-
INIT_VALUES_FLAVOR
static final java.lang.String INIT_VALUES_FLAVOR
- See Also:
- Constant Field Values
-
A2L_FLAVOR
static final java.lang.String A2L_FLAVOR
- See Also:
- Constant Field Values
-
ADTF_FLAVOR
static final java.lang.String ADTF_FLAVOR
- See Also:
- Constant Field Values
-
CTB_FLAVOR
static final java.lang.String CTB_FLAVOR
- See Also:
- Constant Field Values
-
LABCAR_FLAVOR
static final java.lang.String LABCAR_FLAVOR
- See Also:
- Constant Field Values
-
LOGGING_FLAVOR
static final java.lang.String LOGGING_FLAVOR
- See Also:
- Constant Field Values
-
MEASUREMENT_FLAVOR
static final java.lang.String MEASUREMENT_FLAVOR
- See Also:
- Constant Field Values
-
MINMAX_FLAVOR
static final java.lang.String MINMAX_FLAVOR
- See Also:
- Constant Field Values
-
OUTPUT_OPERATION_FLAVOR
static final java.lang.String OUTPUT_OPERATION_FLAVOR
- See Also:
- Constant Field Values
-
RENAME_FLAVOR
static final java.lang.String RENAME_FLAVOR
- See Also:
- Constant Field Values
-
SIMULINK_MEASUREMENT_FLAVOR
static final java.lang.String SIMULINK_MEASUREMENT_FLAVOR
- See Also:
- Constant Field Values
-
SIMULINK_OBJECT_FLAVOR
static final java.lang.String SIMULINK_OBJECT_FLAVOR
- See Also:
- Constant Field Values
-
TARGETLINK_DATA_DICTIONARY_FLAVOR
static final java.lang.String TARGETLINK_DATA_DICTIONARY_FLAVOR
- See Also:
- Constant Field Values
-
TARGETLINK_MEASUREMENT_FLAVOR
static final java.lang.String TARGETLINK_MEASUREMENT_FLAVOR
- See Also:
- Constant Field Values
-
TOLERANCE_FLAVOR
static final java.lang.String TOLERANCE_FLAVOR
- See Also:
- Constant Field Values
-
SCALING_FLAVOR
static final java.lang.String SCALING_FLAVOR
- See Also:
- Constant Field Values
-
TASMO_INPUT_SPECIFICATION_FLAVOR
static final java.lang.String TASMO_INPUT_SPECIFICATION_FLAVOR
- See Also:
- Constant Field Values
-
SOMEIP_FLAVOR
static final java.lang.String SOMEIP_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 problemApiException
- IfflavorName == 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
- TheDeclaration
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 asMin
,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 locally exists 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
- TheDeclaration
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 asMin
,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 locally exists, 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
- TheDeclaration
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 locally exists or if the mapping does not have any flavor with the given column.java.rmi.RemoteException
- remote communication problem
-
-