Search in sources :

Example 1 with Variant

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

the class AASPropertyTypeNodeBase 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)

Example 2 with Variant

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

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

the class AASEntityTypeNodeBase method getEntityType.

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

Example 4 with Variant

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

the class AASQualifierTypeImplBase method getValueType.

@Mandatory
@Override
public AASValueTypeDataType getValueType() {
    UaVariable node = getValueTypeNode();
    if (node == null) {
        return null;
    }
    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)

Example 5 with Variant

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

the class AASRangeTypeImplBase method getValueType.

@Mandatory
@Override
public AASValueTypeDataType getValueType() {
    UaVariable node = getValueTypeNode();
    if (node == null) {
        return null;
    }
    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