RuntimeEnvAn object that provides access to various services and utility methods for execution that can be used by the component as needed, including the Context object that contains the parameters. runEnv.getContext().getScalarParameter("area"); //returns ScalarVariable runEnv.getScalarProperty("shape").getValueObj().getAsString( ) VariableRun-time object to represent a Property or Parameter. Typically, you will cast the Variable to a specific type (ScalarVariable, ArrayVariable, or AggregateVariable). Variable is more restrictive than DtVariable in that you cannot modify anything about the Variable except its value (this restriction is intentional to ensure that the representation of the data remains consistent). thisScalar.getValueObj().getAsReal(); thisScalar.getValueObj().setValue(3.1415927); |