Package com.sosnoski.seismic.common

Examples of com.sosnoski.seismic.common.Response


        query.setMaxDateTime(new Date(data.m_timeMax));
        query.setMinLatitude(new Float(data.m_latMin));
        query.setMaxLatitude(new Float(data.m_latMax));
        query.setMinLongitude(new Float(data.m_longMin));
        query.setMaxLongitude(new Float(data.m_longMax));
        Response response = null;
        try {
//            SoapClient client = (SoapClient)stub;
//            client.setOperationName("urn:query");
            Client client = (Client)stub;
            response = (Response)(client).call(query);
View Full Code Here


        }
        return response;
    }

    protected int summarize(boolean verbose, Object obj) {
        Response resp = (Response) obj;
        int count = 0;
        for (int j = 0; j < resp.getSets().length; j++) {
            QuakeSet set = resp.getSets()[j];
            if (verbose) {
                System.out.println("Seismic region " + set.getSeismicName() + " has " + set.getRegions().length
                    + " regions and " + set.getQuakes().length + " matching quakes");
            }
            count += set.getQuakes().length;
View Full Code Here

        QuakeSet[] results = getInstance().handleQuery(query.getMinLatitude(),
            query.getMaxLatitude(), query.getMinLongitude(),
            query.getMaxLongitude(), query.getMinDateTime(),
            query.getMaxDateTime(), query.getMinMagnitude(),
            query.getMaxMagnitude(), query.getMinDepth(), query.getMaxDepth());
        Response response = new Response();
        response.setSets(results);
        return response;
    }
View Full Code Here

TOP

Related Classes of com.sosnoski.seismic.common.Response

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.