protected Object _execute(final UnscheduleTimeEvent timeEvent) { Object _xblockexpression = null; { TimeEvent _timeEvent = timeEvent.getTimeEvent(); String _name = _timeEvent.getName(); this.timingService.unscheduleTimeEvent(_name); _xblockexpression = (null); } return _xblockexpression; }
protected Object _execute(final ScheduleTimeEvent scheduleTimeEvent) throws ExecutionException { Object _xblockexpression = null; { TimeEvent _timeEvent = scheduleTimeEvent.getTimeEvent(); TimeEvent timeEvent = _timeEvent; Statement _timeValue = scheduleTimeEvent.getTimeValue(); Object _evaluateStatement = this.interpreter.evaluateStatement(_timeValue, this.executionContext); Object duration = _evaluateStatement; String _name = timeEvent.getName(); boolean _isPeriodic = timeEvent.isPeriodic(); this.timingService.scheduleTimeEvent( this.externalExecutionContext, _name, _isPeriodic, ((Integer) duration)); _xblockexpression = (null); } return _xblockexpression; }
protected Object _addToScope(final TimeEvent event) { Object _xblockexpression = null; { String _name = event.getName(); ExecutionEvent _executionEvent = new ExecutionEvent(_name, java.lang.Long.class); this.executionContext.declareEvent(_executionEvent); _xblockexpression = (null); } return _xblockexpression; }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public TimeEvent getTimeEvent() { if (timeEvent != null && timeEvent.eIsProxy()) { InternalEObject oldTimeEvent = (InternalEObject) timeEvent; timeEvent = (TimeEvent) eResolveProxy(oldTimeEvent); if (timeEvent != oldTimeEvent) { if (eNotificationRequired()) eNotify( new ENotificationImpl( this, Notification.RESOLVE, SexecPackage.UNSCHEDULE_TIME_EVENT__TIME_EVENT, oldTimeEvent, timeEvent)); } } return timeEvent; }