Search in sources :

Example 71 with UaVariable

use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.

the class AASSubmodelElementTypeNodeBase method getCategory.

@Mandatory
@Override
public String getCategory() {
    UaVariable node = getCategoryNode();
    if (node == null) {
        throw new RuntimeException("Mandatory node Category does not exist");
    }
    Object value = node.getValue().getValue().getValue();
    return (String) value;
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 72 with UaVariable

use of com.prosysopc.ua.nodes.UaVariable 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 73 with UaVariable

use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.

the class IAASReferableTypeNodeBase method getCategory.

@Mandatory
@Override
public String getCategory() {
    UaVariable node = getCategoryNode();
    if (node == null) {
        throw new RuntimeException("Mandatory node Category does not exist");
    }
    Object value = node.getValue().getValue().getValue();
    return (String) value;
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Mandatory(com.prosysopc.ua.nodes.Mandatory)

Example 74 with UaVariable

use of com.prosysopc.ua.nodes.UaVariable 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 75 with UaVariable

use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.

the class AASBlobTypeNodeBase method getValue.

@Optional
@Override
public ByteString getValue() {
    UaVariable node = getValueNode();
    if (node == null) {
        return null;
    }
    Object value = node.getValue().getValue().getValue();
    return (ByteString) value;
}
Also used : ByteString(com.prosysopc.ua.stack.builtintypes.ByteString) UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Aggregations

UaVariable (com.prosysopc.ua.nodes.UaVariable)127 Mandatory (com.prosysopc.ua.nodes.Mandatory)69 Optional (com.prosysopc.ua.nodes.Optional)57 Variant (com.prosysopc.ua.stack.builtintypes.Variant)21 AASValueTypeDataType (opc.i4aas.AASValueTypeDataType)6 ByteString (com.prosysopc.ua.stack.builtintypes.ByteString)4 AASModelingKindDataType (opc.i4aas.AASModelingKindDataType)4 AASAssetKindDataType (opc.i4aas.AASAssetKindDataType)2 AASDataTypeIEC61360DataType (opc.i4aas.AASDataTypeIEC61360DataType)2 AASEntityTypeDataType (opc.i4aas.AASEntityTypeDataType)2 AASIdentifierTypeDataType (opc.i4aas.AASIdentifierTypeDataType)2 AASLevelTypeDataType (opc.i4aas.AASLevelTypeDataType)2 UaType (com.prosysopc.ua.nodes.UaType)1 DataValue (com.prosysopc.ua.stack.builtintypes.DataValue)1 ExpandedNodeId (com.prosysopc.ua.stack.builtintypes.ExpandedNodeId)1 NodeId (com.prosysopc.ua.stack.builtintypes.NodeId)1 QualifiedName (com.prosysopc.ua.stack.builtintypes.QualifiedName)1 BrowsePathTarget (com.prosysopc.ua.stack.core.BrowsePathTarget)1 RelativePathElement (com.prosysopc.ua.stack.core.RelativePathElement)1 ArrayList (java.util.ArrayList)1