Useful Isight Classes and API Functions

The following classes and specific method calls allow you to interact with the objects that hold all the information about the component. The full API can be found in the Isight javadocs.

RuntimeEnv

An 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(
)

Variable

Run-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);