Version: 1.1.1

ca.ucalgary.seahawk.gui
Class MobyShimmer

java.lang.Object
  extended by ca.ucalgary.seahawk.gui.MobyShimmer
All Implemented Interfaces:
MobyRequestEventHandler

public class MobyShimmer
extends Object
implements MobyRequestEventHandler

The purpose of this class is to improve service interoperability "shims" by checking the MOBY service listings for services that do format conversion on the given data, then adds service options for the output types of those services, if they aren't in the menu already. Not fully functional yet.


Field Summary
static String MOBY_SHIM_SERVICE_TYPE
           
 
Constructor Summary
MobyShimmer(MobyServicesGUI gui)
           
MobyShimmer(MobyServicesGUI gui, MobyServiceType serviceType)
           
 
Method Summary
 void addPopupOptions(MobyPrimaryData mobyData, JPopupMenu popupList, boolean asynchronous, MobyRequestEventHandler handler)
           
 void processEvent(MobyRequestEvent mre)
           
 void start(MobyRequestEvent requestEvent)
          If a client, denotes that a service request has been sent (and the contents is exactly what is being sent to the service).
 void stop(MobyRequest request, int requestID)
          If a client, denotes the end of a service request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MOBY_SHIM_SERVICE_TYPE

public static final String MOBY_SHIM_SERVICE_TYPE
See Also:
Constant Field Values
Constructor Detail

MobyShimmer

public MobyShimmer(MobyServicesGUI gui)
            throws Exception
Throws:
Exception - if the default shim service type cannot be found in the ontology

MobyShimmer

public MobyShimmer(MobyServicesGUI gui,
                   MobyServiceType serviceType)
            throws Exception
Throws:
Exception - if the service type is null.
Method Detail

addPopupOptions

public void addPopupOptions(MobyPrimaryData mobyData,
                            JPopupMenu popupList,
                            boolean asynchronous,
                            MobyRequestEventHandler handler)

start

public void start(MobyRequestEvent requestEvent)
Description copied from interface: MobyRequestEventHandler
If a client, denotes that a service request has been sent (and the contents is exactly what is being sent to the service). If a server, denotes that you should be ready to start receiving events (an init of sorts)

Specified by:
start in interface MobyRequestEventHandler

processEvent

public void processEvent(MobyRequestEvent mre)
Specified by:
processEvent in interface MobyRequestEventHandler

stop

public void stop(MobyRequest request,
                 int requestID)
If a client, denotes the end of a service request. If a server, denotes that the server is shutting down/this event handler should terminate.

Specified by:
stop in interface MobyRequestEventHandler

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010