} // end of AffectedEntities #endregion //-------------------------------------------------------------------------------------------------- // Events //-------------------------------------------------------------------------------------------------- #region TriggerStartEvent /// <summary> /// Actual state change, calls the leaving method of the origin control unit and scheduled the end event /// </summary> /// <param name="time"> Time of activity start</param> /// <param name="simEngine"> SimEngine the handles the activity triggering</param> override public void StateChangeStartEvent(DateTime time, ISimulationEngine simEngine) { Origin.EntityLeaveControlUnit(time, simEngine, MovingEntity, DelegateOrigin); _endTime = time + Duration; simEngine.AddScheduledEvent(EndEvent, time + Duration); } // end of TriggerStartEvent