class Hub implements IFloodlightModule, IOFMessageListener {

    public Command receive(IOFSwitch sw, OFMessage msg, FloodlightContext cntx) {
    	OFMessage outMessage;
    	HubType ht = HubType.USE_PACKET_OUT;
    	switch (ht) {
    	case USE_FLOW_MOD:
            outMessage = createHubFlowMod(sw, msg);
            break;
        default:
    	case USE_PACKET_OUT:
            outMessage = createHubPacketOut(sw, msg);
            break;
    	}
        sw.write(outMessage);
        
        return Command.CONTINUE;
    }

}