public void setStreamMissRate(final NamedElement ph, final double rate) { final RealLiteral newPropertyValue = Aadl2Factory.eINSTANCE.createRealLiteral(); newPropertyValue.setValue(rate); ph.setPropertyValue( GetProperties.lookupPropertyDefinition(ph, SEI._NAME, SEI.STREAM_MISS_RATE), newPropertyValue); }
public static double getStreamMissRate(final NamedElement ph) throws InvalidModelException, PropertyNotPresentException, PropertyIsModalException, IllegalStateException, IllegalArgumentException, PropertyDoesNotApplyToHolderException, PropertyIsListException, ClassCastException { return GetProperties.getStreamMissRate(ph); }