ca.ucalgary.seahawk.gui
Class MobyShimmer
java.lang.Object
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.
MOBY_SHIM_SERVICE_TYPE
public static final String MOBY_SHIM_SERVICE_TYPE
- See Also:
- Constant Field Values
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.
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
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010