use of opc.i4aas.AASAssetKindDataType in project FAAAST-Service by FraunhoferIOSB.
the class AASAssetInformationTypeImplBase method getAssetKind.
@Mandatory
@Override
public AASAssetKindDataType getAssetKind() {
UaVariable node = getAssetKindNode();
if (node == null) {
return null;
}
Variant value = node.getValue().getValue();
return (AASAssetKindDataType) value.asEnum(AASAssetKindDataType.class);
}
use of opc.i4aas.AASAssetKindDataType in project FAAAST-Service by FraunhoferIOSB.
the class AASAssetInformationTypeNodeBase method getAssetKind.
@Mandatory
@Override
public AASAssetKindDataType getAssetKind() {
UaVariable node = getAssetKindNode();
if (node == null) {
throw new RuntimeException("Mandatory node AssetKind does not exist");
}
Variant value = node.getValue().getValue();
return (AASAssetKindDataType) value.asEnum(AASAssetKindDataType.class);
}
Aggregations