/** * Notification when an object has been added to the state. * @param id The object id. * @param type The object type. */ public void objectAdded(Object id, OAVObjectType type, boolean root) { assert !running; running = true; state.getProfiler().start(IProfiler.TYPE_OBJECT, type); state.getProfiler().start(IProfiler.TYPE_OBJECTEVENT, IProfiler.OBJECTEVENT_ADDED); node.addObject(id, type, state, retemem, agenda); state.getProfiler().stop(IProfiler.TYPE_OBJECTEVENT, IProfiler.OBJECTEVENT_ADDED); state.getProfiler().stop(IProfiler.TYPE_OBJECT, type); running = false; }
/** * Notification when an object has been added to the state. * @param id The object id. * @param type The object type. */ public void objectAdded(Object id, OAVObjectType type, boolean root) { assert !running; running = true; state.getProfiler().start(IProfiler.TYPE_OBJECT, type); state.getProfiler().start(IProfiler.TYPE_OBJECTEVENT, IProfiler.OBJECTEVENT_ADDED); node.addObject(id, type, state, retemem, agenda); state.getProfiler().stop(IProfiler.TYPE_OBJECTEVENT, IProfiler.OBJECTEVENT_ADDED); state.getProfiler().stop(IProfiler.TYPE_OBJECT, type); running = false; }