src/PredFinder/inference/EITbdAdapter.cpp
/**
 * Must be called before calling any other EITbdAdapter methods.
 *
 * @author afrankel@bbn.com
 * @date 2011.06.21
 **/
Must be called before calling any other EITbdAdapter methods.


Must be called before calling any other EITbdAdapter methods .
void EITbdAdapter::init() {
	if (_initialized) {
		return;
	}
	for (size_t i = 0; i < AGENT_ROLE_MAPPINGS_COUNT; ++i) {
		_agent_role[AGENT_ROLE_MAPPINGS[i].first] = AGENT_ROLE_MAPPINGS[i].second;
	}
	for (size_t i = 0; i < EVENT_ROLE_MAPPINGS_COUNT; ++i) {
		_event_role[EVENT_ROLE_MAPPINGS[i].first] = EVENT_ROLE_MAPPINGS[i].second;
	}
	for (size_t i = 0; i < EVENT_WITH_AGENT_NAME_COUNT; ++i) {
		_event_with_agent_name[EVENT_WITH_AGENT_NAME[i].first] = 
			EVENT_WITH_AGENT_NAME[i].second;
	}
	for (size_t i = 0; i < EVENT_WITHOUT_AGENT_NAME_COUNT; ++i) {
		_event_without_agent_name[EVENT_WITHOUT_AGENT_NAME[i].first] = 
			EVENT_WITHOUT_AGENT_NAME[i].second;
	}
	_initialized = true;
}
void EITbdAdapter :: init ( ) { if ( _initialized ) { return ; } for ( size_t i = 0 ; i < AGENT_ROLE_MAPPINGS_COUNT ; ++ i ) { _agent_role [ AGENT_ROLE_MAPPINGS [ i ] . first ] = AGENT_ROLE_MAPPINGS [ i ] . second ; } for ( size_t i = 0 ; i < EVENT_ROLE_MAPPINGS_COUNT ; ++ i ) { _event_role [ EVENT_ROLE_MAPPINGS [ i ] . first ] = EVENT_ROLE_MAPPINGS [ i ] . second ; } for ( size_t i = 0 ; i < EVENT_WITH_AGENT_NAME_COUNT ; ++ i ) { _event_with_agent_name [ EVENT_WITH_AGENT_NAME [ i ] . first ] = EVENT_WITH_AGENT_NAME [ i ] . second ; } for ( size_t i = 0 ; i < EVENT_WITHOUT_AGENT_NAME_COUNT ; ++ i ) { _event_without_agent_name [ EVENT_WITHOUT_AGENT_NAME [ i ] . first ] = EVENT_WITHOUT_AGENT_NAME [ i ] . second ; } _initialized = true ; }
Must be called before calling any other EITbdAdapter methods.
Must be called before calling any other EITbdAdapter methods .