Search in sources :

Example 16 with Variant

use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.

the class AASSubmodelElementTypeImplBase method getModelingKind.

@Mandatory
@Override
public AASModelingKindDataType getModelingKind() {
    UaVariable node = getModelingKindNode();
    if (node == null) {
        return null;
    }
    Variant value = node.getValue().getValue();
    return (AASModelingKindDataType) value.asEnum(AASModelingKindDataType.class);
}
Also used : Variant(com.prosysopc.ua.stack.builtintypes.Variant) UaVariable(com.prosysopc.ua.nodes.UaVariable) AASModelingKindDataType(opc.i4aas.AASModelingKindDataType) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 17 with Variant

use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.

the class AASSubmodelTypeNodeBase method getModelingKind.

@Mandatory
@Override
public AASModelingKindDataType getModelingKind() {
    UaVariable node = getModelingKindNode();
    if (node == null) {
        throw new RuntimeException("Mandatory node ModelingKind does not exist");
    }
    Variant value = node.getValue().getValue();
    return (AASModelingKindDataType) value.asEnum(AASModelingKindDataType.class);
}
Also used : Variant(com.prosysopc.ua.stack.builtintypes.Variant) UaVariable(com.prosysopc.ua.nodes.UaVariable) AASModelingKindDataType(opc.i4aas.AASModelingKindDataType) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 18 with Variant

use of com.prosysopc.ua.stack.builtintypes.Variant 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);
}
Also used : Variant(com.prosysopc.ua.stack.builtintypes.Variant) UaVariable(com.prosysopc.ua.nodes.UaVariable) AASAssetKindDataType(opc.i4aas.AASAssetKindDataType) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 19 with Variant

use of com.prosysopc.ua.stack.builtintypes.Variant 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 20 with Variant

use of com.prosysopc.ua.stack.builtintypes.Variant in project FAAAST-Service by FraunhoferIOSB.

the class AASQualifierTypeNodeBase method getValueType.

@Mandatory
@Override
public AASValueTypeDataType getValueType() {
    UaVariable node = getValueTypeNode();
    if (node == null) {
        throw new RuntimeException("Mandatory node ValueType does not exist");
    }
    Variant value = node.getValue().getValue();
    return (AASValueTypeDataType) value.asEnum(AASValueTypeDataType.class);
}
Also used : Variant(com.prosysopc.ua.stack.builtintypes.Variant) AASValueTypeDataType(opc.i4aas.AASValueTypeDataType) UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Aggregations

Variant (com.prosysopc.ua.stack.builtintypes.Variant)25 UaVariable (com.prosysopc.ua.nodes.UaVariable)21 Mandatory (com.prosysopc.ua.nodes.Mandatory)16 AASValueTypeDataType (opc.i4aas.AASValueTypeDataType)6 NodeId (com.prosysopc.ua.stack.builtintypes.NodeId)5 QualifiedName (com.prosysopc.ua.stack.builtintypes.QualifiedName)5 BrowsePathTarget (com.prosysopc.ua.stack.core.BrowsePathTarget)5 RelativePathElement (com.prosysopc.ua.stack.core.RelativePathElement)5 ArrayList (java.util.ArrayList)5 Optional (com.prosysopc.ua.nodes.Optional)4 BrowsePathResult (com.prosysopc.ua.stack.core.BrowsePathResult)4 RelativePath (com.prosysopc.ua.stack.core.RelativePath)4 AASModelingKindDataType (opc.i4aas.AASModelingKindDataType)4 DataValue (com.prosysopc.ua.stack.builtintypes.DataValue)3 ExpandedNodeId (com.prosysopc.ua.stack.builtintypes.ExpandedNodeId)3 UaClient (com.prosysopc.ua.client.UaClient)2 AASAssetKindDataType (opc.i4aas.AASAssetKindDataType)2 AASDataTypeIEC61360DataType (opc.i4aas.AASDataTypeIEC61360DataType)2 AASEntityTypeDataType (opc.i4aas.AASEntityTypeDataType)2 AASIdentifierTypeDataType (opc.i4aas.AASIdentifierTypeDataType)2