IoT CAS Frameworks/IOT_Server/Multi-point_Event_Router_Framework/Event_Receiver_Mapper/EventReceiverMapper/src/com/prokosha/eventreceivermapper/EventReceiverMapper.java
public void initProcessorObjectGroup() {
        try {
            processorObjectGroup = new HashMap<String, EventProcessor>();
            EventProcessor processorObject;
            String processorAddress;
            String addrvals[];
            for (String processor : gszArrProcessorGroup) {
                processorAddress = pro.getProperty(processor);
                if (processorAddress == null) {
                    System.out.println("Exception : address for processor '" + processor + "' is not configured in property file.");
                    System.out.println("Exception : The processor '" + processor + "' is not included in processors list.");
                } else {
                    processorAddress = processorAddress.trim();
                    addrvals = getHost_Port(processorAddress);
                    processorObject = new EventProcessor(processor, addrvals[0], addrvals[1]);
                    processorObject.init();
                    processorObjectGroup.put(processor, processorObject);
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        //addressMap = new AddressMap(gszArrEventTypeGroup, processorObjectGroup, pro);
    }
/**
     * initialize EventProcessors ObjectGroup of HashMap class and maps them
     * with their name
     */
initialize EventProcessors ObjectGroup of HashMap class and maps them
with their name
initialize EventProcessors ObjectGroup of HashMap class and maps them with their name
public void initProcessorObjectGroup() {
        try {
            processorObjectGroup = new HashMap<String, EventProcessor>();
            EventProcessor processorObject;
            String processorAddress;
            String addrvals[];
            for (String processor : gszArrProcessorGroup) {
                processorAddress = pro.getProperty(processor);
                if (processorAddress == null) {
                    System.out.println("Exception : address for processor '" + processor + "' is not configured in property file.");
                    System.out.println("Exception : The processor '" + processor + "' is not included in processors list.");
                } else {
                    processorAddress = processorAddress.trim();
                    addrvals = getHost_Port(processorAddress);
                    processorObject = new EventProcessor(processor, addrvals[0], addrvals[1]);
                    processorObject.init();
                    processorObjectGroup.put(processor, processorObject);
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
public void initProcessorObjectGroup ( ) { try { processorObjectGroup = new HashMap < String , EventProcessor > ( ) ; EventProcessor processorObject ; String processorAddress ; String addrvals [ ] ; for ( String processor : gszArrProcessorGroup ) { processorAddress = pro . getProperty ( processor ) ; if ( processorAddress == null ) { System . out . println ( "Exception : address for processor '" + processor + "' is not configured in property file." ) ; System . out . println ( "Exception : The processor '" + processor + "' is not included in processors list." ) ; } else { processorAddress = processorAddress . trim ( ) ; addrvals = getHost_Port ( processorAddress ) ; processorObject = new EventProcessor ( processor , addrvals [ 0 ] , addrvals [ 1 ] ) ; processorObject . init ( ) ; processorObjectGroup . put ( processor , processorObject ) ; } } } catch ( Exception e ) { e . printStackTrace ( ) ; } }
initialize EventProcessors ObjectGroup of HashMap class and maps them
 with their name
initialize EventProcessors ObjectGroup of HashMap class and maps them with their name
//addressMap = new AddressMap(gszArrEventTypeGroup, processorObjectGroup, pro);