Although the IComputation interface can be used to effectively implement computed values, there is a problem when such values are to be used in some other computation or classification.

The problem is the management and triggering of value change notifications.

To resolve this problem, it is now recommended that all such computations should be defined using the spreadsheet formula approach described elsewhere.

Situations when this new approach is not appropriate should be implemented as custom methods rather than IComputation property values.

If You Insist

Just to prove the underlying mechanism tho', here is an example :

IObjectManager om = (new OMClient()).getObjectManager();

IGPOMap gpm = new GPOMap(om);

gpm.set("name", "just an object");

gpm.set("display", new IComputation() {
  Object computeValue(IGPOMap context) {
    return "Hi, I am " + context.get("name");
  }
} );  

Note tho' that a similar result would be provided by :

gpm.define("display", "(str 'Hi, I am ' (-> name))");  

with the resulting value updated whenever the name is modified.