it.unimo.dbgroup.momis
Class GlobalSchemaProxy

java.lang.Object
  extended byit.unimo.dbgroup.momis.GlobalSchemaProxy

public class GlobalSchemaProxy
extends java.lang.Object

This is a proxy for a CORBA object GlobalSchema.

It is possible to update informations stored in the CORBA GlobalSchema object with the method saveGSStatus() and retreive the same informations with the method loadGSStatus().

Author:
Guidetti Rossano, Apr 2000.

Field Summary
private  boolean _connected
          Indicates if the proxy is connected to a GlobalSchema CORBA object.
private  GSStatus _gsStatus
          Local copy of the informaitons stored in GlobalSchema.
private  OntologyManager _ontologyManager
          The manager of WordNet lexical database.
private  java.util.Map _sidConfig
          Configuration of SI-Designer application that have created this object.
private  SLIM _slim
           
 
Constructor Summary
GlobalSchemaProxy(java.util.Map config)
          Creates a new proxy.
 
Method Summary
 float getBTWeight()
          Return the weight associated to the BT (and NT) relationships.
 int getIntegrationStatus()
          Gets the actual status of the integration process.
 Schema getLocalSchemata()
          Provides a Schema object containing sources' structure information and the Common Thesaurus.
 java.lang.String getName()
          Return the global schema name.
 OntologyManager getOntologyManager()
          Get the Ontology manager.
 float getRTWeight()
          Return the weight associated to the RT relationships.
 Schema getSchema()
           
 java.util.Map getSIDConfig()
          Return the configuration of the SI-Designer application that creates this object.
 SLIM getSlim()
           
 java.lang.String getStatus()
          Get the status of the global schema as a String.
 GSStatus getStatusAsObject()
          Get the status of the global schema as GSStatus object.
 float getSYNWeight()
          Return the weight associated to the SYN relationships.
 float getThreshold()
          Return the threshold used to create clusters.
 boolean isConnected()
          Return true if the proxy is connected to a GlobalSchema.
 void setBTWeight(float w)
          Sets the weight associated with the BT (and NT) relationships.
 void setIntegrationStatus(int status)
          Stores the status of the integration process.
 void setName(java.lang.String name)
          Sets the global schema name.
 void setOntologyManager(OntologyManager manager)
          Set the Ontology manager.
 void setRTWeight(float w)
          Sets the weight associated with the RT relationships.
 void setSchema(Schema schema)
          Substitute sources' structure and relationships.
 void setSlim(SLIM slim)
           
 void setStatus(java.lang.String status)
          Set new status for the global schema from a String.
 void setStatusAsObject(GSStatus status)
          Get the status of the global schema as GSStatus object.
 void setSYNWeight(float w)
          Sets the weight associated with the SYN relationships.
 void setThreshold(float w)
          Sets the threshold for cluster generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_slim

private SLIM _slim

_gsStatus

private GSStatus _gsStatus
Local copy of the informaitons stored in GlobalSchema.


_sidConfig

private java.util.Map _sidConfig
Configuration of SI-Designer application that have created this object.


_connected

private boolean _connected
Indicates if the proxy is connected to a GlobalSchema CORBA object.


_ontologyManager

private OntologyManager _ontologyManager
The manager of WordNet lexical database.

Constructor Detail

GlobalSchemaProxy

public GlobalSchemaProxy(java.util.Map config)
Creates a new proxy.

Parameters:
config - Map containing the parameters that configures SI-Designer.
Method Detail

getSlim

public SLIM getSlim()

setSlim

public void setSlim(SLIM slim)

isConnected

public boolean isConnected()
Return true if the proxy is connected to a GlobalSchema.


getSIDConfig

public java.util.Map getSIDConfig()
Return the configuration of the SI-Designer application that creates this object.


setSchema

public void setSchema(Schema schema)
Substitute sources' structure and relationships.

The sources' structure and relationships stored Schema object will substitute the informations stored in global shema.


getLocalSchemata

public Schema getLocalSchemata()
Provides a Schema object containing sources' structure information and the Common Thesaurus.

Returns:
The Schema object containing sources' structure informations and the Common Thesaurus.

setIntegrationStatus

public void setIntegrationStatus(int status)
Stores the status of the integration process.

Parameters:
status - The new status.

getIntegrationStatus

public int getIntegrationStatus()
Gets the actual status of the integration process.

Returns:
The actual status.

setName

public void setName(java.lang.String name)
Sets the global schema name.

Parameters:
name - The new global schema name.

getName

public java.lang.String getName()
Return the global schema name.

Returns:
The global schema name.

getBTWeight

public float getBTWeight()
Return the weight associated to the BT (and NT) relationships.


getRTWeight

public float getRTWeight()
Return the weight associated to the RT relationships.


getSYNWeight

public float getSYNWeight()
Return the weight associated to the SYN relationships.


getThreshold

public float getThreshold()
Return the threshold used to create clusters.


setBTWeight

public void setBTWeight(float w)
Sets the weight associated with the BT (and NT) relationships.


setRTWeight

public void setRTWeight(float w)
Sets the weight associated with the RT relationships.


setSYNWeight

public void setSYNWeight(float w)
Sets the weight associated with the SYN relationships.


setThreshold

public void setThreshold(float w)
Sets the threshold for cluster generation.


setStatus

public void setStatus(java.lang.String status)
Set new status for the global schema from a String.
Such string is Must be a Java serialization of a GSStatus instance coded using base 64.
This routine uses Tools.mDeserialize64 to decode the string.

Parameters:
status - New status as a serialized GSStatus and coded using base64 string.

setStatusAsObject

public void setStatusAsObject(GSStatus status)
Get the status of the global schema as GSStatus object.


getStatus

public java.lang.String getStatus()
Get the status of the global schema as a String.
Such string is obtained as a the serialization of the status codes using base 64.

Returns:
Serialized java object.

getStatusAsObject

public GSStatus getStatusAsObject()
Get the status of the global schema as GSStatus object.

Returns:
Serialized java object.

getOntologyManager

public OntologyManager getOntologyManager()
Get the Ontology manager.


setOntologyManager

public void setOntologyManager(OntologyManager manager)
Set the Ontology manager.


getSchema

public Schema getSchema()


Universita' di Modena e Reggio Emilia