Search in sources :

Example 1 with AASLevelTypeDataType

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

the class AASDataSpecificationIEC61360TypeNodeBase method getLevelType.

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

Example 2 with AASLevelTypeDataType

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

the class AASDataSpecificationIEC61360TypeImplBase method getLevelType.

@Optional
@Override
public AASLevelTypeDataType getLevelType() {
    UaVariable node = getLevelTypeNode();
    if (node == null) {
        return null;
    }
    Variant value = node.getValue().getValue();
    return (AASLevelTypeDataType) value.asEnum(AASLevelTypeDataType.class);
}
Also used : Variant(com.prosysopc.ua.stack.builtintypes.Variant) AASLevelTypeDataType(opc.i4aas.AASLevelTypeDataType) 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 AASLevelTypeDataType (opc.i4aas.AASLevelTypeDataType)2