public class GenerationUtil extends Object
Constructor and Description |
---|
GenerationUtil() |
Modifier and Type | Method and Description |
---|---|
static DataType |
getDataTypeOfDataConversionAdjustment(MeasurementData data)
Gets the specified data type the LinearDataConversionWithInterval-element.
|
static SensorInterface |
getSensorInterface(EObject currentElement)
Given a current element of the sensidl-element-tree, the getSensorInterface-
method compares recursively the high-level elements of the tree until it
finds the SensorInterface-element.
|
static String |
getSensorInterfaceName(EObject currentElement)
Returns the name instead of the SensorInterface-object.
|
static String |
getUtilityFileName(EObject object,
String fileExtension)
Gets the filename for a particular utility-file with file extension.
|
static String |
getUtilityName(EObject object)
Gets the name for a particular utility-class.
|
static boolean |
isBigEndian(SensorInterface sensorInterface) |
static String |
toNameLower(Data d)
Ensures that the first letter of the Data-object is lower case.
|
static String |
toNameLower(DataSet d)
Ensures that the first letter of the DataSet-object is lower case.
|
static String |
toNameUpper(Data d)
Ensures that the first letter is capitalized.
|
static String |
toNameUpper(DataSet d)
Ensures that the first letter is capitalized.
|
public static SensorInterface getSensorInterface(EObject currentElement)
currentElement
- Corresponds to the current element in the sensidl-element-tree.public static String getSensorInterfaceName(EObject currentElement)
currentElement
- Corresponds to the current element in the sensidl-element-tree.public static String toNameLower(Data d)
d
- Represents the Data-object.public static String toNameLower(DataSet d)
public static String toNameUpper(Data d)
d
- Represents the Data-object.public static String toNameUpper(DataSet d)
d
- Represents the DataSet-object.public static String getUtilityFileName(EObject object, String fileExtension)
object
- Current object, which is used to get the SensorInterface-name.fileExtension
- Corresponds to the desired file extension that is going to be appended.public static String getUtilityName(EObject object)
object
- Current object, which is used to concatenate the SensorInterface-name
and the default utility-class-name.public static DataType getDataTypeOfDataConversionAdjustment(MeasurementData data)
data
- Represents the MeasurementData of interest.public static boolean isBigEndian(SensorInterface sensorInterface)