edu.sc.seis.gee.task
Class QueryEventsTask

java.lang.Object
  extended byedu.sc.seis.gee.task.QueryEventsTask
All Implemented Interfaces:
DefaultParamNames, GUITask, SAXTask, Task

public class QueryEventsTask
extends java.lang.Object
implements GUITask, SAXTask

QueryEventsTask.java Created: Wed Jan 16 08:25:02 2002

Version:
Author:
Srinivasa Telukutla

Field Summary
protected  boolean guiInitialized
           
static TimeInterval QUERY_INCREMENT
           
 
Fields inherited from interface edu.sc.seis.gee.configurator.DefaultParamNames
BUTTON_GROUP_ID, BUTTON_MODEL, DISPLAY_LOCATION, EAST, FALSE, FRAME, HEIGHT, HEIGHTPER, HORIZONTAL, JUSTIFY, JUSTIFY_BOTTOMLEFT, JUSTIFY_BOTTOMRIGHT, JUSTIFY_CENTER, JUSTIFY_TOPLEFT, JUSTIFY_TOPRIGHT, MAIN, NONE, NORTH, ORIENTATION, PALETTE, PREFIX, PRESELECTED, SERVER_DNS, SERVER_NAME, TASK_ACTION, TASK_CLASSNAME, TASK_ID, TASK_INSTANCE, TASK_NAME, TOOLTIP, TRUE, VERTICAL, WIDTH, WIDTHPER
 
Constructor Summary
QueryEventsTask()
           
 
Method Summary
protected  void appendEventDestinations(EventAccessOperations[] eventAccess)
           
 void configure(java.util.Map params)
          Configures a Task with any needed parameters.
protected  javax.swing.JComponent createGUI()
           
 void destroy()
          Called when reset is invoked on gee or if this task is no longer being used
 AbstractHandler getConfigureHandler(java.lang.String name, org.xml.sax.XMLReader parser, AbstractHandler parent)
           
 java.util.Date getEndTime()
           
 javax.swing.JComponent getGUI()
          Gets the GUI for this Task.
 javax.swing.JComponent getMoreOptionsGUI()
          Gets the "More Options" GUI component.
 java.util.Date getStartTime()
           
 boolean hasMoreOptions()
          True if this GUI has a "more options" funtionality.
 void invoke()
          Called when a task is to be executed, usually by a menu or toolbar selection for simple tasks.
 ProxyEventAccessOperations[] queryEvents()
           
 ProxyEventAccessOperations[] queryEvents(Area area, Quantity minDepth, Quantity maxDepth, TimeRange timeRange, java.lang.String[] magTypes, float minMagnitude, float maxMagnitude, java.lang.String[] catalogs, java.lang.String[] contributors)
           
 EventAccessOperations[] queryEvents(Quantity minDepth, Quantity maxDepth, TimeRange timeRange, float minMagnitude, float maxMagnitude)
           
 void setEndTime(java.util.Date d)
           
 void setStartTime(java.util.Date d)
           
 void timeConflictError()
           
 void updateEventDestinations(EventAccessOperations[] eventAccess)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERY_INCREMENT

public static final TimeInterval QUERY_INCREMENT

guiInitialized

protected boolean guiInitialized
Constructor Detail

QueryEventsTask

public QueryEventsTask()
Method Detail

getMoreOptionsGUI

public javax.swing.JComponent getMoreOptionsGUI()
Description copied from interface: GUITask
Gets the "More Options" GUI component.

Specified by:
getMoreOptionsGUI in interface GUITask

hasMoreOptions

public boolean hasMoreOptions()
Description copied from interface: GUITask
True if this GUI has a "more options" funtionality. More options appear in a separate panel below the main gui, and can be shown/hidden with a "Show More Options" and "Hide More Options" button that is provided automatically is this return true.

Specified by:
hasMoreOptions in interface GUITask

getGUI

public javax.swing.JComponent getGUI()
Description copied from interface: GUITask
Gets the GUI for this Task. Used for interacting with the user before and after invoking this Task's action.

Specified by:
getGUI in interface GUITask

invoke

public void invoke()
Description copied from interface: Task
Called when a task is to be executed, usually by a menu or toolbar selection for simple tasks.

Specified by:
invoke in interface Task

destroy

public void destroy()
Description copied from interface: Task
Called when reset is invoked on gee or if this task is no longer being used

Specified by:
destroy in interface Task

configure

public void configure(java.util.Map params)
               throws ConfigurationException
Description copied from interface: Task
Configures a Task with any needed parameters. The Task should have default values for as many things as possible, but can throw a ConfigureException if a required parameter is missing.

Specified by:
configure in interface Task
Parameters:
params - a Map value
Throws:
ConfigurationException - if an error occurs

createGUI

protected javax.swing.JComponent createGUI()

queryEvents

public ProxyEventAccessOperations[] queryEvents()
                                         throws ConfigurationException,
                                                NoNetworkException
Throws:
ConfigurationException
NoNetworkException

queryEvents

public ProxyEventAccessOperations[] queryEvents(Area area,
                                                Quantity minDepth,
                                                Quantity maxDepth,
                                                TimeRange timeRange,
                                                java.lang.String[] magTypes,
                                                float minMagnitude,
                                                float maxMagnitude,
                                                java.lang.String[] catalogs,
                                                java.lang.String[] contributors)
                                         throws ConfigurationException,
                                                NoNetworkException
Throws:
ConfigurationException
NoNetworkException

queryEvents

public EventAccessOperations[] queryEvents(Quantity minDepth,
                                           Quantity maxDepth,
                                           TimeRange timeRange,
                                           float minMagnitude,
                                           float maxMagnitude)
                                    throws ConfigurationException,
                                           NoNetworkException
Throws:
ConfigurationException
NoNetworkException

updateEventDestinations

public void updateEventDestinations(EventAccessOperations[] eventAccess)

appendEventDestinations

protected void appendEventDestinations(EventAccessOperations[] eventAccess)

getStartTime

public java.util.Date getStartTime()

getEndTime

public java.util.Date getEndTime()

timeConflictError

public void timeConflictError()

setStartTime

public void setStartTime(java.util.Date d)

setEndTime

public void setEndTime(java.util.Date d)

getConfigureHandler

public AbstractHandler getConfigureHandler(java.lang.String name,
                                           org.xml.sax.XMLReader parser,
                                           AbstractHandler parent)
Specified by:
getConfigureHandler in interface SAXTask


Copyright © 2002-2006 Seismology at the University of South Carolina. All Rights Reserved.