use of org.abs_models.backend.java.lib.runtime.ABSDynamicDelta in project abstools by abstools.
the class Delta method setupMetaAPI.
/*
* Define the methods of this class
*/
public static void setupMetaAPI() {
thisClass.setName("Delta");
thisClass.addMethod(/*ABSString*/
"getName", new ABSClosure() {
@Override
public ABSString exec(ABSDynamicObject t, ABSValue... params) {
ABSDynamicDelta delta = (ABSDynamicDelta) t;
return ABSString.fromString(delta.getName());
}
});
thisClass.addMethod(/*ABSUnit*/
"apply", new ABSClosure() {
@Override
public ABSValue exec(ABSDynamicObject t, ABSValue... params) {
ABSDynamicDelta delta = (ABSDynamicDelta) t;
delta.apply();
return ABSUnit.UNIT;
}
});
}
Aggregations