Search in sources :

Example 21 with Optional

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

the class AASPropertyTypeImplBase method setValue.

@Optional
@Override
public void setValue(Object value) throws StatusException {
    UaVariable node = getValueNode();
    if (node == null) {
        throw new RuntimeException("Setting Value failed, the Optional node does not exist)");
    }
    node.setValue(value);
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Example 22 with Optional

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

the class AASQualifierTypeImplBase method setValue.

@Optional
@Override
public void setValue(Object value) throws StatusException {
    UaVariable node = getValueNode();
    if (node == null) {
        throw new RuntimeException("Setting Value failed, the Optional node does not exist)");
    }
    node.setValue(value);
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Example 23 with Optional

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

the class AASRangeTypeImplBase method setMax.

@Optional
@Override
public void setMax(Object value) throws StatusException {
    UaVariable node = getMaxNode();
    if (node == null) {
        throw new RuntimeException("Setting Max failed, the Optional node does not exist)");
    }
    node.setValue(value);
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Example 24 with Optional

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

the class AASRangeTypeImplBase method getMax.

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

Example 25 with Optional

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

the class AASRangeTypeImplBase method setMin.

@Optional
@Override
public void setMin(Object value) throws StatusException {
    UaVariable node = getMinNode();
    if (node == null) {
        throw new RuntimeException("Setting Min failed, the Optional node does not exist)");
    }
    node.setValue(value);
}
Also used : UaVariable(com.prosysopc.ua.nodes.UaVariable) Optional(com.prosysopc.ua.nodes.Optional)

Aggregations

Optional (com.prosysopc.ua.nodes.Optional)57 UaVariable (com.prosysopc.ua.nodes.UaVariable)57 Variant (com.prosysopc.ua.stack.builtintypes.Variant)4 ByteString (com.prosysopc.ua.stack.builtintypes.ByteString)2 AASDataTypeIEC61360DataType (opc.i4aas.AASDataTypeIEC61360DataType)2 AASLevelTypeDataType (opc.i4aas.AASLevelTypeDataType)2