Search in sources :

Example 1 with AASDataTypeIEC61360DataType

use of opc.i4aas.AASDataTypeIEC61360DataType in project FAAAST-Service by FraunhoferIOSB.

the class AASDataSpecificationIEC61360TypeNodeBase method getDataType.

@Optional
@Override
public AASDataTypeIEC61360DataType getDataType() {
    UaVariable node = getDataTypeNode();
    if (node == null) {
        return null;
    }
    Variant value = node.getValue().getValue();
    return (AASDataTypeIEC61360DataType) value.asEnum(AASDataTypeIEC61360DataType.class);
}
Also used : Variant(com.prosysopc.ua.stack.builtintypes.Variant) AASDataTypeIEC61360DataType(opc.i4aas.AASDataTypeIEC61360DataType) UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Example 2 with AASDataTypeIEC61360DataType

use of opc.i4aas.AASDataTypeIEC61360DataType in project FAAAST-Service by FraunhoferIOSB.

the class AASDataSpecificationIEC61360TypeImplBase method getDataType.

@Optional
@Override
public AASDataTypeIEC61360DataType getDataType() {
    UaVariable node = getDataTypeNode();
    if (node == null) {
        return null;
    }
    Variant value = node.getValue().getValue();
    return (AASDataTypeIEC61360DataType) value.asEnum(AASDataTypeIEC61360DataType.class);
}
Also used : Variant(com.prosysopc.ua.stack.builtintypes.Variant) AASDataTypeIEC61360DataType(opc.i4aas.AASDataTypeIEC61360DataType) UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Aggregations

Optional (com.prosysopc.ua.nodes.Optional)2 UaVariable (com.prosysopc.ua.nodes.UaVariable)2 Variant (com.prosysopc.ua.stack.builtintypes.Variant)2 AASDataTypeIEC61360DataType (opc.i4aas.AASDataTypeIEC61360DataType)2