/** Execute the static function */ ESBase execute() throws Throwable { Global resin = (Global) prototype; try { Call call = resin.getCall(); call.caller = call; call.setArg(0, this); call.top = 1; call.scopeLength = 1; call.scope[0] = this; call.global = this; ESBase value = null; try { value = call(0, call, 0); } finally { resin.freeCall(call); } return value; } catch (ESException e) { throw e; } catch (Throwable e) { throw new ESWrapperException(e); } }
void call(GSM receiver, int duration) { if (receiver != null) { if (duration > 0 && !(simMobileNumber.equals(receiver.simMobileNumber)) && hasSimCard == true && receiver.hasSimCard == true) { if (this != receiver) { Call c = new Call(); c.receiver = receiver; c.caller = this; c.duration = duration; receiver.lastIncomingCall = c; lastOutgoingCall = c; outgoingCallsDuration += duration; } } } }