uk.ac.ic.doc.automed.p2p.editor
Class SMRTool

java.lang.Object
  extended by uk.ac.ic.doc.automed.p2p.editor.SMRTool

public class SMRTool
extends java.lang.Object

An interface class with the AutoMed editors

Version:
1.0 Department of Computing, Imperial College
Author:
Duc M Le dmle@doc.ic.ac.uk

Field Summary
private static ow.dht.DHT emulatorDHT
           
 
Constructor Summary
SMRTool()
           
 
Method Summary
static UserActionResult indexSchema(Gui g, java.lang.Object[] objs)
          Index a schema and its transformation pathway in the SMR overlay network
This method is invoked by the Schema Network GUI (see the developer_actions.cfg file for more details)
static UserActionResult queryExtent(Gui g, java.lang.Object[] selected)
          Query extent of a schema object on the Gui editor
static UserActionResult wrapSMRSchema(java.lang.Object[] objs)
          Connect (if not already) to the SMR overlay network
static Schema wrapSMRSchema(java.lang.String smrSchemaName)
           
static Schema wrapSMRSchema(java.lang.String smrSchemaName, ow.dht.DHT dht)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emulatorDHT

private static ow.dht.DHT emulatorDHT
Constructor Detail

SMRTool

public SMRTool()
Method Detail

indexSchema

public static UserActionResult indexSchema(Gui g,
                                           java.lang.Object[] objs)
                                    throws AutoMedException
Index a schema and its transformation pathway in the SMR overlay network
This method is invoked by the Schema Network GUI (see the developer_actions.cfg file for more details)

Parameters:
objs -
Returns:
Throws:
AutoMedException

queryExtent

public static UserActionResult queryExtent(Gui g,
                                           java.lang.Object[] selected)
Query extent of a schema object on the Gui editor


wrapSMRSchema

public static UserActionResult wrapSMRSchema(java.lang.Object[] objs)
                                      throws AutoMedException
Connect (if not already) to the SMR overlay network

Parameters:
objs -
Returns:
Throws:
AutoMedException

wrapSMRSchema

public static Schema wrapSMRSchema(java.lang.String smrSchemaName,
                                   ow.dht.DHT dht)
                            throws AutoMedException
Throws:
AutoMedException

wrapSMRSchema

public static Schema wrapSMRSchema(java.lang.String smrSchemaName)
                            throws AutoMedException
Throws:
AutoMedException