use of org.osate.pluginsupport.properties.IntegerWithUnits in project osate2 by osate.
the class AadlProject method getMaxVolume.
public static IntegerWithUnits<DataVolumeUnits> getMaxVolume(EObject lookupContext) {
PropertyConstant constant = getMaxVolume_PropertyConstant(lookupContext);
PropertyExpression resolved = CodeGenUtil.resolveNamedValue(constant.getConstantValue());
return new IntegerWithUnits<>(resolved, DataVolumeUnits.class);
}
use of org.osate.pluginsupport.properties.IntegerWithUnits in project osate2 by osate.
the class AadlProject method getMaxMemorySize.
public static IntegerWithUnits<SizeUnits> getMaxMemorySize(EObject lookupContext) {
PropertyConstant constant = getMaxMemorySize_PropertyConstant(lookupContext);
PropertyExpression resolved = CodeGenUtil.resolveNamedValue(constant.getConstantValue());
return new IntegerWithUnits<>(resolved, SizeUnits.class);
}
use of org.osate.pluginsupport.properties.IntegerWithUnits in project osate2 by osate.
the class AadlProject method getMaxTime.
public static IntegerWithUnits<TimeUnits> getMaxTime(EObject lookupContext) {
PropertyConstant constant = getMaxTime_PropertyConstant(lookupContext);
PropertyExpression resolved = CodeGenUtil.resolveNamedValue(constant.getConstantValue());
return new IntegerWithUnits<>(resolved, TimeUnits.class);
}
Aggregations